Lines Matching refs:IsBreak
27 bool IsBreak(const char* src) { in IsBreak() function
46 EXPECT_FALSE(IsBreak("U+D83C | U+DC31")); // emoji, U+1F431 in TEST()
49 EXPECT_TRUE(IsBreak("U+D800 | U+D800")); // two leading surrogates in TEST()
50 EXPECT_TRUE(IsBreak("U+DC00 | U+DC00")); // two trailing surrogates in TEST()
51 EXPECT_TRUE(IsBreak("'a' | U+D800")); // lonely leading surrogate in TEST()
52 EXPECT_TRUE(IsBreak("U+DC00 | 'a'")); // lonely trailing surrogate in TEST()
53 EXPECT_TRUE(IsBreak("U+D800 | 'a'")); // leading surrogate followed by non-surrogate in TEST()
54 EXPECT_TRUE(IsBreak("'a' | U+DC00")); // non-surrogate followed by trailing surrogate in TEST()
59 EXPECT_TRUE(IsBreak("| 'a'")); in TEST()
60 EXPECT_TRUE(IsBreak("'a' |")); in TEST()
63 EXPECT_FALSE(IsBreak("U+000D | U+000A")); // CR x LF in TEST()
66 EXPECT_TRUE(IsBreak("'a' | U+2028")); // Line separator in TEST()
67 EXPECT_TRUE(IsBreak("'a' | U+000D")); // LF in TEST()
68 EXPECT_TRUE(IsBreak("'a' | U+000A")); // CR in TEST()
71 EXPECT_TRUE(IsBreak("U+2028 | 'a'")); // Line separator in TEST()
72 EXPECT_TRUE(IsBreak("U+000D | 'a'")); // LF in TEST()
73 EXPECT_TRUE(IsBreak("U+000A | 'a'")); // CR in TEST()
76 EXPECT_FALSE(IsBreak("U+1100 | U+1100")); // L x L in TEST()
77 EXPECT_FALSE(IsBreak("U+1100 | U+1161")); // L x V in TEST()
78 EXPECT_FALSE(IsBreak("U+1100 | U+AC00")); // L x LV in TEST()
79 EXPECT_FALSE(IsBreak("U+1100 | U+AC01")); // L x LVT in TEST()
82 EXPECT_FALSE(IsBreak("U+AC00 | U+1161")); // LV x V in TEST()
83 EXPECT_FALSE(IsBreak("U+1161 | U+1161")); // V x V in TEST()
84 EXPECT_FALSE(IsBreak("U+AC00 | U+11A8")); // LV x T in TEST()
85 EXPECT_FALSE(IsBreak("U+1161 | U+11A8")); // V x T in TEST()
88 EXPECT_FALSE(IsBreak("U+AC01 | U+11A8")); // LVT x T in TEST()
89 EXPECT_FALSE(IsBreak("U+11A8 | U+11A8")); // T x T in TEST()
92 EXPECT_TRUE(IsBreak("U+AC00 | U+1100")); // LV x L in TEST()
93 EXPECT_TRUE(IsBreak("U+AC01 | U+1100")); // LVT x L in TEST()
94 EXPECT_TRUE(IsBreak("U+11A8 | U+1100")); // T x L in TEST()
95 EXPECT_TRUE(IsBreak("U+11A8 | U+AC00")); // T x LV in TEST()
96 EXPECT_TRUE(IsBreak("U+11A8 | U+AC01")); // T x LVT in TEST()
99 EXPECT_FALSE(IsBreak("U+1F1FA | U+1F1F8")); in TEST()
100 EXPECT_TRUE(IsBreak("U+1F1FA U+1F1F8 | U+1F1FA U+1F1F8")); // Regional indicator pair (flag) in TEST()
101 EXPECT_FALSE(IsBreak("U+1F1FA | U+1F1F8 U+1F1FA U+1F1F8")); // Regional indicator pair (flag) in TEST()
102 EXPECT_FALSE(IsBreak("U+1F1FA U+1F1F8 U+1F1FA | U+1F1F8")); // Regional indicator pair (flag) in TEST()
104 EXPECT_TRUE(IsBreak("U+1F1FA U+1F1F8 | U+1F1FA")); // Regional indicator pair (flag) in TEST()
105 EXPECT_FALSE(IsBreak("U+1F1FA | U+1F1F8 U+1F1FA")); // Regional indicator pair (flag) in TEST()
118 EXPECT_TRUE(IsBreak("'a' U+1F1FA U+1F1F8 | U+1F1FA")); // Regional indicator pair (flag) in TEST()
119 EXPECT_FALSE(IsBreak("'a' U+1F1FA | U+1F1F8 U+1F1FA")); // Regional indicator pair (flag) in TEST()
122 IsBreak("'a' U+1F1FA U+1F1F8 | U+1F1FA U+1F1F8")); // Regional indicator pair (flag) in TEST()
124 IsBreak("'a' U+1F1FA | U+1F1F8 U+1F1FA U+1F1F8")); // Regional indicator pair (flag) in TEST()
126 IsBreak("'a' U+1F1FA U+1F1F8 U+1F1FA | U+1F1F8")); // Regional indicator pair (flag) in TEST()
129 EXPECT_FALSE(IsBreak("'a' | U+0301")); // combining accent in TEST()
130 EXPECT_FALSE(IsBreak("'a' | U+200D")); // ZWJ in TEST()
132 EXPECT_FALSE(IsBreak("U+0915 | U+093E")); // KA, AA (spacing mark) in TEST()
137 EXPECT_TRUE(IsBreak("'a' | 'b'")); in TEST()
138 EXPECT_TRUE(IsBreak("'f' | 'i'")); // probable ligature in TEST()
139 EXPECT_TRUE(IsBreak("U+0644 | U+0627")); // probable ligature, lam + alef in TEST()
140 EXPECT_TRUE(IsBreak("U+4E00 | U+4E00")); // CJK ideographs in TEST()
141 EXPECT_TRUE(IsBreak("'a' | U+1F1FA U+1F1F8")); // Regional indicator pair (flag) in TEST()
142 EXPECT_TRUE(IsBreak("U+1F1FA U+1F1F8 | 'a'")); // Regional indicator pair (flag) in TEST()
145 EXPECT_TRUE(IsBreak("'a' | U+1F3F4 'a'")); in TEST()
146 EXPECT_TRUE(IsBreak("'a' U+1F3F4 | 'a'")); in TEST()
149 EXPECT_TRUE(IsBreak("'a' | U+1F3F4 U+E007F 'a'")); in TEST()
150 EXPECT_FALSE(IsBreak("U+1F3F4 | U+E007F")); in TEST()
151 EXPECT_TRUE(IsBreak("'a' U+1F3F4 U+E007F | 'a'")); in TEST()
163 EXPECT_TRUE(IsBreak("'a' | U+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 U+E007F")); in TEST()
164 EXPECT_FALSE(IsBreak("U+1F3F4 | U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 U+E007F")); in TEST()
165 EXPECT_FALSE(IsBreak("U+1F3F4 U+E0067 | U+E0062 U+E0073 U+E0063 U+E0074 U+E007F")); in TEST()
166 EXPECT_FALSE(IsBreak("U+1F3F4 U+E0067 U+E0062 | U+E0073 U+E0063 U+E0074 U+E007F")); in TEST()
167 EXPECT_FALSE(IsBreak("U+1F3F4 U+E0067 U+E0062 U+E0073 | U+E0063 U+E0074 U+E007F")); in TEST()
168 EXPECT_FALSE(IsBreak("U+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 | U+E0074 U+E007F")); in TEST()
169 EXPECT_FALSE(IsBreak("U+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 | U+E007F")); in TEST()
170 EXPECT_TRUE(IsBreak("U+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 U+E007F | 'a'")); in TEST()
175 EXPECT_FALSE(IsBreak("'a' | U+00AD")); // soft hyphen in TEST()
176 EXPECT_FALSE(IsBreak("'a' | U+200B")); // zwsp in TEST()
177 EXPECT_FALSE(IsBreak("'a' | U+200E")); // lrm in TEST()
178 EXPECT_FALSE(IsBreak("'a' | U+202A")); // lre in TEST()
179 EXPECT_FALSE(IsBreak("'a' | U+E0041")); // tag character in TEST()
182 EXPECT_FALSE(IsBreak("U+06DD | U+0661")); // arabic subtending mark + digit one in TEST()
184 EXPECT_TRUE(IsBreak("U+0E01 | U+0E33")); // Thai sara am in TEST()
187 EXPECT_FALSE(IsBreak("U+0915 | U+094D U+0915")); // Devanagari ka+virama+ka in TEST()
188 EXPECT_FALSE(IsBreak("U+0915 U+094D | U+0915")); // Devanagari ka+virama+ka in TEST()
189 EXPECT_FALSE(IsBreak("U+0E01 | U+0E3A U+0E01")); // thai phinthu = pure killer in TEST()
190 EXPECT_TRUE(IsBreak("U+0E01 U+0E3A | U+0E01")); // thai phinthu = pure killer in TEST()
218 EXPECT_FALSE(IsBreak("U+1F469 U+200D | U+2764 U+FE0F U+200D U+1F48B U+200D U+1F468")); in TEST()
219 EXPECT_FALSE(IsBreak("U+1F469 U+200D U+2764 U+FE0F U+200D | U+1F48B U+200D U+1F468")); in TEST()
220 EXPECT_FALSE(IsBreak("U+1F469 U+200D U+2764 U+FE0F U+200D U+1F48B U+200D | U+1F468")); in TEST()
221 EXPECT_FALSE(IsBreak("U+1F468 U+200D | U+1F469 U+200D U+1F466")); in TEST()
222 EXPECT_FALSE(IsBreak("U+1F468 U+200D U+1F469 U+200D | U+1F466")); in TEST()
223 EXPECT_FALSE(IsBreak("U+1F469 U+200D | U+1F469 U+200D U+1F467 U+200D U+1F466")); in TEST()
224 EXPECT_FALSE(IsBreak("U+1F469 U+200D U+1F469 U+200D | U+1F467 U+200D U+1F466")); in TEST()
225 EXPECT_FALSE(IsBreak("U+1F469 U+200D U+1F469 U+200D U+1F467 U+200D | U+1F466")); in TEST()
226 EXPECT_FALSE(IsBreak("U+1F441 U+200D | U+1F5E8")); in TEST()
229 EXPECT_FALSE(IsBreak("U+1F431 | U+200D U+1F464")); in TEST()
230 EXPECT_FALSE(IsBreak("U+1F431 U+200D | U+1F464")); in TEST()
233 EXPECT_TRUE(IsBreak("U+0628 U+200D | U+2764")); in TEST()
237 EXPECT_FALSE(IsBreak("U+261D | U+1F3FB")); // white up pointing index + modifier in TEST()
238 EXPECT_FALSE(IsBreak("U+270C | U+1F3FB")); // victory hand + modifier in TEST()
239 EXPECT_FALSE(IsBreak("U+1F466 | U+1F3FB")); // boy + modifier in TEST()
240 EXPECT_FALSE(IsBreak("U+1F466 | U+1F3FC")); // boy + modifier in TEST()
241 EXPECT_FALSE(IsBreak("U+1F466 | U+1F3FD")); // boy + modifier in TEST()
242 EXPECT_FALSE(IsBreak("U+1F466 | U+1F3FE")); // boy + modifier in TEST()
243 EXPECT_FALSE(IsBreak("U+1F466 | U+1F3FF")); // boy + modifier in TEST()
244 EXPECT_FALSE(IsBreak("U+1F918 | U+1F3FF")); // sign of the horns + modifier in TEST()
245 EXPECT_FALSE(IsBreak("U+1F933 | U+1F3FF")); // selfie (Unicode 9) + modifier in TEST()
272 EXPECT_FALSE(IsBreak("U+270C U+FE0E | U+1F3FB")); // victory hand + text style + modifier in TEST()
273 EXPECT_FALSE(IsBreak("U+270C U+FE0F | U+1F3FB")); // heart + emoji style + modifier in TEST()
284 EXPECT_TRUE(IsBreak("U+1F466 | U+1F400")); // boy + rat in TEST()
289 EXPECT_FALSE(IsBreak("U+1F469 | U+200D U+1F4BC")); in TEST()
290 EXPECT_FALSE(IsBreak("U+1F469 U+200D | U+1F4BC")); in TEST()
298 EXPECT_FALSE(IsBreak("U+1F469 | U+200D U+2695")); in TEST()
299 EXPECT_FALSE(IsBreak("U+1F469 U+200D | U+2695")); in TEST()
317 IsBreak("U+200D | U+1F5E8"); // UB sanitizer will catch if minikin looks the char before ZWJ in TEST()