Home
last modified time | relevance | path

Searched refs:selectorIndex (Results 1 – 6 of 6) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessagePattern.java1161 int selectorIndex=index; in parsePluralOrSelectStyle() local
1162 if(argType.hasPluralStyle() && msg.charAt(selectorIndex)=='=') { in parsePluralOrSelectStyle()
1165 int length=index-selectorIndex; in parsePluralOrSelectStyle()
1174 "Argument selector too long: "+prefix(selectorIndex)); in parsePluralOrSelectStyle()
1176 addPart(Part.Type.ARG_SELECTOR, selectorIndex, length, 0); in parsePluralOrSelectStyle()
1177 parseDouble(selectorIndex+1, index, false); // adds ARG_INT or ARG_DOUBLE in parsePluralOrSelectStyle()
1180 int length=index-selectorIndex; in parsePluralOrSelectStyle()
1189 msg.regionMatches(selectorIndex, "offset:", 0, 7) in parsePluralOrSelectStyle()
1215 "Argument selector too long: "+prefix(selectorIndex)); in parsePluralOrSelectStyle()
1217 addPart(Part.Type.ARG_SELECTOR, selectorIndex, length, 0); in parsePluralOrSelectStyle()
[all …]
DMessageFormat.java1856 int selectorIndex=pattern.getPatternIndex(partIndex++); in findChoiceSubMessage() local
1857 char boundaryChar=pattern.getPatternString().charAt(selectorIndex); in findChoiceSubMessage()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessagePattern.java1232 int selectorIndex=index; in parsePluralOrSelectStyle() local
1233 if(argType.hasPluralStyle() && msg.charAt(selectorIndex)=='=') { in parsePluralOrSelectStyle()
1236 int length=index-selectorIndex; in parsePluralOrSelectStyle()
1245 "Argument selector too long: "+prefix(selectorIndex)); in parsePluralOrSelectStyle()
1247 addPart(Part.Type.ARG_SELECTOR, selectorIndex, length, 0); in parsePluralOrSelectStyle()
1248 parseDouble(selectorIndex+1, index, false); // adds ARG_INT or ARG_DOUBLE in parsePluralOrSelectStyle()
1251 int length=index-selectorIndex; in parsePluralOrSelectStyle()
1260 msg.regionMatches(selectorIndex, "offset:", 0, 7) in parsePluralOrSelectStyle()
1286 "Argument selector too long: "+prefix(selectorIndex)); in parsePluralOrSelectStyle()
1288 addPart(Part.Type.ARG_SELECTOR, selectorIndex, length, 0); in parsePluralOrSelectStyle()
[all …]
DMessageFormat.java1928 int selectorIndex=pattern.getPatternIndex(partIndex++); in findChoiceSubMessage() local
1929 char boundaryChar=pattern.getPatternString().charAt(selectorIndex); in findChoiceSubMessage()
/external/icu/icu4c/source/common/
Dmessagepattern.cpp798 int32_t selectorIndex=index; in parsePluralOrSelectStyle() local
799 if(UMSGPAT_ARG_TYPE_HAS_PLURAL_STYLE(argType) && msg.charAt(selectorIndex)==u_equal) { in parsePluralOrSelectStyle()
802 int32_t length=index-selectorIndex; in parsePluralOrSelectStyle()
809 setParseError(parseError, selectorIndex); // Argument selector too long. in parsePluralOrSelectStyle()
813 addPart(UMSGPAT_PART_TYPE_ARG_SELECTOR, selectorIndex, length, 0, errorCode); in parsePluralOrSelectStyle()
814 parseDouble(selectorIndex+1, index, FALSE, in parsePluralOrSelectStyle()
818 int32_t length=index-selectorIndex; in parsePluralOrSelectStyle()
826 0==msg.compare(selectorIndex, 7, kOffsetColon, 0, 7) in parsePluralOrSelectStyle()
858 setParseError(parseError, selectorIndex); // Argument selector too long. in parsePluralOrSelectStyle()
862 addPart(UMSGPAT_PART_TYPE_ARG_SELECTOR, selectorIndex, length, 0, errorCode); in parsePluralOrSelectStyle()
[all …]
/external/icu/icu4c/source/i18n/
Dchoicfmt.cpp452 int32_t selectorIndex = pattern.getPatternIndex(partIndex++); in findSubMessage() local
453 UChar boundaryChar = pattern.getPatternString().charAt(selectorIndex); in findSubMessage()