Package com.ibm.icu.text

Examples of com.ibm.icu.text.DisplayContext


        DisplayContext.CAPITALIZATION_NONE);
  }

  public LocaleDisplayNamesImpl(final ULocale locale, final DisplayContext... contexts) {
    DialectHandling dialectHandling = DialectHandling.STANDARD_NAMES;
    DisplayContext capitalization = DisplayContext.CAPITALIZATION_NONE;
    for (DisplayContext contextItem : contexts) {
      switch (contextItem.type()) {
      case DIALECT_HANDLING:
        dialectHandling = (contextItem.value() == DisplayContext.STANDARD_NAMES.value()) ? DialectHandling.STANDARD_NAMES
            : DialectHandling.DIALECT_NAMES;
View Full Code Here


    return dialectHandling;
  }

  @Override
  public DisplayContext getContext(final DisplayContext.Type type) {
    DisplayContext result;
    switch (type) {
    case DIALECT_HANDLING:
      result = (dialectHandling == DialectHandling.STANDARD_NAMES) ? DisplayContext.STANDARD_NAMES : DisplayContext.DIALECT_NAMES;
      break;
    case CAPITALIZATION:
View Full Code Here

      return cache;
    }

    public LocaleDisplayNames get(final ULocale locale, final DisplayContext... contexts) {
      DialectHandling dialectHandlingIn = DialectHandling.STANDARD_NAMES;
      DisplayContext capitalizationIn = DisplayContext.CAPITALIZATION_NONE;
      for (DisplayContext contextItem : contexts) {
        switch (contextItem.type()) {
        case DIALECT_HANDLING:
          dialectHandlingIn = (contextItem.value() == DisplayContext.STANDARD_NAMES.value()) ? DialectHandling.STANDARD_NAMES
              : DialectHandling.DIALECT_NAMES;
View Full Code Here

TOP

Related Classes of com.ibm.icu.text.DisplayContext

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.