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). | |
Boolean | GSCharacterIsWhitespace (const UTF32Char c) |
Determine if a character is a whitespace character. | |
Boolean | GSCharacterIsInSupplementaryPlane (const UTF32Char c) |
Determine if character is in one of the supplementary planes. | |
Boolean | GSCharacterIsSurrogate (const UTF32Char c) |
Determine true if character is a surrogate code point. | |
Boolean | GSCharacterIsLeadSurrogate (const UTF32Char c) |
Determine if character is a leading surrogate code point. | |
Boolean | GSCharacterIsTrailSurrogate (const UTF32Char c) |
Determine if character is a trailing surrogate code point. | |
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. | |
Boolean | GSUTF8CharacterIsTrailing (const UTF8Char c) |
Determines if the specified UTF-8 code unit is a trailing code unit. | |
CFIndex | GSUTF8CharacterLength (const UTF32Char c) |
Determine the number of UTF-8 code units required to represent the specified Unicode code point. | |
CFIndex | GSUTF8CharacterAppendByteOrderMark (UTF8Char *d, const UTF8Char *limit) |
Append the UTF-8 Byte Order Mark to the string buffer. | |
Boolean | GSUTF8CharacterSkipByteOrderMark (const UTF8Char **s, const UTF8Char *limit) |
Determine if a UTF-8 string buffer has a Byte Order Mark. | |
CFIndex | GSUTF8CharacterAppend (UTF8Char *d, const UTF8Char *limit, UTF32Char c) |
Append a character to a UTF-8 string buffer. | |
CFIndex | GSUTF8CharacterGet (const UTF8Char *s, const UTF8Char *limit, UTF32Char *c) |
Get a Unicode code unit from a UTF-8 string buffer. | |
#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. | |
CFIndex | GSUTF16CharacterGet (const UTF16Char *s, const UTF16Char *limit, UTF32Char *c) |
Get a Unicode code point from a UTF-16 string buffer. | |
#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. | |
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. |