|
GNUstep CoreBase Library
0.2
|
Unicode Code Point Functions | |
| Boolean | GSCharacterIsASCII (const UTF32Char c) |
| Determine if a character is an ASCII character (less than 128). More... | |
| Boolean | GSCharacterIsWhitespace (const UTF32Char c) |
| Determine if a character is a whitespace character. More... | |
| Boolean | GSCharacterIsInSupplementaryPlane (const UTF32Char c) |
| Determine if character is in one of the supplementary planes. More... | |
| Boolean | GSCharacterIsSurrogate (const UTF32Char c) |
| Determine true if character is a surrogate code point. More... | |
| Boolean | GSCharacterIsLeadSurrogate (const UTF32Char c) |
| Determine if character is a leading surrogate code point. More... | |
| Boolean | GSCharacterIsTrailSurrogate (const UTF32Char c) |
| Determine if character is a trailing surrogate code point. More... | |
UTF-8 Utilities | |
| CFIndex | GSUTF8CharacterTrailBytesCount (const UTF8Char c) |
| Determine the number of trailing bytes for a UTF-8 character based on the leading code unit. More... | |
| Boolean | GSUTF8CharacterIsTrailing (const UTF8Char c) |
| Determines if the specified UTF-8 code unit is a trailing code unit. More... | |
| CFIndex | GSUTF8CharacterLength (const UTF32Char c) |
| Determine the number of UTF-8 code units required to represent the specified Unicode code point. More... | |
| CFIndex | GSUTF8CharacterAppendByteOrderMark (UTF8Char *d, const UTF8Char *limit) |
| Append the UTF-8 Byte Order Mark to the string buffer. More... | |
| Boolean | GSUTF8CharacterSkipByteOrderMark (const UTF8Char **s, const UTF8Char *limit) |
| Determine if a UTF-8 string buffer has a Byte Order Mark. More... | |
| CFIndex | GSUTF8CharacterAppend (UTF8Char *d, const UTF8Char *limit, UTF32Char c) |
| Append a character to a UTF-8 string buffer. More... | |
| CFIndex | GSUTF8CharacterGet (const UTF8Char *s, const UTF8Char *limit, UTF32Char *c) |
| Get a Unicode code unit from a UTF-8 string buffer. More... | |
| #define | kGSUTF8CharacterMaximumLength 4 |
| The maximum number of UTF-8 code units required to represent the highest Unicode code point. | |
UTF-16 Utilities | |
| CFIndex | GSUTF16CharacterAppend (UTF16Char *d, const UTF16Char *limit, UTF32Char c) |
| Append a character to a UTF-16 string buffer. More... | |
| CFIndex | GSUTF16CharacterGet (const UTF16Char *s, const UTF16Char *limit, UTF32Char *c) |
| Get a Unicode code point from a UTF-16 string buffer. More... | |
| #define | kGSUTF16CharacterMaximumLength 2 |
| The maximum number of UTF-16 code units required to represent the highest Unicode code point. | |
| #define | kGSUTF16CharacterByteOrderMark 0xFEFF |
| The Byte Order Mark for UTF-16 strings. | |
| #define | kGSUTF16CharacterSwappedByteOrderMark 0xFFFE |
| The swapped Byte Order Mark for UTF-16 strings. | |
UTF-32 Utilities | |
| #define | kGSUTF32CharacterByteOrderMark 0x0000FEFF |
| The Byte Order Mark for UTF-32 strings. | |
| #define | kGSUTF32CharacterSwappedByteOrderMark 0xFFFE0000 |
| The swapped Byte Order Mark for UTF-32 strings. | |
| Boolean GSCharacterIsASCII | ( | const UTF32Char | c | ) |
| [in] | c | Character to test. |
| Boolean GSCharacterIsWhitespace | ( | const UTF32Char | c | ) |
| [in] | c | Charater to test. |
| Boolean GSCharacterIsInSupplementaryPlane | ( | const UTF32Char | c | ) |
| [in] | c | Character to test. |
| Boolean GSCharacterIsSurrogate | ( | const UTF32Char | c | ) |
| [in] | c | Character to test. |
| Boolean GSCharacterIsLeadSurrogate | ( | const UTF32Char | c | ) |
| [in] | c | Character to test. |
| Boolean GSCharacterIsTrailSurrogate | ( | const UTF32Char | c | ) |
| [in] | c | Character to test. |
| CFIndex GSUTF8CharacterTrailBytesCount | ( | const UTF8Char | c | ) |
| [in] | c | Leading code unit to test. |
| Boolean GSUTF8CharacterIsTrailing | ( | const UTF8Char | c | ) |
| [in] | c | The code unit to test. |
| CFIndex GSUTF8CharacterLength | ( | const UTF32Char | c | ) |
| [in] | c | The Unicode code point to test. |
| CFIndex GSUTF8CharacterAppendByteOrderMark | ( | UTF8Char * | d, |
| const UTF8Char * | limit | ||
| ) |
| [in,out] | d | A pointer to the current position of the string buffer. This value is updated after a call to the function. |
| [in] | limit | The position just after the end of the buffer. |
| Boolean GSUTF8CharacterSkipByteOrderMark | ( | const UTF8Char ** | s, |
| const UTF8Char * | limit | ||
| ) |
| [in,out] | s | A pointer to the current position of the string buffer. This value is updated after a call to the function. |
| [in] | limit | The position just after the end of the buffer. The caller must ensure this parameter is beyond the string buffer pointed to by d. |
| CFIndex GSUTF8CharacterAppend | ( | UTF8Char * | d, |
| const UTF8Char * | limit, | ||
| UTF32Char | c | ||
| ) |
| [in] | d | A pointer to the current position of the string buffer. This value is updated after a call to the function. |
| [in] | limit | The position just after the end of the buffer. |
| [in] | c | The Unicode code point to write. |
0 if c is a surrogate or invalid code point. | CFIndex GSUTF8CharacterGet | ( | const UTF8Char * | s, |
| const UTF8Char * | limit, | ||
| UTF32Char * | c | ||
| ) |
| [in,out] | s | A pointer to the current position of the source buffer. This value is updated after a call to the function. |
| [in] | limit | The position just after the end of the buffer. Must be at least *s + 1. |
| [out] | c | On return, the character. |
| CFIndex GSUTF16CharacterAppend | ( | UTF16Char * | d, |
| const UTF16Char * | limit, | ||
| UTF32Char | c | ||
| ) |
| [in,out] | d | A pointer to the current position of the buffer. This value is updated after a call to the function. |
| [in] | limit | The position just after the end of the buffer. |
| [in] | c | The Unicode code point to write. |
| CFIndex GSUTF16CharacterGet | ( | const UTF16Char * | s, |
| const UTF16Char * | limit, | ||
| UTF32Char * | c | ||
| ) |
| [in] | s | A pointer to the current position of the buffer. This value is updated after a call to the function. |
| [in] | limit | The position just after the end of the buffer. Must be at least *s + 1. |
| [out] | c | On return, the character. |