pub fn canonical(&self, property: &str, value: &str) -> Result<String> {
        let property = self.property.canonical(property)?;
        let mut value = value.to_string();
        ucd_util::symbolic_name_normalize(&mut value);
        match self.value.get(&*property).and_then(|m| m.get(&value)) {
            Some(v) => Ok(v.to_string()),
            None => err!(
                "unrecognized property name/value: {:?}",
                (property, value)
            ),
        }
    }
/// Return the "canonical" or "long" property value for the given property
/// value for a specific property. If no such property exists or if not
/// such property value exists, then return an error.
///
/// Note that this does not apply to "string" or "miscellaneous" properties
/// such as `Name` or `Case_Folding`.
Return the "canonical" or "long" property value for the given property
value for a specific property. If no such property exists or if not
such property value exists, then return an error.

Note that this does not apply to "string" or "miscellaneous" properties
such as `Name` or `Case_Folding`.
Return the " canonical " or " long " property value for the given property value for a specific property . If no such property exists or if not such property value exists then return an error . Note that this does not apply to " string " or " miscellaneous " properties such as ` Name ` or ` Case_Folding ` .
pub fn canonical(&self, property: &str, value: &str) -> Result<String> {
        let property = self.property.canonical(property)?;
        let mut value = value.to_string();
        ucd_util::symbolic_name_normalize(&mut value);
        match self.value.get(&*property).and_then(|m| m.get(&value)) {
            Some(v) => Ok(v.to_string()),
            None => err!(
                "unrecognized property name/value: {:?}",
                (property, value)
            ),
        }
    }
pub fn canonical ( & self , property : & str , value : & str ) -> Result < String > { let property = self . property . canonical ( property ) ? ; let mut value = value . to_string ( ) ; ucd_util :: symbolic_name_normalize ( & mut value ) ; match self . value . get ( & * property ) . and_then ( | m | m . get ( & value ) ) { Some ( v ) => Ok ( v . to_string ( ) ) , None => err ! ( " " ( property value ) ) , } }
Return the "canonical" or "long" property value for the given property
value for a specific property.
Return the " canonical " or " long " property value for the given property value for a specific property .
&self
property
&str
value
&str
&self
property
&str
value
&str