Lines Matching refs:unilib_
28 EXPECT_TRUE(unilib_->IsOpeningBracket('(')); in TEST_F()
29 EXPECT_TRUE(unilib_->IsClosingBracket(')')); in TEST_F()
30 EXPECT_FALSE(unilib_->IsWhitespace(')')); in TEST_F()
31 EXPECT_TRUE(unilib_->IsWhitespace(' ')); in TEST_F()
32 EXPECT_FALSE(unilib_->IsDigit(')')); in TEST_F()
33 EXPECT_TRUE(unilib_->IsDigit('0')); in TEST_F()
34 EXPECT_TRUE(unilib_->IsDigit('9')); in TEST_F()
35 EXPECT_FALSE(unilib_->IsUpper(')')); in TEST_F()
36 EXPECT_TRUE(unilib_->IsUpper('A')); in TEST_F()
37 EXPECT_TRUE(unilib_->IsUpper('Z')); in TEST_F()
38 EXPECT_FALSE(unilib_->IsLower(')')); in TEST_F()
39 EXPECT_TRUE(unilib_->IsLower('a')); in TEST_F()
40 EXPECT_TRUE(unilib_->IsLower('z')); in TEST_F()
41 EXPECT_TRUE(unilib_->IsPunctuation('!')); in TEST_F()
42 EXPECT_TRUE(unilib_->IsPunctuation('?')); in TEST_F()
43 EXPECT_TRUE(unilib_->IsPunctuation('#')); in TEST_F()
44 EXPECT_TRUE(unilib_->IsPunctuation('(')); in TEST_F()
45 EXPECT_FALSE(unilib_->IsPunctuation('0')); in TEST_F()
46 EXPECT_FALSE(unilib_->IsPunctuation('$')); in TEST_F()
47 EXPECT_TRUE(unilib_->IsPercentage('%')); in TEST_F()
48 EXPECT_TRUE(unilib_->IsPercentage(u'%')); in TEST_F()
49 EXPECT_TRUE(unilib_->IsSlash('/')); in TEST_F()
50 EXPECT_TRUE(unilib_->IsSlash(u'/')); in TEST_F()
51 EXPECT_TRUE(unilib_->IsMinus('-')); in TEST_F()
52 EXPECT_TRUE(unilib_->IsMinus(u'-')); in TEST_F()
53 EXPECT_TRUE(unilib_->IsNumberSign('#')); in TEST_F()
54 EXPECT_TRUE(unilib_->IsNumberSign(u'#')); in TEST_F()
55 EXPECT_TRUE(unilib_->IsDot('.')); in TEST_F()
56 EXPECT_TRUE(unilib_->IsDot(u'.')); in TEST_F()
57 EXPECT_TRUE(unilib_->IsApostrophe('\'')); in TEST_F()
58 EXPECT_TRUE(unilib_->IsApostrophe(u'ߴ')); in TEST_F()
59 EXPECT_TRUE(unilib_->IsQuotation(u'"')); in TEST_F()
60 EXPECT_TRUE(unilib_->IsQuotation(u'”')); in TEST_F()
61 EXPECT_TRUE(unilib_->IsAmpersand(u'&')); in TEST_F()
62 EXPECT_TRUE(unilib_->IsAmpersand(u'﹠')); in TEST_F()
63 EXPECT_TRUE(unilib_->IsAmpersand(u'&')); in TEST_F()
65 EXPECT_TRUE(unilib_->IsLatinLetter('A')); in TEST_F()
66 EXPECT_TRUE(unilib_->IsArabicLetter(u'ب')); // ARABIC LETTER BEH in TEST_F()
68 unilib_->IsCyrillicLetter(u'ᲀ')); // CYRILLIC SMALL LETTER ROUNDED VE in TEST_F()
69 EXPECT_TRUE(unilib_->IsChineseLetter(u'豈')); // CJK COMPATIBILITY IDEOGRAPH in TEST_F()
70 EXPECT_TRUE(unilib_->IsJapaneseLetter(u'ぁ')); // HIRAGANA LETTER SMALL A in TEST_F()
71 EXPECT_TRUE(unilib_->IsKoreanLetter(u'ㄱ')); // HANGUL LETTER KIYEOK in TEST_F()
72 EXPECT_TRUE(unilib_->IsThaiLetter(u'ก')); // THAI CHARACTER KO KAI in TEST_F()
73 EXPECT_TRUE(unilib_->IsCJTletter(u'ก')); // THAI CHARACTER KO KAI in TEST_F()
74 EXPECT_FALSE(unilib_->IsCJTletter('A')); in TEST_F()
76 EXPECT_TRUE(unilib_->IsLetter('A')); in TEST_F()
77 EXPECT_TRUE(unilib_->IsLetter(u'A')); in TEST_F()
78 EXPECT_TRUE(unilib_->IsLetter(u'ト')); // KATAKANA LETTER TO in TEST_F()
79 EXPECT_TRUE(unilib_->IsLetter(u'ト')); // HALFWIDTH KATAKANA LETTER TO in TEST_F()
80 EXPECT_TRUE(unilib_->IsLetter(u'豈')); // CJK COMPATIBILITY IDEOGRAPH in TEST_F()
82 EXPECT_EQ(unilib_->ToLower('A'), 'a'); in TEST_F()
83 EXPECT_EQ(unilib_->ToLower('Z'), 'z'); in TEST_F()
84 EXPECT_EQ(unilib_->ToLower(')'), ')'); in TEST_F()
85 EXPECT_EQ(unilib_->ToLowerText(UTF8ToUnicodeText("Never gonna give you up.")) in TEST_F()
88 EXPECT_EQ(unilib_->ToUpper('a'), 'A'); in TEST_F()
89 EXPECT_EQ(unilib_->ToUpper('z'), 'Z'); in TEST_F()
90 EXPECT_EQ(unilib_->ToUpper(')'), ')'); in TEST_F()
91 EXPECT_EQ(unilib_->ToUpperText(UTF8ToUnicodeText("Never gonna let you down.")) in TEST_F()
94 EXPECT_EQ(unilib_->GetPairedBracket(')'), '('); in TEST_F()
95 EXPECT_EQ(unilib_->GetPairedBracket('}'), '{'); in TEST_F()
99 EXPECT_TRUE(unilib_->IsOpeningBracket(0x0F3C)); // TIBET ANG KHANG GYON in TEST_F()
100 EXPECT_TRUE(unilib_->IsClosingBracket(0x0F3D)); // TIBET ANG KHANG GYAS in TEST_F()
101 EXPECT_FALSE(unilib_->IsWhitespace(0x23F0)); // ALARM CLOCK in TEST_F()
102 EXPECT_TRUE(unilib_->IsWhitespace(0x2003)); // EM SPACE in TEST_F()
103 EXPECT_FALSE(unilib_->IsDigit(0xA619)); // VAI SYMBOL JONG in TEST_F()
104 EXPECT_TRUE(unilib_->IsDigit(0xA620)); // VAI DIGIT ZERO in TEST_F()
105 EXPECT_TRUE(unilib_->IsDigit(0xA629)); // VAI DIGIT NINE in TEST_F()
106 EXPECT_FALSE(unilib_->IsDigit(0xA62A)); // VAI SYLLABLE NDOLE MA in TEST_F()
107 EXPECT_FALSE(unilib_->IsUpper(0x0211)); // SMALL R WITH DOUBLE GRAVE in TEST_F()
108 EXPECT_TRUE(unilib_->IsUpper(0x0212)); // CAPITAL R WITH DOUBLE GRAVE in TEST_F()
109 EXPECT_TRUE(unilib_->IsUpper(0x0391)); // GREEK CAPITAL ALPHA in TEST_F()
110 EXPECT_TRUE(unilib_->IsUpper(0x03AB)); // GREEK CAPITAL UPSILON W DIAL in TEST_F()
111 EXPECT_FALSE(unilib_->IsUpper(0x03AC)); // GREEK SMALL ALPHA WITH TONOS in TEST_F()
112 EXPECT_TRUE(unilib_->IsLower(0x03AC)); // GREEK SMALL ALPHA WITH TONOS in TEST_F()
113 EXPECT_TRUE(unilib_->IsLower(0x03B1)); // GREEK SMALL ALPHA in TEST_F()
114 EXPECT_TRUE(unilib_->IsLower(0x03CB)); // GREEK SMALL UPSILON in TEST_F()
115 EXPECT_TRUE(unilib_->IsLower(0x0211)); // SMALL R WITH DOUBLE GRAVE in TEST_F()
116 EXPECT_TRUE(unilib_->IsLower(0x03C0)); // GREEK SMALL PI in TEST_F()
117 EXPECT_TRUE(unilib_->IsLower(0x007A)); // SMALL Z in TEST_F()
118 EXPECT_FALSE(unilib_->IsLower(0x005A)); // CAPITAL Z in TEST_F()
119 EXPECT_FALSE(unilib_->IsLower(0x0212)); // CAPITAL R WITH DOUBLE GRAVE in TEST_F()
120 EXPECT_FALSE(unilib_->IsLower(0x0391)); // GREEK CAPITAL ALPHA in TEST_F()
121 EXPECT_TRUE(unilib_->IsPunctuation(0x055E)); // ARMENIAN QUESTION MARK in TEST_F()
122 EXPECT_TRUE(unilib_->IsPunctuation(0x066C)); // ARABIC THOUSANDS SEPARATOR in TEST_F()
123 EXPECT_TRUE(unilib_->IsPunctuation(0x07F7)); // NKO SYMBOL GBAKURUNEN in TEST_F()
124 EXPECT_TRUE(unilib_->IsPunctuation(0x10AF2)); // DOUBLE DOT WITHIN DOT in TEST_F()
125 EXPECT_FALSE(unilib_->IsPunctuation(0x00A3)); // POUND SIGN in TEST_F()
126 EXPECT_FALSE(unilib_->IsPunctuation(0xA838)); // NORTH INDIC RUPEE MARK in TEST_F()
127 EXPECT_TRUE(unilib_->IsPercentage(0x0025)); // PERCENT SIGN in TEST_F()
128 EXPECT_TRUE(unilib_->IsPercentage(0xFF05)); // FULLWIDTH PERCENT SIGN in TEST_F()
129 EXPECT_TRUE(unilib_->IsSlash(0x002F)); // SOLIDUS in TEST_F()
130 EXPECT_TRUE(unilib_->IsSlash(0xFF0F)); // FULLWIDTH SOLIDUS in TEST_F()
131 EXPECT_TRUE(unilib_->IsMinus(0x002D)); // HYPHEN-MINUS in TEST_F()
132 EXPECT_TRUE(unilib_->IsMinus(0xFF0D)); // FULLWIDTH HYPHEN-MINUS in TEST_F()
133 EXPECT_TRUE(unilib_->IsNumberSign(0x0023)); // NUMBER SIGN in TEST_F()
134 EXPECT_TRUE(unilib_->IsNumberSign(0xFF03)); // FULLWIDTH NUMBER SIGN in TEST_F()
135 EXPECT_TRUE(unilib_->IsDot(0x002E)); // FULL STOP in TEST_F()
136 EXPECT_TRUE(unilib_->IsDot(0xFF0E)); // FULLWIDTH FULL STOP in TEST_F()
138 EXPECT_TRUE(unilib_->IsLatinLetter(0x0041)); // LATIN CAPITAL LETTER A in TEST_F()
139 EXPECT_TRUE(unilib_->IsArabicLetter(0x0628)); // ARABIC LETTER BEH in TEST_F()
141 unilib_->IsCyrillicLetter(0x1C80)); // CYRILLIC SMALL LETTER ROUNDED VE in TEST_F()
142 EXPECT_TRUE(unilib_->IsChineseLetter(0xF900)); // CJK COMPATIBILITY IDEOGRAPH in TEST_F()
143 EXPECT_TRUE(unilib_->IsJapaneseLetter(0x3041)); // HIRAGANA LETTER SMALL A in TEST_F()
144 EXPECT_TRUE(unilib_->IsKoreanLetter(0x3131)); // HANGUL LETTER KIYEOK in TEST_F()
145 EXPECT_TRUE(unilib_->IsThaiLetter(0x0E01)); // THAI CHARACTER KO KAI in TEST_F()
146 EXPECT_TRUE(unilib_->IsCJTletter(0x0E01)); // THAI CHARACTER KO KAI in TEST_F()
147 EXPECT_FALSE(unilib_->IsCJTletter(0x0041)); // LATIN CAPITAL LETTER A in TEST_F()
149 EXPECT_TRUE(unilib_->IsLetter(0x0041)); // LATIN CAPITAL LETTER A in TEST_F()
150 EXPECT_TRUE(unilib_->IsLetter(0xFF21)); // FULLWIDTH LATIN CAPITAL LETTER A in TEST_F()
151 EXPECT_TRUE(unilib_->IsLetter(0x30C8)); // KATAKANA LETTER TO in TEST_F()
152 EXPECT_TRUE(unilib_->IsLetter(0xFF84)); // HALFWIDTH KATAKANA LETTER TO in TEST_F()
153 EXPECT_TRUE(unilib_->IsLetter(0xF900)); // CJK COMPATIBILITY IDEOGRAPH in TEST_F()
155 EXPECT_EQ(unilib_->ToLower(0x0391), 0x03B1); // GREEK ALPHA in TEST_F()
156 EXPECT_EQ(unilib_->ToLower(0x03AB), 0x03CB); // GREEK UPSILON WITH DIALYTIKA in TEST_F()
157 EXPECT_EQ(unilib_->ToLower(0x03C0), 0x03C0); // GREEK SMALL PI in TEST_F()
158 EXPECT_EQ(unilib_->ToLower(0x03A3), 0x03C3); // GREEK CAPITAL LETTER SIGMA in TEST_F()
160 unilib_->ToLowerText(UTF8ToUnicodeText("Κανένας άνθρωπος δεν ξέρει")) in TEST_F()
163 EXPECT_TRUE(unilib_->IsLowerText(UTF8ToUnicodeText("ξέρει"))); in TEST_F()
164 EXPECT_EQ(unilib_->ToUpper(0x03B1), 0x0391); // GREEK ALPHA in TEST_F()
165 EXPECT_EQ(unilib_->ToUpper(0x03CB), 0x03AB); // GREEK UPSILON WITH DIALYTIKA in TEST_F()
166 EXPECT_EQ(unilib_->ToUpper(0x0391), 0x0391); // GREEK CAPITAL ALPHA in TEST_F()
167 EXPECT_EQ(unilib_->ToUpper(0x03C3), 0x03A3); // GREEK CAPITAL LETTER SIGMA in TEST_F()
168 EXPECT_EQ(unilib_->ToUpper(0x03C2), 0x03A3); // GREEK CAPITAL LETTER SIGMA in TEST_F()
170 unilib_->ToUpperText(UTF8ToUnicodeText("Κανένας άνθρωπος δεν ξέρει")) in TEST_F()
173 EXPECT_TRUE(unilib_->IsUpperText(UTF8ToUnicodeText("ΚΑΝΈΝΑΣ"))); in TEST_F()
174 EXPECT_EQ(unilib_->GetPairedBracket(0x0F3C), 0x0F3D); in TEST_F()
175 EXPECT_EQ(unilib_->GetPairedBracket(0x0F3D), 0x0F3C); in TEST_F()
182 unilib_->CreateRegexPattern(regex_pattern); in TEST_F()
200 unilib_->CreateRegexPattern(regex_pattern); in TEST_F()
232 unilib_->CreateLazyRegexPattern( in TEST_F()
258 unilib_->CreateRegexPattern(regex_pattern); in TEST_F()
290 unilib_->CreateRegexPattern(regex_pattern); in TEST_F()
309 unilib_->CreateRegexPattern(regex_pattern); in TEST_F()
325 unilib_->CreateBreakIterator(text); in TEST_F()
337 unilib_->CreateBreakIterator(text); in TEST_F()
348 EXPECT_TRUE(unilib_->ParseInt32(UTF8ToUnicodeText("123", /*do_copy=*/false), in TEST_F()
355 EXPECT_FALSE(unilib_->ParseInt32(UTF8ToUnicodeText("12.3", /*do_copy=*/false), in TEST_F()
361 EXPECT_TRUE(unilib_->ParseInt32( in TEST_F()
368 EXPECT_FALSE(unilib_->ParseInt32( in TEST_F()
375 unilib_->ParseInt32(UTF8ToUnicodeText("", /*do_copy=*/false), &result)); in TEST_F()
381 EXPECT_TRUE(unilib_->ParseInt32( in TEST_F()
389 EXPECT_FALSE(unilib_->ParseInt32( in TEST_F()
392 EXPECT_FALSE(unilib_->ParseInt32(UTF8ToUnicodeText("Nancy", in TEST_F()
396 EXPECT_FALSE(unilib_->ParseInt32( in TEST_F()
402 EXPECT_TRUE(unilib_->ParseInt64(UTF8ToUnicodeText("123", /*do_copy=*/false), in TEST_F()
409 EXPECT_FALSE(unilib_->ParseInt64(UTF8ToUnicodeText("12.3", /*do_copy=*/false), in TEST_F()
417 EXPECT_TRUE(unilib_->ParseInt64( in TEST_F()
424 EXPECT_FALSE(unilib_->ParseInt64( in TEST_F()
430 EXPECT_FALSE(unilib_->ParseInt64( in TEST_F()
437 unilib_->ParseInt64(UTF8ToUnicodeText("", /*do_copy=*/false), &result)); in TEST_F()
443 EXPECT_TRUE(unilib_->ParseInt64( in TEST_F()
451 EXPECT_FALSE(unilib_->ParseInt64( in TEST_F()
454 EXPECT_FALSE(unilib_->ParseInt64(UTF8ToUnicodeText("Nancy", in TEST_F()
458 EXPECT_FALSE(unilib_->ParseInt64( in TEST_F()
464 EXPECT_TRUE(unilib_->ParseDouble(UTF8ToUnicodeText("1.23", /*do_copy=*/false), in TEST_F()
473 EXPECT_TRUE(unilib_->ParseDouble( in TEST_F()
480 EXPECT_TRUE(unilib_->ParseDouble(UTF8ToUnicodeText("123", /*do_copy=*/false), in TEST_F()
488 unilib_->ParseDouble(UTF8ToUnicodeText("", /*do_copy=*/false), &result)); in TEST_F()
493 EXPECT_FALSE(unilib_->ParseDouble( in TEST_F()
499 EXPECT_FALSE(unilib_->ParseDouble( in TEST_F()
505 EXPECT_FALSE(unilib_->ParseDouble( in TEST_F()
512 EXPECT_TRUE(unilib_->ParseDouble( in TEST_F()
520 EXPECT_FALSE(unilib_->ParseDouble( in TEST_F()
523 EXPECT_FALSE(unilib_->ParseDouble( in TEST_F()
526 EXPECT_FALSE(unilib_->ParseDouble( in TEST_F()
531 EXPECT_EQ(unilib_->Length(UTF8ToUnicodeText("hello", /*do_copy=*/false)) in TEST_F()
534 EXPECT_EQ(unilib_->Length(UTF8ToUnicodeText("ěščřž", /*do_copy=*/false)) in TEST_F()
542 unilib_->Length(UTF8ToUnicodeText("\xed\xa0\x80", /*do_copy=*/false)) in TEST_F()