Lines Matching refs:errorCode
94 UErrorCode &errorCode);
95 UBool ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode);
111 UErrorCode &errorCode) { in copyFrom() argument
112 if(U_SUCCESS(errorCode) && length>0) { in copyFrom()
114 errorCode=U_MEMORY_ALLOCATION_ERROR; in copyFrom()
123 …PatternList<T, stackCapacity>::ensureCapacityForOneMore(int32_t oldLength, UErrorCode &errorCode) { in ensureCapacityForOneMore() argument
124 if(U_FAILURE(errorCode)) { in ensureCapacityForOneMore()
130 errorCode=U_MEMORY_ALLOCATION_ERROR; in ensureCapacityForOneMore()
144 MessagePattern::MessagePattern(UErrorCode &errorCode) in MessagePattern() argument
149 init(errorCode); in MessagePattern()
152 MessagePattern::MessagePattern(UMessagePatternApostropheMode mode, UErrorCode &errorCode) in MessagePattern() argument
157 init(errorCode); in MessagePattern()
160 …ttern::MessagePattern(const UnicodeString &pattern, UParseError *parseError, UErrorCode &errorCode) in MessagePattern() argument
165 if(init(errorCode)) { in MessagePattern()
166 parse(pattern, parseError, errorCode); in MessagePattern()
171 MessagePattern::init(UErrorCode &errorCode) { in init() argument
172 if(U_FAILURE(errorCode)) { in init()
177 errorCode=U_MEMORY_ALLOCATION_ERROR; in init()
190 UErrorCode errorCode=U_ZERO_ERROR; in MessagePattern() local
191 if(!copyStorage(other, errorCode)) { in MessagePattern()
206 UErrorCode errorCode=U_ZERO_ERROR; in operator =() local
207 if(!copyStorage(other, errorCode)) { in operator =()
214 MessagePattern::copyStorage(const MessagePattern &other, UErrorCode &errorCode) { in copyStorage() argument
215 if(U_FAILURE(errorCode)) { in copyStorage()
225 errorCode=U_MEMORY_ALLOCATION_ERROR; in copyStorage()
231 partsList->copyFrom(*other.partsList, other.partsLength, errorCode); in copyStorage()
232 if(U_FAILURE(errorCode)) { in copyStorage()
242 errorCode=U_MEMORY_ALLOCATION_ERROR; in copyStorage()
248 *other.numericValuesList, other.numericValuesLength, errorCode); in copyStorage()
249 if(U_FAILURE(errorCode)) { in copyStorage()
266 MessagePattern::parse(const UnicodeString &pattern, UParseError *parseError, UErrorCode &errorCode)… in parse() argument
267 preParse(pattern, parseError, errorCode); in parse()
268 parseMessage(0, 0, 0, UMSGPAT_ARG_TYPE_NONE, parseError, errorCode); in parse()
275 UParseError *parseError, UErrorCode &errorCode) { in parseChoiceStyle() argument
276 preParse(pattern, parseError, errorCode); in parseChoiceStyle()
277 parseChoiceStyle(0, 0, parseError, errorCode); in parseChoiceStyle()
284 UParseError *parseError, UErrorCode &errorCode) { in parsePluralStyle() argument
285 preParse(pattern, parseError, errorCode); in parsePluralStyle()
286 parsePluralOrSelectStyle(UMSGPAT_ARG_TYPE_PLURAL, 0, 0, parseError, errorCode); in parsePluralStyle()
293 UParseError *parseError, UErrorCode &errorCode) { in parseSelectStyle() argument
294 preParse(pattern, parseError, errorCode); in parseSelectStyle()
295 parsePluralOrSelectStyle(UMSGPAT_ARG_TYPE_SELECT, 0, 0, parseError, errorCode); in parseSelectStyle()
404 …gePattern::preParse(const UnicodeString &pattern, UParseError *parseError, UErrorCode &errorCode) { in preParse() argument
405 if(U_FAILURE(errorCode)) { in preParse()
434 UParseError *parseError, UErrorCode &errorCode) { in parseMessage() argument
435 if(U_FAILURE(errorCode)) { in parseMessage()
439 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parseMessage()
443 addPart(UMSGPAT_PART_TYPE_MSG_START, index, msgStartLength, nestingLevel, errorCode); in parseMessage()
446 if(U_FAILURE(errorCode)) { in parseMessage()
458 u_apos, errorCode); // value=char to be inserted in parseMessage()
464 addPart(UMSGPAT_PART_TYPE_SKIP_SYNTAX, index++, 1, 0, errorCode); in parseMessage()
472 addPart(UMSGPAT_PART_TYPE_SKIP_SYNTAX, index-1, 1, 0, errorCode); in parseMessage()
480 addPart(UMSGPAT_PART_TYPE_SKIP_SYNTAX, ++index, 1, 0, errorCode); in parseMessage()
483 addPart(UMSGPAT_PART_TYPE_SKIP_SYNTAX, index++, 1, 0, errorCode); in parseMessage()
491 u_apos, errorCode); // value=char to be inserted in parseMessage()
500 u_apos, errorCode); // value=char to be inserted in parseMessage()
507 addPart(UMSGPAT_PART_TYPE_REPLACE_NUMBER, index-1, 1, 0, errorCode); in parseMessage()
509 index=parseArg(index-1, 1, nestingLevel, parseError, errorCode); in parseMessage()
517 nestingLevel, errorCode); in parseMessage()
529 errorCode=U_UNMATCHED_BRACES; in parseMessage()
532 addLimitPart(msgStart, UMSGPAT_PART_TYPE_MSG_LIMIT, index, 0, nestingLevel, errorCode); in parseMessage()
538 UParseError *parseError, UErrorCode &errorCode) { in parseArg() argument
541 addPart(UMSGPAT_PART_TYPE_ARG_START, index, argStartLength, argType, errorCode); in parseArg()
542 if(U_FAILURE(errorCode)) { in parseArg()
548 errorCode=U_UNMATCHED_BRACES; in parseArg()
558 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parseArg()
562 addPart(UMSGPAT_PART_TYPE_ARG_NUMBER, nameIndex, length, number, errorCode); in parseArg()
567 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parseArg()
571 addPart(UMSGPAT_PART_TYPE_ARG_NAME, nameIndex, length, 0, errorCode); in parseArg()
574 errorCode=U_PATTERN_SYNTAX_ERROR; in parseArg()
580 errorCode=U_UNMATCHED_BRACES; in parseArg()
588 errorCode=U_PATTERN_SYNTAX_ERROR; in parseArg()
600 errorCode=U_UNMATCHED_BRACES; in parseArg()
605 errorCode=U_PATTERN_SYNTAX_ERROR; in parseArg()
610 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parseArg()
631 addPart(UMSGPAT_PART_TYPE_ARG_TYPE, typeIndex, length, 0, errorCode); in parseArg()
637 errorCode=U_PATTERN_SYNTAX_ERROR; in parseArg()
643 index=parseSimpleStyle(index, parseError, errorCode); in parseArg()
645 index=parseChoiceStyle(index, nestingLevel, parseError, errorCode); in parseArg()
647 index=parsePluralOrSelectStyle(argType, index, nestingLevel, parseError, errorCode); in parseArg()
652 addLimitPart(argStart, UMSGPAT_PART_TYPE_ARG_LIMIT, index, 1, argType, errorCode); in parseArg()
657 MessagePattern::parseSimpleStyle(int32_t index, UParseError *parseError, UErrorCode &errorCode) { in parseSimpleStyle() argument
658 if(U_FAILURE(errorCode)) { in parseSimpleStyle()
672 errorCode=U_PATTERN_SYNTAX_ERROR; in parseSimpleStyle()
686 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parseSimpleStyle()
689 addPart(UMSGPAT_PART_TYPE_ARG_STYLE, start, length, 0, errorCode); in parseSimpleStyle()
695 errorCode=U_UNMATCHED_BRACES; in parseSimpleStyle()
701 UParseError *parseError, UErrorCode &errorCode) { in parseChoiceStyle() argument
702 if(U_FAILURE(errorCode)) { in parseChoiceStyle()
709 errorCode=U_PATTERN_SYNTAX_ERROR; in parseChoiceStyle()
720 errorCode=U_PATTERN_SYNTAX_ERROR; in parseChoiceStyle()
725 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parseChoiceStyle()
728 parseDouble(numberIndex, index, TRUE, parseError, errorCode); // adds ARG_INT or ARG_DOUBLE in parseChoiceStyle()
729 if(U_FAILURE(errorCode)) { in parseChoiceStyle()
736 errorCode=U_PATTERN_SYNTAX_ERROR; in parseChoiceStyle()
742 errorCode=U_PATTERN_SYNTAX_ERROR; in parseChoiceStyle()
745 addPart(UMSGPAT_PART_TYPE_ARG_SELECTOR, index, 1, 0, errorCode); in parseChoiceStyle()
747 … index=parseMessage(++index, 0, nestingLevel+1, UMSGPAT_ARG_TYPE_CHOICE, parseError, errorCode); in parseChoiceStyle()
748 if(U_FAILURE(errorCode)) { in parseChoiceStyle()
758 errorCode=U_PATTERN_SYNTAX_ERROR; in parseChoiceStyle()
770 UParseError *parseError, UErrorCode &errorCode) { in parsePluralOrSelectStyle() argument
771 if(U_FAILURE(errorCode)) { in parsePluralOrSelectStyle()
786 errorCode=U_PATTERN_SYNTAX_ERROR; in parsePluralOrSelectStyle()
791 errorCode=U_DEFAULT_KEYWORD_MISSING; in parsePluralOrSelectStyle()
803 errorCode=U_PATTERN_SYNTAX_ERROR; in parsePluralOrSelectStyle()
808 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parsePluralOrSelectStyle()
811 addPart(UMSGPAT_PART_TYPE_ARG_SELECTOR, selectorIndex, length, 0, errorCode); in parsePluralOrSelectStyle()
813 parseError, errorCode); // adds ARG_INT or ARG_DOUBLE in parsePluralOrSelectStyle()
819 errorCode=U_PATTERN_SYNTAX_ERROR; in parsePluralOrSelectStyle()
830 errorCode=U_PATTERN_SYNTAX_ERROR; in parsePluralOrSelectStyle()
838 errorCode=U_PATTERN_SYNTAX_ERROR; in parsePluralOrSelectStyle()
843 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parsePluralOrSelectStyle()
847 parseError, errorCode); // adds ARG_INT or ARG_DOUBLE in parsePluralOrSelectStyle()
848 if(U_FAILURE(errorCode)) { in parsePluralOrSelectStyle()
857 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in parsePluralOrSelectStyle()
860 addPart(UMSGPAT_PART_TYPE_ARG_SELECTOR, selectorIndex, length, 0, errorCode); in parsePluralOrSelectStyle()
866 if(U_FAILURE(errorCode)) { in parsePluralOrSelectStyle()
874 errorCode=U_PATTERN_SYNTAX_ERROR; in parsePluralOrSelectStyle()
877 index=parseMessage(index, 1, nestingLevel+1, argType, parseError, errorCode); in parsePluralOrSelectStyle()
878 if(U_FAILURE(errorCode)) { in parsePluralOrSelectStyle()
931 UParseError *parseError, UErrorCode &errorCode) { in parseDouble() argument
932 if(U_FAILURE(errorCode)) { in parseDouble()
960 start, limit-start, errorCode); in parseDouble()
974 isNegative!=0 ? -value : value, errorCode); in parseDouble()
995 addArgDoublePart(numericValue, start, length, errorCode); in parseDouble()
999 errorCode=U_PATTERN_SYNTAX_ERROR; in parseDouble()
1102 int32_t value, UErrorCode &errorCode) { in addPart() argument
1103 if(partsList->ensureCapacityForOneMore(partsLength, errorCode)) { in addPart()
1116 int32_t value, UErrorCode &errorCode) { in addLimitPart() argument
1118 addPart(type, index, length, value, errorCode); in addLimitPart()
1123 UErrorCode &errorCode) { in addArgDoublePart() argument
1124 if(U_FAILURE(errorCode)) { in addArgDoublePart()
1131 errorCode=U_MEMORY_ALLOCATION_ERROR; in addArgDoublePart()
1134 } else if(!numericValuesList->ensureCapacityForOneMore(numericValuesLength, errorCode)) { in addArgDoublePart()
1138 errorCode=U_INDEX_OUTOFBOUNDS_ERROR; in addArgDoublePart()
1143 addPart(UMSGPAT_PART_TYPE_ARG_DOUBLE, start, length, numericIndex, errorCode); in addArgDoublePart()