20 #ifndef INCLUDED_RTL_CHARACTER_HXX 21 #define INCLUDED_RTL_CHARACTER_HXX 42 return code <= 0x10FFFF;
71 return code >=
'a' && code <=
'z';
86 return code >=
'A' && code <=
'Z';
116 return code >=
'0' && code <=
'9';
146 return isAsciiDigit(code) || (code >=
'A' && code <=
'F');
175 return code >=
'0' && code <=
'7';
230 sal_uInt32
const surrogatesHighFirst = 0xD800;
231 sal_uInt32
const surrogatesHighLast = 0xDBFF;
232 sal_uInt32
const surrogatesLowFirst = 0xDC00;
233 sal_uInt32
const surrogatesLowLast = 0xDFFF;
248 return code >= detail::surrogatesHighFirst
249 && code <= detail::surrogatesHighLast;
262 return code >= detail::surrogatesLowFirst
263 && code <= detail::surrogatesLowLast;
276 assert(code >= 0x10000);
277 return static_cast<sal_Unicode>(((code - 0x10000) >> 10) | detail::surrogatesHighFirst);
290 assert(code >= 0x10000);
291 return static_cast<sal_Unicode>(((code - 0x10000) & 0x3FF) | detail::surrogatesLowFirst);
307 return ((high - detail::surrogatesHighFirst) << 10)
308 + (low - detail::surrogatesLowFirst) + 0x10000;
bool isAsciiHexDigit(sal_uInt32 code)
Check for ASCII hexadecimal digit character.
Definition: character.hxx:158
bool isUnicodeCodePoint(sal_uInt32 code)
Check for Unicode code point.
Definition: character.hxx:40
bool isAsciiDigit(sal_uInt32 code)
Check for ASCII digit character.
Definition: character.hxx:113
bool isAsciiAlpha(sal_uInt32 code)
Check for ASCII alphabetic character.
Definition: character.hxx:98
bool isAsciiOctalDigit(sal_uInt32 code)
Check for ASCII octal digit character.
Definition: character.hxx:172
sal_uInt32 toAsciiUpperCase(sal_uInt32 code)
Convert a character, if ASCII, to upper case.
Definition: character.hxx:187
bool isAscii(sal_uInt32 code)
Check for ASCII character.
Definition: character.hxx:53
bool isAsciiCanonicHexDigit(sal_uInt32 code)
Check for ASCII canonic hexadecimal digit character.
Definition: character.hxx:143
bool isLowSurrogate(sal_uInt32 code)
Check for low surrogate.
Definition: character.hxx:260
bool isAsciiAlphanumeric(sal_uInt32 code)
Check for ASCII alphanumeric character.
Definition: character.hxx:128
bool isAsciiUpperCase(sal_uInt32 code)
Check for ASCII upper case character.
Definition: character.hxx:83
bool isAsciiLowerCase(sal_uInt32 code)
Check for ASCII lower case character.
Definition: character.hxx:68
sal_uInt32 toAsciiLowerCase(sal_uInt32 code)
Convert a character, if ASCII, to lower case.
Definition: character.hxx:201
sal_uInt16 sal_Unicode
Definition: types.h:155
sal_Unicode getLowSurrogate(sal_uInt32 code)
Get low surrogate half of a non-BMP Unicode code point.
Definition: character.hxx:288
sal_uInt32 combineSurrogates(sal_uInt32 high, sal_uInt32 low)
Combine surrogates to form a code point.
Definition: character.hxx:304
Definition: bootstrap.hxx:29
sal_Int32 compareIgnoreAsciiCase(sal_uInt32 code1, sal_uInt32 code2)
Compare two characters ignoring ASCII case.
Definition: character.hxx:219
sal_Unicode getHighSurrogate(sal_uInt32 code)
Get high surrogate half of a non-BMP Unicode code point.
Definition: character.hxx:274
bool isHighSurrogate(sal_uInt32 code)
Check for high surrogate.
Definition: character.hxx:246