Examples of tzID()


Examples of com.ibm.icu.impl.TimeZoneGenericNames.GenericMatchInfo.tzID()

      }
      GenericMatchInfo bestGeneric = getTimeZoneGenericNames().findBestMatch(text, startIdx, genericNameTypes);
      if (bestGeneric != null && (startIdx + bestGeneric.matchLength() > parsedPos)) {
        timeType.value = bestGeneric.timeType();
        pos.setIndex(startIdx + bestGeneric.matchLength());
        return TimeZone.getTimeZone(bestGeneric.tzID());
      }
      break;
    }
    case ZONE_ID: {
      tmpPos.setIndex(startIdx);
View Full Code Here

Examples of com.ibm.icu.impl.TimeZoneGenericNames.GenericMatchInfo.tzID()

      // Try generic names
      if (parsedPos < maxPos) {
        GenericMatchInfo genericMatch = getTimeZoneGenericNames().findBestMatch(text, startIdx, ALL_GENERIC_NAME_TYPES);
        if (genericMatch != null && parsedPos < startIdx + genericMatch.matchLength()) {
          parsedPos = startIdx + genericMatch.matchLength();
          parsedID = genericMatch.tzID();
          parsedTimeType = genericMatch.timeType();
          parsedOffset = UNKNOWN_OFFSET;
        }
      }
View Full Code Here

Examples of com.ibm.icu.text.TimeZoneNames.MatchInfo.tzID()

          }
        }
        if (specificMatch != null) {
          timeType.value = getTimeType(specificMatch.nameType());
          pos.setIndex(parsedPos);
          return TimeZone.getTimeZone(getTimeZoneID(specificMatch.tzID(), specificMatch.mzID()));
        }
      }
      break;
    }
    case GENERIC_LONG:
View Full Code Here

Examples of com.ibm.icu.text.TimeZoneNames.MatchInfo.tzID()

            }
          }
        }
        if (parsedPos < matchPos) {
          parsedPos = matchPos;
          parsedID = getTimeZoneID(specificMatch.tzID(), specificMatch.mzID());
          parsedTimeType = getTimeType(specificMatch.nameType());
          parsedOffset = UNKNOWN_OFFSET;
        }

      }
View Full Code Here

Examples of com.ibm.icu.text.TimeZoneNames.MatchInfo.tzID()

          exemplarMatch = match;
          parsedPos = startIdx + match.matchLength();
        }
      }
      if (exemplarMatch != null) {
        tzID = getTimeZoneID(exemplarMatch.tzID(), exemplarMatch.mzID());
        pos.setIndex(parsedPos);
      }
    }
    if (tzID == null) {
      pos.setErrorIndex(startIdx);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.