#[repr(C)]
pub struct UnicodeCollation { /* private fields */ }
Expand description

The Unicode Collation Protocol.

Used to perform case-insensitive comaprisons of strings.

Implementations

Performs a case insensitive comparison of two null-terminated strings.

Performs a case insensitive comparison between a null terminated pattern string and a null terminated string.

This function checks if character pattern described in pattern is found in string. If the pattern match succeeds, true is returned. Otherwise, false is returned.

The following syntax can be used to build the string pattern:

Pattern CharacterMeaning
*Match 0 or more characters
?Match any one character
[char1 char2charN]Match any character in the set
[char1-char2]Match any character between char1 and char2
charMatch the character char

For example, the pattern “.Fw” will match all strings that end in “.FW”, “.fw”, “.Fw” or “.fW”. The pattern “[a-z]” will match any letter in the alphabet. The pattern “z” will match the letter “z”. The pattern “d?.” will match the character “D” or “d” followed by any single character followed by a “.” followed by any string.

Converts the characters in s to lower case characters.

Converts the characters in s to upper case characters.

Converts the 8.3 FAT file name fat to a null terminated string.

Converts the null terminated string s to legal characters in a FAT file name.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Create a const pointer to a Protocol from a c_void pointer. Read more
Create a mutable pointer to a Protocol from a c_void pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.