13 #include "unicode/uchar.h"
16 #elif defined(UL_USING_COCOA_STRINGS)
18 typedef unichar ulchar;
20 typedef uluint16 ulchar;
23 # elif defined(UL_USING_LEGACY_STRINGS)
24 # ifdef UL_USING_32BIT_ULCHAR
25 typedef uluint32 ulchar;
27 typedef uluint16 ulchar;
40 ulchar ulcharToLower(ulchar ch);
46 ulchar ulcharToUpper(ulchar ch);
54 ulchar ulcharToBase(ulchar ch);
63 ulchar ulcharNormalize(ulchar ch,
bool toLower,
bool toBase);
70 ulchar ulcharAddAcuteAccent(ulchar ch);
77 ulchar ulcharAddUmlaut(ulchar ch);
84 bool ulcharIsWordChar(ulchar ch);
90 bool ulcharIsAlpha(ulchar ch);
96 bool ulcharIsDigit(ulchar ch);
102 bool ulcharIsHexDigit(ulchar ch);
108 bool ulcharIsSpace(ulchar ch);
114 bool ulcharIsUppercase(ulchar ch);
120 bool ulcharIsLowercase(ulchar ch);
127 bool ulcharIsVowel(ulchar ch,
const ULLanguage& language);
133 ulchar ulcharFirstLetterForLanguage(
const ULLanguage& language);
143 void ulcharToUTF8(ulchar ch,
char *buffer,
int& nBytes);
153 void ulcharToUTF16BigEndian(ulchar ch,
char *buffer,
int& nBytes);
163 void ulcharToUTF16LittleEndian(ulchar ch,
char *buffer,
int& nBytes);
165 #ifdef UL_USING_LEGACY_STRINGS
171 const char *utf8ToULChar(
const char *p, ulchar& ch);