Type Method
isValidUnicodeString(_:)isValidUnicodeString:error: isValidUnicodeString_error_
Checks whether a string uses the uppercase hexadecimal syntax for a Unicode code point.
Declaration
class func isValidUnicodeString(_ unicode: String) throwsDeclaration
+ (BOOL) isValidUnicodeString:(NSString *) unicode error:(NSError **) error;Declaration
isValidUnicodeString_error_(unicode: str) -> tuple[bool, NSError]Parameters
unicodeThe proposed Unicode code point string.
Parameters
unicodeThe proposed Unicode code point string.
errorOn failure, an error describing the invalid string.
Discussion
This does not check whether the code point is already assigned to another glyph in the font.
Return Value
YES if the method succeeded, otherwise NO.
Discussion
This does not check whether the code point is already assigned to another glyph in the font.
See Also
Unicode and Characters
The Unicode code points associated with the glyph, as an ordered set of uppercase hexadecimal strings.
The Unicode scalars associated with the glyph in their assignment order.
The number of associated Unicode code points.
The first Unicode code point associated with the glyph, as an uppercase hexadecimal string.
The first associated Unicode value as a scalar, or
nilwhen it is missing or invalid.The numeric value of the first associated Unicode code point, or
0when there is none.The character for the first associated Unicode code point, or an empty string when this convenience API cannot represent it.
Adds a Unicode code point while preserving the existing code points.
Adds a Unicode scalar while preserving the existing assignments.
Removes a Unicode code point while preserving the order of the remaining code points.
Removes a Unicode scalar while preserving the order of the remaining assignments.
Assigns Unicode code points without updating related state.
The Unicode string represented by the glyph’s character composition.
See Also
Unicode and Characters
The Unicode code points associated with the glyph, as an ordered set of uppercase hexadecimal strings.
The number of associated Unicode code points.
The first Unicode code point associated with the glyph, as an uppercase hexadecimal string.
The numeric value of the first associated Unicode code point, or
0when there is none.The character for the first associated Unicode code point, or an empty string when this convenience API cannot represent it.
Adds a Unicode code point while preserving the existing code points.
Removes a Unicode code point while preserving the order of the remaining code points.
Assigns Unicode code points without updating related state.
The Unicode string represented by the glyph’s character composition.