Lines Matching defs:ArgType
65 * <li><code>ARG_START.CHOICE</code> stands for an ARG_START Part with ArgType CHOICE.
183 parseMessage(0, 0, 0, ArgType.NONE);
217 parsePluralOrSelectStyle(ArgType.PLURAL, 0, 0);
234 parsePluralOrSelectStyle(ArgType.SELECT, 0, 0);
609 * otherwise ArgType.NONE.
613 public ArgType getArgType() {
618 return ArgType.NONE;
672 * The value is the ordinal value of the ArgType. Use getArgType().
675 * followed by optional argument sub-parts (see ArgType constants)
683 * The value is the ordinal value of the ArgType. Use getArgType().
805 public enum ArgType {
840 * with the same style parts sequence and semantics as {@link ArgType#PLURAL}.
847 * for example {@link ArgType#PLURAL} and {@link ArgType#SELECTORDINAL}.
927 private int parseMessage(int index, int msgStartLength, int nestingLevel, ArgType parentType) {
950 (parentType==ArgType.CHOICE && c=='|') ||
990 } else if((nestingLevel>0 && c=='}') || (parentType==ArgType.CHOICE && c=='|')) {
994 int limitLength=(parentType==ArgType.CHOICE && c=='}') ? 0 : 1;
996 if(parentType==ArgType.CHOICE) {
1015 ArgType argType=ArgType.NONE;
1016 addPart(Part.Type.ARG_START, index, argStartLength, argType.ordinal());
1073 argType=ArgType.SIMPLE;
1077 argType=ArgType.CHOICE;
1079 argType=ArgType.PLURAL;
1081 argType=ArgType.SELECT;
1085 argType=ArgType.SELECTORDINAL;
1088 // change the ARG_START type from NONE to argType
1089 parts.get(argStart).value=(short)argType.ordinal();
1090 if(argType==ArgType.SIMPLE) {
1095 if(argType!=ArgType.SIMPLE) {
1101 if(argType==ArgType.SIMPLE) {
1103 } else if(argType==ArgType.CHOICE) {
1106 index=parsePluralOrSelectStyle(argType, index, nestingLevel);
1111 addLimitPart(argStart, Part.Type.ARG_LIMIT, index, 1, argType.ordinal());
1185 index=parseMessage(++index, 0, nestingLevel+1, ArgType.CHOICE);
1201 private int parsePluralOrSelectStyle(ArgType argType, int index, int nestingLevel) {
1215 argType.toString().toLowerCase(Locale.ENGLISH)+
1221 argType.toString().toLowerCase(Locale.ENGLISH)+
1227 if(argType.hasPluralStyle() && msg.charAt(selectorIndex)=='=') {
1234 argType.toString().toLowerCase(Locale.ENGLISH)+
1249 argType.toString().toLowerCase(Locale.ENGLISH)+
1253 if( argType.hasPluralStyle() && length==6 && index<msg.length() &&
1294 argType.toString().toLowerCase(Locale.ENGLISH)+
1297 index=parseMessage(index, 1, nestingLevel+1, argType);
1527 private boolean inTopLevelChoiceMessage(int nestingLevel, ArgType parentType) {
1530 parentType==ArgType.CHOICE &&
1612 private static final ArgType[] argTypes=ArgType.values();