• Home
  • Raw
  • Download

Lines Matching refs:matcher

92     LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode);  in testEmpty()  local
93 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty()
95 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty()
121 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
123 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
125 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
127 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
129 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
135 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
137 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
139 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
141 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
143 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
148 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
150 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
152 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
154 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
156 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
163 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
167 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
169 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
171 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
173 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
177 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
182 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
184 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
186 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
188 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
192 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
196 const Locale *best = matcher.getBestMatchForListString("el, fr, fr;q=0, en-GB", errorCode); in testBasics()
198 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
200 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
202 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
209 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local
214 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
216 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
218 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
220 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
224 LocaleMatcher::Result result = matcher.getBestMatchResult(desired, errorCode); in testBasics()
234 result = matcher.getBestMatchResult(iter2, errorCode); in testBasics()
240 result = matcher.getBestMatchResult(desired, errorCode); in testBasics()
247 result = matcher.getBestMatchResult("ja_JP", errorCode); in testBasics()
259 LocaleMatcher matcher = LocaleMatcher::Builder(). in testSupportedDefault() local
263 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testSupportedDefault()
265 best = matcher.getBestMatch("en_US", errorCode); in testSupportedDefault()
267 best = matcher.getBestMatch("fr_FR", errorCode); in testSupportedDefault()
269 best = matcher.getBestMatch("ja_JP", errorCode); in testSupportedDefault()
271 LocaleMatcher::Result result = matcher.getBestMatchResult("ja_JP", errorCode); in testSupportedDefault()
283 LocaleMatcher matcher = LocaleMatcher::Builder(). in testUnsupportedDefault() local
287 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testUnsupportedDefault()
289 best = matcher.getBestMatch("en_US", errorCode); in testUnsupportedDefault()
291 best = matcher.getBestMatch("fr_FR", errorCode); in testUnsupportedDefault()
293 best = matcher.getBestMatch("ja_JP", errorCode); in testUnsupportedDefault()
295 LocaleMatcher::Result result = matcher.getBestMatchResult("ja_JP", errorCode); in testUnsupportedDefault()
327 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testMatch() local
331 assertEquals("exact match", 1.0, matcher.internalMatch(en_CA, en_CA, errorCode)); in testMatch()
335 double match = matcher.internalMatch(ar_MK, en_CA, errorCode); in testMatch()
342 double matchZh = matcher.internalMatch(und_TW, zh, errorCode); in testMatch()
343 double matchZhHant = matcher.internalMatch(und_TW, zh_Hant, errorCode); in testMatch()
347 double matchEnHantTw = matcher.internalMatch(en_Hant_TW, zh_Hant, errorCode); in testMatch()
356 LocaleMatcher matcher = LocaleMatcher::Builder(). in testResolvedLocale() local
360 LocaleMatcher::Result result = matcher.getBestMatchResult(desired, errorCode); in testResolvedLocale()
496 LocaleMatcher matcher = builder.build(errorCode); in dataDriven() local
505 const Locale *bestSupported = matcher.getBestMatchForListString(desiredSP, errorCode); in dataDriven()
514 bestSupported = matcher.getBestMatch(desiredLocale, errorCode); in dataDriven()
518 LocaleMatcher::Result result = matcher.getBestMatchResult(desiredLocale, errorCode); in dataDriven()
522 bestSupported = matcher.getBestMatch(desiredIter, errorCode); in dataDriven()
529 LocaleMatcher::Result result = matcher.getBestMatchResult(desiredIter, errorCode); in dataDriven()