Home | History | Annotate | Download | only in common

Lines Matching refs:errorCode

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