]> granicus.if.org Git - icu/commitdiff
ICU-10174 Fixed a bad code snippet in the LocaleMatcher's API class doc.
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 4 Jun 2013 16:15:58 +0000 (16:15 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 4 Jun 2013 16:15:58 +0000 (16:15 +0000)
X-SVN-Rev: 33801

icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java

index 427025448c51ef3e997f57cdc0aa67e8291aaccd..26135ea212f33970aa5b39c0711c9ff0b6f998e0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  ****************************************************************************************
- * Copyright (C) 2009-2010, Google, Inc.; International Business Machines Corporation   *
+ * Copyright (C) 2009-2013, Google, Inc.; International Business Machines Corporation   *
  * and others. All Rights Reserved.                                                     *
  ****************************************************************************************
  */
@@ -24,10 +24,10 @@ import com.ibm.icu.impl.Row.R3;
  * example:
  * 
  * <pre>
- * LanguageMatcher matcher = new StandardLanguageMatcher(&quot;fr, en-GB, en&quot;);
+ * LocaleMatcher matcher = new LocaleMatcher("fr, en-GB, en");
  * 
  * // afterwards:
- * matcher.getBestMatch(LanguageCode.US).first == LanguageCode.ENGLISH
+ * matcher.getBestMatch("en-US").toLanguageTag() => "en"
  * </pre>
  * 
  * It takes into account when languages are close to one another, such as fil