Package com.ibm.icu.impl.locale

Examples of com.ibm.icu.impl.locale.BaseLocale$Key


    validateQuery(query);
    validateSplitSize(numSplits);

    List<Query> splits = new ArrayList<Query>(numSplits);
    List<Key> scatterKeys = getScatterKeys(numSplits, query, datastore);
    Key lastKey = null;
    for (Key nextKey : getSplitKey(scatterKeys, numSplits)) {
      splits.add(createSplit(lastKey, nextKey, query));
      lastKey = nextKey;
    }
    splits.add(createSplit(lastKey, null, query));
View Full Code Here


   * @see #forLanguageTag(String)
   *
   * @stable ICU 4.2
   */
  public String toLanguageTag() {
    BaseLocale base = base();
    LocaleExtensions exts = extensions();

    if (base.getVariant().equalsIgnoreCase("POSIX")) {
      // special handling for variant POSIX
      base = BaseLocale.getInstance(base.getLanguage(), base.getScript(), base.getRegion(), "");
      if (exts.getUnicodeLocaleType("va") == null) {
        // add va-posix
        InternalLocaleBuilder ilocbld = new InternalLocaleBuilder();
        try {
          ilocbld.setLocale(BaseLocale.ROOT, exts);
View Full Code Here

     *
     * @draft ICU 4.2
     * @provisional This API might change or be removed in a future release.
     */
    public String toLanguageTag() {
        BaseLocale base = base();
        LocaleExtensions exts = extensions();

        if (base.getVariant().equalsIgnoreCase("POSIX")) {
            // special handling for variant POSIX
            base = BaseLocale.getInstance(base.getLanguage(), base.getScript(), base.getRegion(), "");
            if (exts.getUnicodeLocaleType("va") == null) {
                // add va-posix
                InternalLocaleBuilder ilocbld = new InternalLocaleBuilder();
                try {
                    ilocbld.setLocale(BaseLocale.ROOT, exts);
View Full Code Here

TOP

Related Classes of com.ibm.icu.impl.locale.BaseLocale$Key

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.