Package com.ibm.icu.impl.locale

Examples of com.ibm.icu.impl.locale.ParseStatus


     * @see ULocale#forLanguageTag(String)
     *
     * @stable ICU 4.2
     */
    public Builder setLanguageTag(final String languageTag) {
      ParseStatus sts = new ParseStatus();
      LanguageTag tag = LanguageTag.parse(languageTag, sts);
      if (sts.isError()) {
        throw new IllformedLocaleException(sts.getErrorMessage(), sts.getErrorIndex());
      }
      _locbld.setLanguageTag(tag);

      return this;
    }
View Full Code Here


         *
         * @draft ICU 4.2
         * @provisional This API might change or be removed in a future release.
         */
        public Builder setLanguageTag(String languageTag) {
            ParseStatus sts = new ParseStatus();
            LanguageTag tag = LanguageTag.parse(languageTag, sts);
            if (sts.isError()) {
                throw new IllformedLocaleException(sts.getErrorMessage(), sts.getErrorIndex());
            }
            _locbld.setLanguageTag(tag);

            return this;
        }
View Full Code Here

TOP

Related Classes of com.ibm.icu.impl.locale.ParseStatus

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.