Home
last modified time | relevance | path

Searched refs:msgPattern (Results 1 – 16 of 16) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DSelectFormat.java163 transient private MessagePattern msgPattern; field in SelectFormat
178 if(msgPattern != null) { in reset()
179 msgPattern.clear(); in reset()
192 if (msgPattern == null) { in applyPattern()
193 msgPattern = new MessagePattern(); in applyPattern()
196 msgPattern.parseSelectStyle(pattern); in applyPattern()
255 if (msgPattern == null || msgPattern.countParts() == 0) { in format()
260 int msgStart = findSubMessage(msgPattern, 0, keyword); in format()
261 if (!msgPattern.jdkAposMode()) { in format()
262 int msgLimit = msgPattern.getLimitPartIndex(msgStart); in format()
[all …]
DMessageFormat.java446 if (msgPattern == null) { in applyPattern()
447 msgPattern = new MessagePattern(pttrn); in applyPattern()
449 msgPattern.parse(pttrn); in applyPattern()
474 if (msgPattern == null) { in applyPattern()
475 msgPattern = new MessagePattern(aposMode); in applyPattern()
476 } else if (aposMode != msgPattern.getApostropheMode()) { in applyPattern()
477 msgPattern.clearPatternAndSetApostropheMode(aposMode); in applyPattern()
487 if (msgPattern == null) { in getApostropheMode()
488 msgPattern = new MessagePattern(); // Sets the default mode. in getApostropheMode()
490 return msgPattern.getApostropheMode(); in getApostropheMode()
[all …]
DPluralFormat.java160 transient private MessagePattern msgPattern; field in PluralFormat
386 if(msgPattern != null) { in resetPattern()
387 msgPattern.clear(); in resetPattern()
403 if (msgPattern == null) { in applyPattern()
404 msgPattern = new MessagePattern(); in applyPattern()
407 msgPattern.parsePluralStyle(pattern); in applyPattern()
408 offset = msgPattern.getPluralOffset(0); in applyPattern()
593 if (msgPattern == null || msgPattern.countParts() == 0) { in format()
623 int partIndex = findSubMessage(msgPattern, 0, pluralRulesWrapper, dec, number); in format()
627 int prevIndex = msgPattern.getPart(partIndex).getLimit(); in format()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSelectFormat.java164 transient private MessagePattern msgPattern; field in SelectFormat
180 if(msgPattern != null) { in reset()
181 msgPattern.clear(); in reset()
195 if (msgPattern == null) { in applyPattern()
196 msgPattern = new MessagePattern(); in applyPattern()
199 msgPattern.parseSelectStyle(pattern); in applyPattern()
260 if (msgPattern == null || msgPattern.countParts() == 0) { in format()
265 int msgStart = findSubMessage(msgPattern, 0, keyword); in format()
266 if (!msgPattern.jdkAposMode()) { in format()
267 int msgLimit = msgPattern.getLimitPartIndex(msgStart); in format()
[all …]
DMessageFormat.java482 if (msgPattern == null) { in applyPattern()
483 msgPattern = new MessagePattern(pttrn); in applyPattern()
485 msgPattern.parse(pttrn); in applyPattern()
511 if (msgPattern == null) { in applyPattern()
512 msgPattern = new MessagePattern(aposMode); in applyPattern()
513 } else if (aposMode != msgPattern.getApostropheMode()) { in applyPattern()
514 msgPattern.clearPatternAndSetApostropheMode(aposMode); in applyPattern()
525 if (msgPattern == null) { in getApostropheMode()
526 msgPattern = new MessagePattern(); // Sets the default mode. in getApostropheMode()
528 return msgPattern.getApostropheMode(); in getApostropheMode()
[all …]
DPluralFormat.java160 transient private MessagePattern msgPattern; field in PluralFormat
399 if(msgPattern != null) { in resetPattern()
400 msgPattern.clear(); in resetPattern()
417 if (msgPattern == null) { in applyPattern()
418 msgPattern = new MessagePattern(); in applyPattern()
421 msgPattern.parsePluralStyle(pattern); in applyPattern()
422 offset = msgPattern.getPluralOffset(0); in applyPattern()
610 if (msgPattern == null || msgPattern.countParts() == 0) { in format()
640 int partIndex = findSubMessage(msgPattern, 0, pluralRulesWrapper, dec, number); in format()
644 int prevIndex = msgPattern.getPart(partIndex).getLimit(); in format()
[all …]
/external/icu/icu4c/source/i18n/
Dselfmt.cpp47 UErrorCode& status) : msgPattern(status) { in SelectFormat()
52 msgPattern(other.msgPattern) { in SelectFormat()
64 msgPattern.parseSelectStyle(newPattern, NULL, status); in applyPattern()
66 msgPattern.clear(); in applyPattern()
99 if (msgPattern.countParts() == 0) { in format()
103 int32_t msgStart = findSubMessage(msgPattern, 0, keyword, status); in format()
104 if (!MessageImpl::jdkAposMode(msgPattern)) { in format()
105 int32_t patternStart = msgPattern.getPart(msgStart).getLimit(); in format()
106 int32_t msgLimit = msgPattern.getLimitPartIndex(msgStart); in format()
107 appendTo.append(msgPattern.getPatternString(), in format()
[all …]
Dplurfmt.cpp42 msgPattern(status), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
50 msgPattern(status), in PluralFormat()
58 msgPattern(status), in PluralFormat()
68 msgPattern(status), in PluralFormat()
78 msgPattern(status), in PluralFormat()
87 msgPattern(status), in PluralFormat()
98 msgPattern(status), in PluralFormat()
109 msgPattern(status), in PluralFormat()
121 msgPattern(status), in PluralFormat()
133 msgPattern(status), in PluralFormat()
[all …]
Dchoicfmt.cpp80 msgPattern(status) in ChoiceFormat()
93 msgPattern(constructorErrorCode) in ChoiceFormat()
105 msgPattern(constructorErrorCode) in ChoiceFormat()
116 msgPattern(that.msgPattern) in ChoiceFormat()
129 msgPattern(status) in ChoiceFormat()
141 return msgPattern == thatAlias.msgPattern; in operator ==()
153 msgPattern = that.msgPattern; in operator =()
228 msgPattern.parseChoiceStyle(pattern, NULL, status); in applyPattern()
240 msgPattern.parseChoiceStyle(pattern, &parseError, status); in applyPattern()
249 return result = msgPattern.getPatternString(); in toPattern()
[all …]
Dmsgfmt.cpp236 msgPattern(success), in MessageFormat()
258 msgPattern(success), in MessageFormat()
281 msgPattern(success), in MessageFormat()
303 msgPattern(that.msgPattern), in MessageFormat()
380 msgPattern = that.msgPattern; in operator =()
401 msgPattern != that.msgPattern || in operator ==()
492 msgPattern.parse(pattern, &parseError, ec); in applyPattern()
501 msgPattern.clear(); in resetPattern()
515 if (aposMode != msgPattern.getApostropheMode()) { in applyPattern()
516 msgPattern.clearPatternAndSetApostropheMode(aposMode); in applyPattern()
[all …]
/external/icu/icu4c/source/common/
Dmessageimpl.h38 static UBool jdkAposMode(const MessagePattern &msgPattern) { in jdkAposMode() argument
39 return msgPattern.getApostropheMode()==UMSGPAT_APOS_DOUBLE_REQUIRED; in jdkAposMode()
53 static UnicodeString &appendSubMessageWithoutSkipSyntax(const MessagePattern &msgPattern,
Dmessagepattern.cpp1206 MessageImpl::appendSubMessageWithoutSkipSyntax(const MessagePattern &msgPattern, in appendSubMessageWithoutSkipSyntax() argument
1209 const UnicodeString &msgString=msgPattern.getPatternString(); in appendSubMessageWithoutSkipSyntax()
1210 int32_t prevIndex=msgPattern.getPart(msgStart).getLimit(); in appendSubMessageWithoutSkipSyntax()
1212 const MessagePattern::Part &part=msgPattern.getPart(++i); in appendSubMessageWithoutSkipSyntax()
1223 i=msgPattern.getLimitPartIndex(i); in appendSubMessageWithoutSkipSyntax()
1224 index=msgPattern.getPart(i).getLimit(); in appendSubMessageWithoutSkipSyntax()
/external/icu/icu4c/source/i18n/unicode/
Dselfmt.h364 MessagePattern msgPattern; variable
Dmsgfmt.h501 return msgPattern.getApostropheMode(); in getApostropheMode()
885 MessagePattern msgPattern; variable
Dchoicfmt.h545 MessagePattern msgPattern; variable
Dplurfmt.h559 MessagePattern msgPattern; variable