Lines Matching refs:Character
30 #include "platform/fonts/Character.h"
51 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(below, 1));
52 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(start, 1));
53 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(midway, 1));
54 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(end, 1));
55 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(above, 1));
61 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c1, 1));
76 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c2, 1));
78 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c3, 1));
80 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c4, 1));
82 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c5, 1));
84 EXPECT_EQ(SimpleWithGlyphOverflowPath, Character::characterRangeCodePath(c6, 1));
86 EXPECT_EQ(SimpleWithGlyphOverflowPath, Character::characterRangeCodePath(c7, 1));
88 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c8, 1));
106 /* 1st character must be 0xD800 .. 0xDBFF */
107 /* 2nd character must be 0xdc00 .. 0xdfff */
111 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c1, 2));
113 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c2, 2));
115 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c3, 2));
117 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c4, 2));
119 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c5, 2));
121 /* To be Complex, the Supplementary Character must be in either */
126 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c6, 2));
128 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c7, 2));
130 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c8, 2));
132 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c9, 2));
134 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c10, 2));
137 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c11, 2));
139 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c12, 2));
141 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c13, 2));
143 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c14, 2));
145 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c15, 2));
152 EXPECT_EQ(SimplePath, Character::characterRangeCodePath(c1, 2));
155 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c2, 2));
158 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c3, 2));
161 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c4, 2));
164 EXPECT_EQ(SimpleWithGlyphOverflowPath, Character::characterRangeCodePath(c5, 2));
167 EXPECT_EQ(SimpleWithGlyphOverflowPath, Character::characterRangeCodePath(c6, 2));
170 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c7, 2));
173 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c8, 2));
176 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c9, 3));
179 EXPECT_EQ(ComplexPath, Character::characterRangeCodePath(c10, 3));
184 EXPECT_FALSE(Character::isCJKIdeograph(rangeStart - 1));
185 EXPECT_TRUE(Character::isCJKIdeograph(rangeStart));
186 EXPECT_TRUE(Character::isCJKIdeograph((UChar32)((uint64_t)rangeStart + (uint64_t)rangeEnd) / 2));
187 EXPECT_TRUE(Character::isCJKIdeograph(rangeEnd));
188 EXPECT_FALSE(Character::isCJKIdeograph(rangeEnd + 1));
214 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(rangeStart - 1));
215 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(rangeStart));
216 EXPECT_TRUE(Character::isCJKIdeographOrSymbol((UChar32)((uint64_t)rangeStart + (uint64_t)rangeEnd) / 2));
217 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(rangeEnd));
218 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(rangeEnd + 1));
224 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2C7));
225 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2CA));
226 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2CB));
227 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2D9));
229 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2020));
230 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2021));
231 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2030));
232 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x203B));
233 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x203C));
234 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2042));
235 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2047));
236 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2048));
237 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2049));
238 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2051));
239 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x20DD));
240 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x20DE));
241 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2100));
242 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2103));
243 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2105));
244 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2109));
245 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x210A));
246 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2113));
247 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2116));
248 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2121));
249 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x212B));
250 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x213B));
251 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2150));
252 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2151));
253 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2152));
259 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x217F));
260 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2189));
261 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2307));
262 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2312));
264 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0x23BD));
265 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x23BE));
266 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x23C4));
267 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x23CC));
268 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0x23CD));
269 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x23CE));
270 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2423));
275 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25A0));
276 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25A1));
277 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25A2));
278 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25AA));
279 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25AB));
280 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25B1));
281 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25B2));
282 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25B3));
283 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25B6));
284 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25B7));
285 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25BC));
286 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25BD));
287 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25C0));
288 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25C1));
289 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25C6));
290 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25C7));
291 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25C9));
292 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25CB));
293 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25CC));
298 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x25EF));
302 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2605));
303 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2606));
304 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x260E));
305 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2616));
306 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2617));
307 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2640));
308 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2642));
313 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x26A0));
314 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x26BD));
315 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x26BE));
316 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2713));
317 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x271A));
318 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x273F));
319 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2740));
320 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2756));
324 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x2B1A));
327 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x3031));
328 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x312F));
329 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0x3130));
331 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0x318F));
332 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x3190));
333 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x319F));
334 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x31BF));
336 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0x31FF));
337 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x3200));
338 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x3300));
339 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x33FF));
344 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0xFE10));
345 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0xFE11));
346 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0xFE12));
347 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0xFE19));
349 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0xFF0D));
350 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0xFF1B));
351 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0xFF1C));
352 EXPECT_FALSE(Character::isCJKIdeographOrSymbol(0xFF1E));
356 EXPECT_TRUE(Character::isCJKIdeographOrSymbol(0x1F100));