Home
last modified time | relevance | path

Searched refs:MessagePattern (Results 1 – 25 of 26) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessagePatternUtil.java43 return buildMessageNode(new MessagePattern(patternString)); in buildMessageNode()
54 public static MessageNode buildMessageNode(MessagePattern pattern) { in buildMessageNode()
58 } else if (pattern.getPartType(0) != MessagePattern.Part.Type.MSG_START) { in buildMessageNode()
217 public MessagePattern.ArgType getArgType() { in getArgType()
265 if (argType != MessagePattern.ArgType.NONE) { in toString()
267 if (argType == MessagePattern.ArgType.SIMPLE) { in toString()
285 private MessagePattern.ArgType argType;
303 public MessagePattern.ArgType getArgType() { in getArgType()
379 private ComplexArgStyleNode(MessagePattern.ArgType argType) { in ComplexArgStyleNode()
391 private MessagePattern.ArgType argType;
[all …]
DSelectFormat.java163 transient private MessagePattern msgPattern;
195 msgPattern = new MessagePattern(); in applyPattern()
222 /*package*/ static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage()
227 MessagePattern.Part part=pattern.getPart(partIndex++); in findSubMessage()
228 MessagePattern.Part.Type type=part.getType(); in findSubMessage()
229 if(type==MessagePattern.Part.Type.ARG_LIMIT) { in findSubMessage()
232 assert type==MessagePattern.Part.Type.ARG_SELECTOR; in findSubMessage()
274 MessagePattern.Part part = msgPattern.getPart(++i); in format()
275 MessagePattern.Part.Type type = part.getType(); in format()
277 if (type == MessagePattern.Part.Type.MSG_LIMIT) { in format()
[all …]
DPluralFormat.java158 transient private MessagePattern msgPattern;
418 msgPattern = new MessagePattern(); in applyPattern()
450 MessagePattern pattern, int partIndex, in findSubMessage()
454 MessagePattern.Part part=pattern.getPart(partIndex); in findSubMessage()
485 MessagePattern.Part.Type type=part.getType(); in findSubMessage()
486 if(type==MessagePattern.Part.Type.ARG_LIMIT) { in findSubMessage()
489 assert type==MessagePattern.Part.Type.ARG_SELECTOR; in findSubMessage()
634 MessagePattern.Part part = msgPattern.getPart(++partIndex); in format()
635 MessagePattern.Part.Type type = part.getType(); in format()
637 if (type == MessagePattern.Part.Type.MSG_LIMIT) { in format()
[all …]
DMessageFormat.java37 import com.ibm.icu.text.MessagePattern.ArgType;
38 import com.ibm.icu.text.MessagePattern.Part;
453 msgPattern = new MessagePattern(pttrn); in applyPattern()
480 public void applyPattern(String pattern, MessagePattern.ApostropheMode aposMode) { in applyPattern()
482 msgPattern = new MessagePattern(aposMode); in applyPattern()
494 public MessagePattern.ApostropheMode getApostropheMode() { in getApostropheMode()
496 msgPattern = new MessagePattern(); // Sets the default mode. in getApostropheMode()
536 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
537 if (type == MessagePattern.Part.Type.ARG_START) { in nextTopLevelArgStart()
540 if (type == MessagePattern.Part.Type.MSG_LIMIT) { in nextTopLevelArgStart()
[all …]
DMessagePattern.java79 public final class MessagePattern implements Cloneable, Freezable<MessagePattern> { class
143 public MessagePattern() { in MessagePattern() method in MessagePattern
152 public MessagePattern(ApostropheMode mode) { in MessagePattern() method in MessagePattern
166 public MessagePattern(String pattern) { in MessagePattern() method in MessagePattern
181 public MessagePattern parse(String pattern) { in parse()
198 public MessagePattern parseChoiceStyle(String pattern) { in parseChoiceStyle()
215 public MessagePattern parsePluralStyle(String pattern) { in parsePluralStyle()
232 public MessagePattern parseSelectStyle(String pattern) { in parseSelectStyle()
283 MessagePattern o=(MessagePattern)other; in equals()
875 public MessagePattern cloneAsThawed() { in cloneAsThawed()
[all …]
/external/icu/icu4c/source/common/
Dmessagepattern.cpp139 class MessagePatternPartsList : public MessagePatternList<MessagePattern::Part, 32> {
144 MessagePattern::MessagePattern(UErrorCode &errorCode) in MessagePattern() function in MessagePattern
152 MessagePattern::MessagePattern(UMessagePatternApostropheMode mode, UErrorCode &errorCode) in MessagePattern() function in MessagePattern
160 MessagePattern::MessagePattern(const UnicodeString &pattern, UParseError *parseError, UErrorCode &e… in MessagePattern() function in MessagePattern
171 MessagePattern::init(UErrorCode &errorCode) { in init()
184 MessagePattern::MessagePattern(const MessagePattern &other) in MessagePattern() function in MessagePattern
196 MessagePattern &
197 MessagePattern::operator=(const MessagePattern &other) { in operator =()
214 MessagePattern::copyStorage(const MessagePattern &other, UErrorCode &errorCode) { in copyStorage()
258 MessagePattern::~MessagePattern() { in ~MessagePattern()
[all …]
Dmessageimpl.h36 static UBool jdkAposMode(const MessagePattern &msgPattern) { in jdkAposMode()
51 static UnicodeString &appendSubMessageWithoutSkipSyntax(const MessagePattern &msgPattern,
/external/messageformat/java/com/ibm/icu/text/
DSelectFormat.java163 transient private MessagePattern msgPattern;
195 msgPattern = new MessagePattern(); in applyPattern()
222 public static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage()
227 MessagePattern.Part part=pattern.getPart(partIndex++); in findSubMessage()
228 MessagePattern.Part.Type type=part.getType(); in findSubMessage()
229 if(type==MessagePattern.Part.Type.ARG_LIMIT) { in findSubMessage()
232 assert type==MessagePattern.Part.Type.ARG_SELECTOR; in findSubMessage()
274 MessagePattern.Part part = msgPattern.getPart(++i); in format()
275 MessagePattern.Part.Type type = part.getType(); in format()
277 if (type == MessagePattern.Part.Type.MSG_LIMIT) { in format()
[all …]
DMessagePattern.java79 public final class MessagePattern implements Cloneable, Freezable<MessagePattern> { class
143 public MessagePattern() { in MessagePattern() method in MessagePattern
152 public MessagePattern(ApostropheMode mode) { in MessagePattern() method in MessagePattern
166 public MessagePattern(String pattern) { in MessagePattern() method in MessagePattern
181 public MessagePattern parse(String pattern) { in parse()
198 public MessagePattern parseChoiceStyle(String pattern) { in parseChoiceStyle()
215 public MessagePattern parsePluralStyle(String pattern) { in parsePluralStyle()
232 public MessagePattern parseSelectStyle(String pattern) { in parseSelectStyle()
283 MessagePattern o=(MessagePattern)other; in equals()
875 public MessagePattern cloneAsThawed() { in cloneAsThawed()
[all …]
/external/icu/icu4c/source/common/unicode/
Dmessagepattern.h358 class U_COMMON_API MessagePattern : public UObject {
368 MessagePattern(UErrorCode &errorCode);
379 MessagePattern(UMessagePatternApostropheMode mode, UErrorCode &errorCode);
399 MessagePattern(const UnicodeString &pattern, UParseError *parseError, UErrorCode &errorCode);
406 MessagePattern(const MessagePattern &other);
414 MessagePattern &operator=(const MessagePattern &other);
420 virtual ~MessagePattern();
439 MessagePattern &parse(const UnicodeString &pattern,
459 MessagePattern &parseChoiceStyle(const UnicodeString &pattern,
479 MessagePattern &parsePluralStyle(const UnicodeString &pattern,
[all …]
/external/messageformat/java/com/ibm/icu/simple/
DPluralFormat.java19 import com.ibm.icu.text.MessagePattern;
156 transient private MessagePattern msgPattern;
255 msgPattern = new MessagePattern(); in applyPattern()
287 MessagePattern pattern, int partIndex, in findSubMessage()
291 MessagePattern.Part part=pattern.getPart(partIndex); in findSubMessage()
322 MessagePattern.Part.Type type=part.getType(); in findSubMessage()
323 if(type==MessagePattern.Part.Type.ARG_LIMIT) { in findSubMessage()
326 assert type==MessagePattern.Part.Type.ARG_SELECTOR; in findSubMessage()
DMessageFormat.java40 import com.ibm.icu.text.MessagePattern;
41 import com.ibm.icu.text.MessagePattern.ArgType;
42 import com.ibm.icu.text.MessagePattern.Part;
409 msgPattern = new MessagePattern(pttrn); in applyPattern()
436 public void applyPattern(String pattern, MessagePattern.ApostropheMode aposMode) { in applyPattern()
438 msgPattern = new MessagePattern(aposMode); in applyPattern()
450 public MessagePattern.ApostropheMode getApostropheMode() { in getApostropheMode()
452 msgPattern = new MessagePattern(); // Sets the default mode. in getApostropheMode()
492 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
493 if (type == MessagePattern.Part.Type.ARG_START) { in nextTopLevelArgStart()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessagePatternUtilTest.java17 import com.ibm.icu.text.MessagePattern;
61 return expectComplexArg(name, MessagePattern.ArgType.CHOICE); in expectChoiceArg()
64 return expectComplexArg(name, MessagePattern.ArgType.PLURAL); in expectPluralArg()
67 return expectComplexArg(name, MessagePattern.ArgType.SELECT); in expectSelectArg()
70 return expectComplexArg(name, MessagePattern.ArgType.SELECTORDINAL); in expectSelectOrdinalArg()
72 private ExpectComplexArgNode expectComplexArg(Object name, MessagePattern.ArgType argType) { in expectComplexArg()
146 argType = MessagePattern.ArgType.NONE; in ExpectArgNode()
148 argType = MessagePattern.ArgType.SIMPLE; in ExpectArgNode()
172 … if (argType == MessagePattern.ArgType.NONE || argType == MessagePattern.ArgType.SIMPLE) { in matches()
179 protected MessagePattern.ArgType argType;
[all …]
DTestMessageFormat.java31 import com.ibm.icu.text.MessagePattern;
1715 public String getPatternAndSkipSyntax(MessagePattern pattern) { in getPatternAndSkipSyntax()
1719 MessagePattern.Part part = pattern.getPart(--i); in getPatternAndSkipSyntax()
1720 if (part.getType() == MessagePattern.Part.Type.SKIP_SYNTAX) { in getPatternAndSkipSyntax()
1728 MessagePattern ado_mp = new MessagePattern(MessagePattern.ApostropheMode.DOUBLE_OPTIONAL); in TestApostropheMode()
1729 MessagePattern adr_mp = new MessagePattern(MessagePattern.ApostropheMode.DOUBLE_REQUIRED); in TestApostropheMode()
1731 MessagePattern.ApostropheMode.DOUBLE_OPTIONAL, in TestApostropheMode()
1734 MessagePattern.ApostropheMode.DOUBLE_REQUIRED, in TestApostropheMode()
1773 compMsg.applyPattern(pattern, MessagePattern.ApostropheMode.DOUBLE_REQUIRED); in TestCompatibleApostrophe()
1775 MessagePattern.ApostropheMode.DOUBLE_REQUIRED, in TestCompatibleApostrophe()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h507 static int32_t findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number);
510 const MessagePattern &pattern, int32_t partIndex,
522 const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex,
540 MessagePattern msgPattern;
Dselfmt.h356 static int32_t findSubMessage(const MessagePattern& pattern, int32_t partIndex,
359 MessagePattern msgPattern;
Dplurfmt.h570 MessagePattern msgPattern;
600 const MessagePattern& pattern, int32_t partIndex,
/external/icu/icu4c/source/i18n/
Dchoicfmt.cpp423 ChoiceFormat::findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number) { in findSubMessage()
439 const MessagePattern::Part &part = pattern.getPart(partIndex++); in findSubMessage()
447 U_ASSERT(MessagePattern::Part::hasNumericValue(type)); in findSubMessage()
505 const MessagePattern &pattern, int32_t partIndex, in parseArgument()
540 const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex, in matchStringUntilLimitPart()
546 const MessagePattern::Part &part = pattern.getPart(++partIndex); in matchStringUntilLimitPart()
Dplurfmt.cpp283 const MessagePattern::Part& part = msgPattern.getPart(++partIndex); in format()
396 int32_t PluralFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage()
404 const MessagePattern::Part* part=&pattern.getPart(partIndex); in findSubMessage()
405 if (MessagePattern::Part::hasNumericValue(part->getType())) { in findSubMessage()
442 if(MessagePattern::Part::hasNumericValue(pattern.getPartType(partIndex))) { in findSubMessage()
511 const MessagePattern::Part* partSelector = &msgPattern.getPart(partIndex++); in parseType()
517 const MessagePattern::Part* partStart = &msgPattern.getPart(partIndex++); in parseType()
523 const MessagePattern::Part* partLimit = &msgPattern.getPart(partIndex++); in parseType()
Dmsgfmt.cpp570 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in argNameMatches()
702 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in adoptFormat()
758 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in getFormat()
780 int32_t argNumber = MessagePattern::validateArgumentName(formatName); in setFormat()
840 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in getArgName()
1012 const MessagePattern::Part* part = &msgPattern.getPart(i); in format()
1178 const MessagePattern::Part& part = msgPattern.getPart(++i); in formatComplexSubMessage()
1223 const MessagePattern::Part& part = msgPattern.getPart(i); in getLiteralStringUntilNextArgument()
1254 const MessagePattern::Part *part = &msgPattern.getPart(partIndex); in findOtherSubMessage()
1255 if(MessagePattern::Part::hasNumericValue(part->getType())) { in findOtherSubMessage()
[all …]
Dselfmt.cpp125 int32_t SelectFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage()
135 const MessagePattern::Part& part=pattern.getPart(partIndex++); in findSubMessage()
/external/icu/icu4c/source/test/intltest/
Dtmsgfmt.h123 UnicodeString GetPatternAndSkipSyntax(const MessagePattern& pattern);
Dtmsgfmt.cpp1574 UnicodeString TestMessageFormat::GetPatternAndSkipSyntax(const MessagePattern& pattern) { in GetPatternAndSkipSyntax()
1578 const MessagePattern::Part& part = pattern.getPart(--i); in GetPatternAndSkipSyntax()
1588 MessagePattern *ado_mp = new MessagePattern(UMSGPAT_APOS_DOUBLE_OPTIONAL, status); in TestApostropheMode()
1589 MessagePattern *adr_mp = new MessagePattern(UMSGPAT_APOS_DOUBLE_REQUIRED, status); in TestApostropheMode()
/external/messageformat/
Dimport.sh11 cp ${TOP}/main/classes/core/src/com/ibm/icu/text/MessagePattern.java java/com/ibm/icu/text
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/
DICUConfig.properties20 com.ibm.icu.text.MessagePattern.ApostropheMode = DOUBLE_OPTIONAL

12