HomeSort by relevance Sort by last modified time
    Searched refs:MessagePattern (Results 1 - 25 of 27) sorted by null

1 2

  /external/icu/icu4c/source/common/
messageimpl.h 22 #include "unicode/messagepattern.h"
27 * Helper functions for use of MessagePattern.
28 * In Java, these are package-private methods in MessagePattern itself.
29 * In C++, they are declared here and implemented in messagepattern.cpp.
36 static UBool jdkAposMode(const MessagePattern &msgPattern) {
51 static UnicodeString &appendSubMessageWithoutSkipSyntax(const MessagePattern &msgPattern,
messagepattern.cpp 6 * file name: messagepattern.cpp
19 #include "unicode/messagepattern.h"
139 class MessagePatternPartsList : public MessagePatternList<MessagePattern::Part, 32> {
142 // MessagePattern constructors etc. ---------------------------------------- ***
144 MessagePattern::MessagePattern(UErrorCode &errorCode)
152 MessagePattern::MessagePattern(UMessagePatternApostropheMode mode, UErrorCode &errorCode)
160 MessagePattern::MessagePattern(const UnicodeString &pattern, UParseError *parseError, UErrorCode &errorCode
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
SelectFormat.java 161 * The MessagePattern which contains the parsed structure of the pattern string.
163 transient private MessagePattern msgPattern;
195 msgPattern = new MessagePattern();
217 * @param pattern A MessagePattern.
222 /*package*/ static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) {
227 MessagePattern.Part part=pattern.getPart(partIndex++);
228 MessagePattern.Part.Type type=part.getType();
229 if(type==MessagePattern.Part.Type.ARG_LIMIT) {
232 assert type==MessagePattern.Part.Type.ARG_SELECTOR;
274 MessagePattern.Part part = msgPattern.getPart(++i)
    [all...]
MessagePatternUtil.java 17 * Utilities for working with a MessagePattern.
38 * @throws IllegalArgumentException if the MessagePattern is empty
43 return buildMessageNode(new MessagePattern(patternString));
47 * Factory method, builds and returns a MessageNode from a MessagePattern.
50 * @throws IllegalArgumentException if the MessagePattern is empty
54 public static MessageNode buildMessageNode(MessagePattern pattern) {
57 throw new IllegalArgumentException("The MessagePattern is empty");
58 } else if (pattern.getPartType(0) != MessagePattern.Part.Type.MSG_START) {
60 "The MessagePattern does not represent a MessageFormat pattern");
67 * returned by {@link MessagePatternUtil#buildMessageNode(MessagePattern)}
    [all...]
PluralFormat.java 156 * The MessagePattern which contains the parsed structure of the pattern string.
158 transient private MessagePattern msgPattern;
161 * Obsolete with use of MessagePattern since ICU 4.8. Used to be:
418 msgPattern = new MessagePattern();
441 * @param pattern A MessagePattern.
450 MessagePattern pattern, int partIndex,
454 MessagePattern.Part part=pattern.getPart(partIndex);
485 MessagePattern.Part.Type type=part.getType();
486 if(type==MessagePattern.Part.Type.ARG_LIMIT) {
489 assert type==MessagePattern.Part.Type.ARG_SELECTOR
    [all...]
MessagePattern.java 79 public final class MessagePattern implements Cloneable, Freezable<MessagePattern> {
140 * Constructs an empty MessagePattern with default ApostropheMode.
143 public MessagePattern() {
148 * Constructs an empty MessagePattern.
152 public MessagePattern(ApostropheMode mode) {
157 * Constructs a MessagePattern with default ApostropheMode and
166 public MessagePattern(String pattern) {
181 public MessagePattern parse(String pattern) {
198 public MessagePattern parseChoiceStyle(String pattern)
    [all...]
MessageFormat.java 37 import com.ibm.icu.text.MessagePattern.ArgType;
38 import com.ibm.icu.text.MessagePattern.Part;
135 * <li>See also {@link MessagePattern.ApostropheMode}
247 * For more details see {@link MessagePattern.ApostropheMode}.
453 msgPattern = new MessagePattern(pttrn);
477 * @see MessagePattern.ApostropheMode
480 public void applyPattern(String pattern, MessagePattern.ApostropheMode aposMode) {
482 msgPattern = new MessagePattern(aposMode);
494 public MessagePattern.ApostropheMode getApostropheMode() {
496 msgPattern = new MessagePattern(); // Sets the default mode
    [all...]
  /external/messageformat/java/com/ibm/icu/text/
SelectFormat.java 161 * The MessagePattern which contains the parsed structure of the pattern string.
163 transient private MessagePattern msgPattern;
195 msgPattern = new MessagePattern();
217 * @param pattern A MessagePattern.
222 public static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) {
227 MessagePattern.Part part=pattern.getPart(partIndex++);
228 MessagePattern.Part.Type type=part.getType();
229 if(type==MessagePattern.Part.Type.ARG_LIMIT) {
232 assert type==MessagePattern.Part.Type.ARG_SELECTOR;
274 MessagePattern.Part part = msgPattern.getPart(++i)
    [all...]
MessagePattern.java 79 public final class MessagePattern implements Cloneable, Freezable<MessagePattern> {
140 * Constructs an empty MessagePattern with default ApostropheMode.
143 public MessagePattern() {
148 * Constructs an empty MessagePattern.
152 public MessagePattern(ApostropheMode mode) {
157 * Constructs a MessagePattern with default ApostropheMode and
166 public MessagePattern(String pattern) {
181 public MessagePattern parse(String pattern) {
198 public MessagePattern parseChoiceStyle(String pattern)
    [all...]
  /external/icu/icu4c/source/common/unicode/
messagepattern.h 6 * file name: messagepattern.h
20 * \brief C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns.
95 * MessagePattern::Part type constants.
273 * Return value from MessagePattern.validateArgumentName() for when
280 * Return value from MessagePattern.validateArgumentName() for when
292 * @see MessagePattern.getNumericValue()
322 * For every _START "part", MessagePattern.getLimitPartIndex() efficiently returns
358 class U_COMMON_API MessagePattern : public UObject {
361 * Constructs an empty MessagePattern with default UMessagePatternApostropheMode.
368 MessagePattern(UErrorCode &errorCode)
    [all...]
  /external/icu/icu4c/source/i18n/unicode/
choicfmt.h 37 #include "unicode/messagepattern.h"
333 * @deprecated ICU 4.8 Use the MessagePattern class to analyze a ChoiceFormat pattern.
343 * @deprecated ICU 4.8 Use the MessagePattern class to analyze a ChoiceFormat pattern.
353 * @deprecated ICU 4.8 Use the MessagePattern class to analyze a ChoiceFormat pattern.
502 * @param pattern A MessagePattern.
507 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,
527 * We need _some_ way to provide one for the MessagePattern constructor.
528 * Alternatively, the MessagePattern could be a pointer field, but that i
    [all...]
selfmt.h 19 #include "unicode/messagepattern.h"
350 * @param pattern A MessagePattern.
356 static int32_t findSubMessage(const MessagePattern& pattern, int32_t partIndex,
359 MessagePattern msgPattern;
plurfmt.h 24 #include "unicode/messagepattern.h"
570 MessagePattern msgPattern;
590 * @param pattern A MessagePattern.
600 const MessagePattern& pattern, int32_t partIndex,
msgfmt.h 31 #include "unicode/messagepattern.h"
    [all...]
  /external/messageformat/java/com/ibm/icu/simple/
PluralFormat.java 19 import com.ibm.icu.text.MessagePattern;
154 * The MessagePattern which contains the parsed structure of the pattern string.
156 transient private MessagePattern msgPattern;
159 * Obsolete with use of MessagePattern since ICU 4.8. Used to be:
255 msgPattern = new MessagePattern();
278 * @param pattern A MessagePattern.
287 MessagePattern pattern, int partIndex,
291 MessagePattern.Part part=pattern.getPart(partIndex);
322 MessagePattern.Part.Type type=part.getType();
323 if(type==MessagePattern.Part.Type.ARG_LIMIT)
    [all...]
MessageFormat.java 40 import com.ibm.icu.text.MessagePattern;
41 import com.ibm.icu.text.MessagePattern.ArgType;
42 import com.ibm.icu.text.MessagePattern.Part;
136 * <li>See also {@link MessagePattern.ApostropheMode}
248 * For more details see {@link MessagePattern.ApostropheMode}.
409 msgPattern = new MessagePattern(pttrn);
433 * @see MessagePattern.ApostropheMode
436 public void applyPattern(String pattern, MessagePattern.ApostropheMode aposMode) {
438 msgPattern = new MessagePattern(aposMode);
450 public MessagePattern.ApostropheMode getApostropheMode()
    [all...]
  /external/icu/icu4c/source/test/intltest/
tmsgfmt.h 123 UnicodeString GetPatternAndSkipSyntax(const MessagePattern& pattern);
tmsgfmt.cpp 30 #include "unicode/messagepattern.h"
307 // Note: An alternative test would be to build MessagePattern objects for
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
MessagePatternUtilTest.java 17 import com.ibm.icu.text.MessagePattern;
27 * Test MessagePatternUtil (MessagePattern-as-tree-of-nodes API)
61 return expectComplexArg(name, MessagePattern.ArgType.CHOICE);
64 return expectComplexArg(name, MessagePattern.ArgType.PLURAL);
67 return expectComplexArg(name, MessagePattern.ArgType.SELECT);
70 return expectComplexArg(name, MessagePattern.ArgType.SELECTORDINAL);
72 private ExpectComplexArgNode expectComplexArg(Object name, MessagePattern.ArgType argType) {
146 argType = MessagePattern.ArgType.NONE;
148 argType = MessagePattern.ArgType.SIMPLE;
172 if (argType == MessagePattern.ArgType.NONE || argType == MessagePattern.ArgType.SIMPLE)
    [all...]
TestMessageFormat.java 31 import com.ibm.icu.text.MessagePattern;
203 // Note: An alternative test would be to build MessagePattern objects for
    [all...]
  /external/icu/icu4c/source/i18n/
choicfmt.cpp 423 ChoiceFormat::findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number) {
439 const MessagePattern::Part &part = pattern.getPart(partIndex++);
447 U_ASSERT(MessagePattern::Part::hasNumericValue(type));
505 const MessagePattern &pattern, int32_t partIndex,
540 const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex,
546 const MessagePattern::Part &part = pattern.getPart(++partIndex);
plurfmt.cpp 12 #include "unicode/messagepattern.h"
283 const MessagePattern::Part& part = msgPattern.getPart(++partIndex);
396 int32_t PluralFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex,
404 const MessagePattern::Part* part=&pattern.getPart(partIndex);
405 if (MessagePattern::Part::hasNumericValue(part->getType())) {
442 if(MessagePattern::Part::hasNumericValue(pattern.getPartType(partIndex))) {
511 const MessagePattern::Part* partSelector = &msgPattern.getPart(partIndex++);
517 const MessagePattern::Part* partStart = &msgPattern.getPart(partIndex++);
523 const MessagePattern::Part* partLimit = &msgPattern.getPart(partIndex++);
selfmt.cpp 19 #include "unicode/messagepattern.h"
125 int32_t SelectFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex,
135 const MessagePattern::Part& part=pattern.getPart(partIndex++);
msgfmt.cpp 570 const MessagePattern::Part& part = msgPattern.getPart(partIndex);
576 // Sets a custom formatter for a MessagePattern ARG_START part index.
702 int32_t argNumber = MessagePattern::validateArgumentName(formatName);
758 int32_t argNumber = MessagePattern::validateArgumentName(formatName);
780 int32_t argNumber = MessagePattern::validateArgumentName(formatName);
840 const MessagePattern::Part& part = msgPattern.getPart(partIndex);
1012 const MessagePattern::Part* part = &msgPattern.getPart(i);
    [all...]
  /external/messageformat/
import.sh 11 cp ${TOP}/main/classes/core/src/com/ibm/icu/text/MessagePattern.java java/com/ibm/icu/text

Completed in 297 milliseconds

1 2