#[repr(C)]pub struct NSCharacterSet {
pub ptr: Id<Object>,
}
Expand description
A character set containing the characters in Unicode General Categories L*, M*, and N*.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl NSCharacterSet
impl NSCharacterSet
Sourcepub fn alphanumeric_character_set() -> NSCharacterSet
pub fn alphanumeric_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Categories L*, M*, and N*.
Sourcepub fn capitalized_letter_character_set() -> NSCharacterSet
pub fn capitalized_letter_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category Lt.
Sourcepub fn control_character_set() -> NSCharacterSet
pub fn control_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category Cc and Cf.
Sourcepub fn decimal_digit_character_set() -> NSCharacterSet
pub fn decimal_digit_character_set() -> NSCharacterSet
A character set containing the characters in the category of Decimal Numbers.
Sourcepub fn decomposable_character_set() -> NSCharacterSet
pub fn decomposable_character_set() -> NSCharacterSet
A character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of “standard decomposition” in version 3.2 of the Unicode character encoding standard.
Sourcepub fn illegal_character_set() -> NSCharacterSet
pub fn illegal_character_set() -> NSCharacterSet
A character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard.
Sourcepub fn letter_character_set() -> NSCharacterSet
pub fn letter_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category L* & M*.
Sourcepub fn lowercase_letter_character_set() -> NSCharacterSet
pub fn lowercase_letter_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category Ll.
Sourcepub fn newline_character_set() -> NSCharacterSet
pub fn newline_character_set() -> NSCharacterSet
A character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029).
Sourcepub fn non_base_character_set() -> NSCharacterSet
pub fn non_base_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category M*.
Sourcepub fn punctuation_character_set() -> NSCharacterSet
pub fn punctuation_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category P*.
Sourcepub fn symbol_character_set() -> NSCharacterSet
pub fn symbol_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category S*.
Sourcepub fn uppercase_letter_character_set() -> NSCharacterSet
pub fn uppercase_letter_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category Lu and Lt.
Sourcepub fn whitespace_and_newline_character_set() -> NSCharacterSet
pub fn whitespace_and_newline_character_set() -> NSCharacterSet
A character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085.
Sourcepub fn whitespace_character_set() -> NSCharacterSet
pub fn whitespace_character_set() -> NSCharacterSet
A character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009).
Sourcepub fn url_fragment_allowed_character_set() -> NSCharacterSet
pub fn url_fragment_allowed_character_set() -> NSCharacterSet
Returns the character set for characters allowed in a fragment URL component.
Sourcepub fn url_host_allowed_character_set() -> NSCharacterSet
pub fn url_host_allowed_character_set() -> NSCharacterSet
Returns the character set for characters allowed in a host URL subcomponent.
Sourcepub fn url_password_allowed_character_set() -> NSCharacterSet
pub fn url_password_allowed_character_set() -> NSCharacterSet
Returns the character set for characters allowed in a password URL subcomponent.
Sourcepub fn url_path_allowed_character_set() -> NSCharacterSet
pub fn url_path_allowed_character_set() -> NSCharacterSet
Returns the character set for characters allowed in a path URL component.
Sourcepub fn url_query_allowed_character_set() -> NSCharacterSet
pub fn url_query_allowed_character_set() -> NSCharacterSet
Returns the character set for characters allowed in a query URL component.
Sourcepub fn url_user_allowed_character_set() -> NSCharacterSet
pub fn url_user_allowed_character_set() -> NSCharacterSet
Returns the character set for characters allowed in a user URL subcomponent.
Sourcepub fn init_with_coder(&mut self, coder: NSCoder) -> Self
pub fn init_with_coder(&mut self, coder: NSCoder) -> Self
Initializing with coder
Sourcepub fn character_set_with_characters_in_string(
string: NSString,
) -> NSCharacterSet
pub fn character_set_with_characters_in_string( string: NSString, ) -> NSCharacterSet
Returns a character set containing the characters in a given string.
Sourcepub fn character_set_with_range(range: NSRange) -> NSCharacterSet
pub fn character_set_with_range(range: NSRange) -> NSCharacterSet
Returns a character set containing characters with Unicode values in a given range.
Sourcepub fn character_set_with_bitmap_representation(data: NSData) -> NSCharacterSet
pub fn character_set_with_bitmap_representation(data: NSData) -> NSCharacterSet
Returns a character set containing characters determined by a given bitmap representation.
Sourcepub fn character_set_with_contents_of_file(path: NSString) -> NSCharacterSet
pub fn character_set_with_contents_of_file(path: NSString) -> NSCharacterSet
Returns a character set read from the bitmap representation stored in the file a given path.
Sourcepub fn bitmap_representation(&self) -> NSData
pub fn bitmap_representation(&self) -> NSData
An NSData object encoding the receiver in binary format.
Sourcepub fn inverted_set(&self) -> NSCharacterSet
pub fn inverted_set(&self) -> NSCharacterSet
A character set containing only characters that don’t exist in the receiver.
Sourcepub fn character_is_member(&self, character: unichar) -> bool
pub fn character_is_member(&self, character: unichar) -> bool
Returns a Boolean value that indicates whether a given character is in the receiver.
Sourcepub fn has_member_in_plane(&self, plane: UInt8) -> bool
pub fn has_member_in_plane(&self, plane: UInt8) -> bool
Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane.
Sourcepub fn is_superset_of_set(&self, other: NSCharacterSet) -> bool
pub fn is_superset_of_set(&self, other: NSCharacterSet) -> bool
Returns a Boolean value that indicates whether the receiver is a superset of another given character set.
Sourcepub fn long_character_is_member(&self, long_char: u32) -> bool
pub fn long_character_is_member(&self, long_char: u32) -> bool
Returns a Boolean value that indicates whether a given long character is a member of the receiver.
Methods from Deref<Target = Object>§
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.