Lines Matching defs:lookup
142 const Hyphenator* lookup(const std::string& localeStr) {
151 EXPECT_EQ(AS_HYPHENATOR, lookup("as"));
152 EXPECT_EQ(BG_HYPHENATOR, lookup("bg"));
153 EXPECT_EQ(BN_HYPHENATOR, lookup("bn"));
154 EXPECT_EQ(CU_HYPHENATOR, lookup("cu"));
155 EXPECT_EQ(CY_HYPHENATOR, lookup("cy"));
156 EXPECT_EQ(DA_HYPHENATOR, lookup("da"));
157 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-1901"));
158 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-1996"));
159 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-CH-1901"));
160 EXPECT_EQ(EN_GB_HYPHENATOR, lookup("en-GB"));
161 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-US"));
162 EXPECT_EQ(ES_HYPHENATOR, lookup("es"));
163 EXPECT_EQ(ET_HYPHENATOR, lookup("et"));
164 EXPECT_EQ(EU_HYPHENATOR, lookup("eu"));
165 EXPECT_EQ(FR_HYPHENATOR, lookup("fr"));
166 EXPECT_EQ(GA_HYPHENATOR, lookup("ga"));
167 EXPECT_EQ(GU_HYPHENATOR, lookup("gu"));
168 EXPECT_EQ(HI_HYPHENATOR, lookup("hi"));
169 EXPECT_EQ(HR_HYPHENATOR, lookup("hr"));
170 EXPECT_EQ(HU_HYPHENATOR, lookup("hu"));
171 EXPECT_EQ(HY_HYPHENATOR, lookup("hy"));
172 EXPECT_EQ(KN_HYPHENATOR, lookup("kn"));
173 EXPECT_EQ(ML_HYPHENATOR, lookup("ml"));
174 EXPECT_EQ(MN_CYRL_HYPHENATOR, lookup("mn-Cyrl"));
175 EXPECT_EQ(MR_HYPHENATOR, lookup("mr"));
176 EXPECT_EQ(NB_HYPHENATOR, lookup("nb"));
177 EXPECT_EQ(NN_HYPHENATOR, lookup("nn"));
178 EXPECT_EQ(OR_HYPHENATOR, lookup("or"));
179 EXPECT_EQ(PA_HYPHENATOR, lookup("pa"));
180 EXPECT_EQ(PT_HYPHENATOR, lookup("pt"));
181 EXPECT_EQ(SL_HYPHENATOR, lookup("sl"));
182 EXPECT_EQ(TA_HYPHENATOR, lookup("ta"));
183 EXPECT_EQ(TE_HYPHENATOR, lookup("te"));
184 EXPECT_EQ(TK_HYPHENATOR, lookup("tk"));
185 EXPECT_EQ(UND_ETHI_HYPHENATOR, lookup("und-Ethi"));
189 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-AS"));
190 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-GU"));
191 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-MH"));
192 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-MP"));
193 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-PR"));
194 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-UM"));
195 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-VI"));
196 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de"));
197 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-LI-1901"));
198 EXPECT_EQ(NB_HYPHENATOR, lookup("no"));
199 EXPECT_EQ(MN_CYRL_HYPHENATOR, lookup("mn"));
200 EXPECT_EQ(UND_ETHI_HYPHENATOR, lookup("byn"));
201 EXPECT_EQ(UND_ETHI_HYPHENATOR, lookup("gez"));
202 EXPECT_EQ(UND_ETHI_HYPHENATOR, lookup("ti"));
203 EXPECT_EQ(UND_ETHI_HYPHENATOR, lookup("wal"));
209 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-Latn-US"));
210 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-Zsye-US"));
211 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-Zsym-US"));
212 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-Jpan-US"));
213 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-Hans-US"));
214 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en-Ethi-US"));
216 EXPECT_EQ(EN_GB_HYPHENATOR, lookup("en-Zsye-AU"));
217 EXPECT_EQ(EN_GB_HYPHENATOR, lookup("en-Zsye-GB"));
221 EXPECT_EQ(EN_GB_HYPHENATOR, lookup("en-AU"));
222 EXPECT_EQ(EN_GB_HYPHENATOR, lookup("en-NZ"));
226 EXPECT_EQ(EN_US_HYPHENATOR, lookup("en"));
231 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de"));
232 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-1901"));
233 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-1996"));
236 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-DE"));
238 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-DE-1901"));
239 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-Latn-DE-1901"));
240 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-Latn-DE-1901-u-em-emoji"));
242 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-DE-1996"));
243 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-DE-1996"));
244 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-DE-1996-u-em-emoji"));
247 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-AT"));
249 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-AT-1901"));
250 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-Latn-AT-1901"));
251 EXPECT_EQ(DE_1901_HYPHENATOR, lookup("de-Latn-AT-1901-u-em-emoji"));
253 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-AT-1996"));
254 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-AT-1996"));
255 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-AT-1996-u-em-emoji"));
258 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-CH"));
260 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-CH-1901"));
261 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-Latn-CH-1901"));
262 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-Latn-CH-1901-u-em-emoji"));
264 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-CH-1996"));
265 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-CH-1996"));
266 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-CH-1996-u-em-emoji"));
269 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-LI"));
271 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-LI-1901"));
272 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-Latn-LI-1901"));
273 EXPECT_EQ(DE_CH_1901_HYPHENATOR, lookup("de-Latn-LI-1901-u-em-emoji"));
275 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-LI-1996"));
276 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-LI-1996"));
277 EXPECT_EQ(DE_1996_HYPHENATOR, lookup("de-Latn-LI-1996-u-em-emoji"));
281 EXPECT_EQ(ES_HYPHENATOR, lookup("es-ES"));
282 EXPECT_EQ(ES_HYPHENATOR, lookup("es-AR"));
283 EXPECT_EQ(ES_HYPHENATOR, lookup("es-BO"));
284 EXPECT_EQ(ES_HYPHENATOR, lookup("es-CL"));
287 EXPECT_EQ(ES_HYPHENATOR, lookup("es-GB"));
291 EXPECT_EQ(UND_ETHI_HYPHENATOR, lookup("am"));
295 EXPECT_NE(nullptr, lookup("und"));
296 EXPECT_NE(nullptr, lookup("ja"));
297 EXPECT_NE(nullptr, lookup("ja-JP"));
302 EXPECT_NE(MN_CYRL_HYPHENATOR, lookup("ru-Cyrl"));
303 EXPECT_NE(MN_CYRL_HYPHENATOR, lookup("und-Cyrl"));