Lines Matching refs:UChar
49 static UChar* testCasePatterns[5];
51 static UChar* testResultStrings[5];
64 testCasePatterns[i]=(UChar*)malloc(sizeof(UChar) * strSize); in InitStrings()
69 testResultStrings[i] = (UChar*)malloc(sizeof(UChar) * strSize); in InitStrings()
108 UChar *str; in MessageFormatTest()
109 UChar* result; in MessageFormatTest()
116 str=(UChar*)malloc(sizeof(UChar) * 7); in MessageFormatTest()
119 result=(UChar*)malloc(sizeof(UChar) * 1); in MessageFormatTest()
131 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in MessageFormatTest()
163 result=(UChar*)malloc(sizeof(UChar) * resultlength); in MessageFormatTest()
211 result = (UChar*) malloc(U_SIZEOF_UCHAR*resultLength+2); in MessageFormatTest()
274 UChar *str; in TestSampleMessageFormat()
275 UChar *result; in TestSampleMessageFormat()
276 UChar pattern[100], expected[100]; in TestSampleMessageFormat()
283 str=(UChar*)malloc(sizeof(UChar) * 15); in TestSampleMessageFormat()
288 result=(UChar*)malloc(sizeof(UChar) * 1); in TestSampleMessageFormat()
296 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
327 result=(UChar*)realloc(result, sizeof(UChar) * (resultlength+1)); in TestSampleMessageFormat()
352 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
375 UChar *result, tzID[4], str[25]; in TestNewFormatAndParseAPI()
376 UChar pattern[100]; in TestNewFormatAndParseAPI()
377 UChar expected[100]; in TestNewFormatAndParseAPI()
384 UChar ret[30]; in TestNewFormatAndParseAPI()
416 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
423 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
476 UChar *result, *tzID, *str; in TestSampleFormatAndParseWithError()
477 UChar pattern[100]; in TestSampleFormatAndParseWithError()
479 UChar expected[100]; in TestSampleFormatAndParseWithError()
486 UChar ret[30]; in TestSampleFormatAndParseWithError()
493 str=(UChar*)malloc(sizeof(UChar) * 25); in TestSampleFormatAndParseWithError()
495 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParseWithError()
511 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
517 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
571 UChar *result, *tzID, *str; in TestSampleFormatAndParse()
572 UChar pattern[100]; in TestSampleFormatAndParse()
573 UChar expected[100]; in TestSampleFormatAndParse()
580 UChar ret[30]; in TestSampleFormatAndParse()
586 str=(UChar*)malloc(sizeof(UChar) * 25); in TestSampleFormatAndParse()
588 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParse()
604 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
610 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
663 UChar* str; in TestMsgFormatSelect()
664 UChar* str1; in TestMsgFormatSelect()
666 UChar *result; in TestMsgFormatSelect()
667 UChar pattern[100]; in TestMsgFormatSelect()
668 UChar expected[100]; in TestMsgFormatSelect()
671 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
673 str1=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
684 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
701 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
703 str1=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
714 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
734 UChar* str; in TestMsgFormatChoice()
736 UChar *result; in TestMsgFormatChoice()
737 UChar pattern[100]; in TestMsgFormatChoice()
738 UChar expected[100]; in TestMsgFormatChoice()
741 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatChoice()
759 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
781 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
804 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
827 UChar pattern[100]; in TestParseMessage()
828 UChar source[100]; in TestParseMessage()
831 UChar str[10]; in TestParseMessage()
832 UChar res[10]; in TestParseMessage()
867 static int32_t CallFormatMessage(const char* locale, UChar* testCasePattern, int32_t patternLength, in CallFormatMessage()
868 UChar* result, int32_t resultLength, UErrorCode *status, ...) in CallFormatMessage()
882 UChar *str; in TestMessageFormatWithValist()
883 UChar* result; in TestMessageFormatWithValist()
890 str=(UChar*)malloc(sizeof(UChar) * 7); in TestMessageFormatWithValist()
893 result=(UChar*)malloc(sizeof(UChar) * 1); in TestMessageFormatWithValist()
905 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in TestMessageFormatWithValist()
927 static void CallParseMessage(const char* locale, UChar* pattern, int32_t patternLength, in CallParseMessage()
928 UChar* source, int32_t sourceLength, UErrorCode *status, ...) in CallParseMessage()
939 UChar pattern[100]; in TestParseMessageWithValist()
940 UChar source[100]; in TestParseMessageWithValist()
943 UChar str[10]; in TestParseMessageWithValist()
944 UChar res[10]; in TestParseMessageWithValist()
982 UChar pattern[256]; in TestJ904()
983 UChar result[256]; in TestJ904()
984 UChar string[16]; in TestJ904()
1024 UChar pattern[256]; in OpenMessageFormatTest()
1025 UChar result[256]; in OpenMessageFormatTest()
1102 UChar pattern[sizeof(patChars)]; in MessageLength()
1103 UChar arg[] = {0x61,0x62,0x63,0}; in MessageLength()
1104 UChar result[128] = {0}; in MessageLength()
1105 UChar expected[sizeof(expectedChars)]; in MessageLength()
1122 UChar x[2] = { 0x78, 0 }; // "x" in TestMessageWithUnusedArgNumber()
1123 UChar y[2] = { 0x79, 0 }; // "y" in TestMessageWithUnusedArgNumber()
1125 UChar result[20]; in TestMessageWithUnusedArgNumber()