• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:stable

29  * @stable ICU 65
36 * @stable ICU 65
42 * @stable ICU 65
55 * @stable ICU 65
61 * @stable ICU 65
73 * <p>For example: <code>Supported={en, sv} desired=[en-GB, sv]</code>
74 * yields <code>Result(en-GB, en)</code> because
76 * the region distance between the earlier desired locale en-GB and en=en-US.
81 * the typical region difference. (Example: sr-Latn vs. sr-Cyrl)
88 * @stable ICU 65
97 * Builder option for whether to include or ignore one-way (fallback) match data.
104 * the client’s Accept-Language header data.
111 * @stable ICU 67
115 * Locale matching includes one-way matches such as Breton→French. (default)
117 * @stable ICU 67
121 * Locale matching limited to two-way matches including e.g. Danish↔Norwegian
122 * but ignoring one-way matches.
124 * @stable ICU 67
151 …* LocaleMatcher matcher = LocaleMatcher::Builder().setSupportedLocales("fr, en-GB, en").build(erro…
157 * and when regional variants are close, like en-GB and en-AU as opposed to en-US.
165 * de, de-DE, de-Latn, de-1901, de-u-co-phonebk.
170 * <p>Otherwise, the order of supported locales may have no effect on the best-match results.
174 * 2. CLDR "paradigm locales" like en-GB and es-419;
184 * @stable ICU 65
189 * Data for the best-matching pair of a desired and a supported locale.
192 * @stable ICU 65
201 * @stable ICU 65
208 * @stable ICU 65
217 * @stable ICU 65
222 * Returns the best-matching desired locale.
225 * @return the best-matching desired locale, or nullptr.
226 * @stable ICU 65
231 * Returns the best-matching supported locale.
236 * @return the best-matching supported locale, or nullptr.
237 * @stable ICU 65
242 * Returns the index of the best-matching desired locale in the input Iterable order.
243 * -1 if the list of desired locales is empty or if none matched well enough.
245 * @return the index of the best-matching desired locale, or -1.
246 * @stable ICU 65
251 * Returns the index of the best-matching supported locale in the
255 * -1 if the list of supported locales is empty or if none matched well enough.
257 * @return the index of the best-matching supported locale, or -1.
258 * @stable ICU 65
263 * Takes the best-matching supported locale and adds relevant fields of the
264 * best-matching desired locale, such as the -t- and -u- extensions.
269 * <p>Example: desired=ar-SA-u-nu-latn, supported=ar-EG, resolved locale=ar-SA-u-nu-latn
271 * @return a locale combining the best-matching desired and supported locales.
272 * @stable ICU 65
299 * @stable ICU 65
307 * @stable ICU 65
316 * @stable ICU 65
323 * @stable ICU 65
332 * @stable ICU 65
337 * Parses an Accept-Language string
338 * (<a href="https://tools.ietf.org/html/rfc2616#section-14.4">RFC 2616 Section 14.4</a>),
343 * @param locales the Accept-Language string of locales to set
345 * @stable ICU 65
356 * @stable ICU 65
371 * @stable ICU 65
396 * @stable ICU 65
414 * @stable ICU 65
424 * @stable ICU 68
436 * @stable ICU 65
448 * @stable ICU 65
458 * @stable ICU 65
463 * Option for whether to include or ignore one-way (fallback) match data.
468 * @stable ICU 67
482 * For example, setMaxDistance(en-US, en-GB) limits matches to ones where the
496 * @stable ICU 68
508 * @stable ICU 65
516 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
520 * @stable ICU 65
535 int32_t thresholdDistance_ = -1;
551 * @stable ICU 65
557 * @stable ICU 65
567 * @stable ICU 65
575 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
578 * @return the best-matching supported locale.
579 * @stable ICU 65
587 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
590 * @return the best-matching supported locale.
591 * @stable ICU 65
596 * Parses an Accept-Language string
597 * (<a href="https://tools.ietf.org/html/rfc2616#section-14.4">RFC 2616 Section 14.4</a>),
602 * @param desiredLocaleList Typically a user's languages, as an Accept-Language string.
603 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
606 * @return the best-matching supported locale.
607 * @stable ICU 65
617 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
620 * @return the best-matching pair of the desired and a supported locale.
621 * @stable ICU 65
628 * the best-matching desired locale. The Result object owns the clone.
631 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
634 * @return the best-matching pair of a desired and a supported locale.
635 * @stable ICU 65
646 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
650 * @stable ICU 68
667 * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,