BUnicodeChar
class BUnicodeChar {
BUnicodeChar();
BUnicodeChar::FromUTF8(const char* in)
uint32 c = BUnicodeChar::FromUTF8(&clear);
fCharacterView->ScrollToCharacter(BUnicodeChar::FromUTF8(text));
uint32 unicodeChar = BUnicodeChar::FromUTF8(&c);
if (BUnicodeChar::IsUpper(unicodeChar))
uint32 unicodeChar = BUnicodeChar::FromUTF8(&c);
if (BUnicodeChar::IsDigit(unicodeChar))
if (BUnicodeChar::IsWhitespace(fTextView->Text()[i])) {
uint32 key = BUnicodeChar::FromUTF8(unmodified.StringAt(i));
switch (BUnicodeChar::EastAsianWidth(BUnicodeChar::FromUTF8(bytes))) {
return BUnicodeChar::IsSpace(BUnicodeChar::FromUTF8(bytes));
return BUnicodeChar::IsAlNum(BUnicodeChar::FromUTF8(bytes));
uint32 c = BUnicodeChar::ToLower(BUnicodeChar::FromUTF8(bytes));
BUnicodeChar::ToUTF8(c, &utf8);
uint32 key = BUnicodeChar::FromUTF8(unmodified.StringAt(i));
while ((c = BUnicodeChar::FromUTF8(&nextCharacter)) != 0) {
if (!(c < 128 && BUnicodeChar::IsAlNum(c)) || triggers.HasTrigger(c)) {
trigger = BUnicodeChar::ToLower(c);
while ((c = BUnicodeChar::FromUTF8(&nextCharacter)) != 0) {
if (BUnicodeChar::IsSpace(c) || triggers.HasTrigger(c)) {
trigger = BUnicodeChar::ToLower(c);
uint32 trigger = BUnicodeChar::FromUTF8(&bytes);
{ return fList.find(BUnicodeChar::ToLower(c)) != fList.end(); }
fList.insert(BUnicodeChar::ToLower(c));
return BUnicodeChar::ToUpper(key);
for (char* previousPos = currentPos; (ch = BUnicodeChar::FromUTF8(
if (!inQuote && BUnicodeChar::IsWhitespace(ch)) {
BUnicodeChar::IsDefined(uint32 c)
BUnicodeChar::IsBase(uint32 c)
BUnicodeChar::IsControl(uint32 c)
BUnicodeChar::IsPunctuation(uint32 c)
BUnicodeChar::IsSpace(uint32 c)
BUnicodeChar::IsWhitespace(uint32 c)
BUnicodeChar::BUnicodeChar()
BUnicodeChar::IsPrintable(uint32 c)
BUnicodeChar::ToLower(uint32 c)
BUnicodeChar::ToUpper(uint32 c)
BUnicodeChar::ToTitle(uint32 c)
BUnicodeChar::DigitValue(uint32 c)
BUnicodeChar::EastAsianWidth(uint32 c)
BUnicodeChar::ToUTF8(uint32 c, char** out)
BUnicodeChar::FromUTF8(const char** in)
BUnicodeChar::UTF8StringLength(const char* string)
BUnicodeChar::Type(uint32 c)
BUnicodeChar::UTF8StringLength(const char* string, size_t maxLength)
BUnicodeChar::IsAlpha(uint32 c)
BUnicodeChar::IsAlNum(uint32 c)
BUnicodeChar::IsLower(uint32 c)
BUnicodeChar::IsUpper(uint32 c)
BUnicodeChar::IsTitle(uint32 c)
BUnicodeChar::IsDigit(uint32 c)
BUnicodeChar::IsHexDigit(uint32 c)
BUnicodeChar::ToUTF8(c, &ptr);
uint32 unicodeCharacter = BUnicodeChar::FromUTF8(
while (uint32 codePoint = BUnicodeChar::FromUTF8(&value)) {
if (BUnicodeChar::IsAlpha(codePoint)) {
uint32 lower = BUnicodeChar::ToLower(codePoint);
uint32 upper = BUnicodeChar::ToUpper(codePoint);
BUnicodeChar::ToUTF8(codePoint, &utf8);
BUnicodeChar::ToUTF8(lower, &utf8);
BUnicodeChar::ToUTF8(upper, &utf8);
BUnicodeChar::ToUTF8(codePoint, &utf8);
uint32 key = BUnicodeChar::FromUTF8(unmodified.StringAt(i));
_TestChar(BUnicodeChar::FromUTF8(utf8chars[i]), results[i]);
BUnicodeChar::ToUTF8(c, &text);
CPPUNIT_ASSERT_EQUAL(result.isAlpha, BUnicodeChar::IsAlpha(i));
CPPUNIT_ASSERT_EQUAL(result.isAlNum, BUnicodeChar::IsAlNum(i));
CPPUNIT_ASSERT_EQUAL(result.isLower, BUnicodeChar::IsLower(i));
CPPUNIT_ASSERT_EQUAL(result.isUpper, BUnicodeChar::IsUpper(i));
CPPUNIT_ASSERT_EQUAL(result.isDefined, BUnicodeChar::IsDefined(i));
CPPUNIT_ASSERT_EQUAL(result.type, BUnicodeChar::Type(i));
CPPUNIT_ASSERT_EQUAL(result.toUpper, BUnicodeChar::ToUpper(i));
CPPUNIT_ASSERT_EQUAL(result.toLower, BUnicodeChar::ToLower(i));