• Home
  • Raw
  • Download

Lines Matching full:matcher

95     LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode);  in testEmpty()  local
96 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty()
98 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty()
124 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
126 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
128 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
130 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
132 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
138 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
140 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
142 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
144 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
146 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
151 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
153 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
155 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
157 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
159 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
166 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
170 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
172 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
174 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
176 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
180 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
185 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
187 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
189 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
191 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
195 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
199 const Locale *best = matcher.getBestMatchForListString("el, fr, fr;q=0, en-GB", errorCode); in testBasics()
201 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
203 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
205 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
212 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
217 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
219 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
221 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
223 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
227 LocaleMatcher::Result result = matcher.getBestMatchResult(desired, errorCode); in testBasics()
237 result = matcher.getBestMatchResult(iter2, errorCode); in testBasics()
243 result = matcher.getBestMatchResult(desired, errorCode); in testBasics()
250 result = matcher.getBestMatchResult("ja_JP", errorCode); in testBasics()
262 LocaleMatcher matcher = LocaleMatcher::Builder(). in testSupportedDefault() local
266 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testSupportedDefault()
268 best = matcher.getBestMatch("en_US", errorCode); in testSupportedDefault()
270 best = matcher.getBestMatch("fr_FR", errorCode); in testSupportedDefault()
272 best = matcher.getBestMatch("ja_JP", errorCode); in testSupportedDefault()
274 LocaleMatcher::Result result = matcher.getBestMatchResult("ja_JP", errorCode); in testSupportedDefault()
286 LocaleMatcher matcher = LocaleMatcher::Builder(). in testUnsupportedDefault() local
290 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testUnsupportedDefault()
292 best = matcher.getBestMatch("en_US", errorCode); in testUnsupportedDefault()
294 best = matcher.getBestMatch("fr_FR", errorCode); in testUnsupportedDefault()
296 best = matcher.getBestMatch("ja_JP", errorCode); in testUnsupportedDefault()
298 LocaleMatcher::Result result = matcher.getBestMatchResult("ja_JP", errorCode); in testUnsupportedDefault()
360 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testMatch() local
364 assertEquals("exact match", 1.0, matcher.internalMatch(en_CA, en_CA, errorCode)); in testMatch()
368 double match = matcher.internalMatch(ar_MK, en_CA, errorCode); in testMatch()
375 double matchZh = matcher.internalMatch(und_TW, zh, errorCode); in testMatch()
376 double matchZhHant = matcher.internalMatch(und_TW, zh_Hant, errorCode); in testMatch()
380 double matchEnHantTw = matcher.internalMatch(en_Hant_TW, zh_Hant, errorCode); in testMatch()
389 LocaleMatcher matcher = LocaleMatcher::Builder(). in testResolvedLocale() local
393 LocaleMatcher::Result result = matcher.getBestMatchResult(desired, errorCode); in testResolvedLocale()
529 LocaleMatcher matcher = builder.build(errorCode); in dataDriven() local
538 const Locale *bestSupported = matcher.getBestMatchForListString(desiredSP, errorCode); in dataDriven()
547 bestSupported = matcher.getBestMatch(desiredLocale, errorCode); in dataDriven()
551 LocaleMatcher::Result result = matcher.getBestMatchResult(desiredLocale, errorCode); in dataDriven()
555 bestSupported = matcher.getBestMatch(desiredIter, errorCode); in dataDriven()
562 LocaleMatcher::Result result = matcher.getBestMatchResult(desiredIter, errorCode); in dataDriven()