Lines Matching refs:UChar
51 static UChar* testCasePatterns[5];
53 static UChar* testResultStrings[5];
66 testCasePatterns[i]=(UChar*)malloc(sizeof(UChar) * strSize); in InitStrings()
71 testResultStrings[i] = (UChar*)malloc(sizeof(UChar) * strSize); in InitStrings()
110 UChar *str; in MessageFormatTest()
111 UChar* result; in MessageFormatTest()
118 str=(UChar*)malloc(sizeof(UChar) * 7); in MessageFormatTest()
121 result=(UChar*)malloc(sizeof(UChar) * 1); in MessageFormatTest()
133 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in MessageFormatTest()
165 result=(UChar*)malloc(sizeof(UChar) * resultlength); in MessageFormatTest()
214 result = (UChar*) malloc(U_SIZEOF_UCHAR*resultLength+2); in MessageFormatTest()
277 UChar *str; in TestSampleMessageFormat()
278 UChar *result; in TestSampleMessageFormat()
279 UChar pattern[100], expected[100]; in TestSampleMessageFormat()
286 str=(UChar*)malloc(sizeof(UChar) * 15); in TestSampleMessageFormat()
291 result=(UChar*)malloc(sizeof(UChar) * 1); in TestSampleMessageFormat()
299 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
330 result=(UChar*)realloc(result, sizeof(UChar) * (resultlength+1)); in TestSampleMessageFormat()
355 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
378 UChar *result = NULL, tzID[4], str[25]; in TestNewFormatAndParseAPI()
379 UChar pattern[100]; in TestNewFormatAndParseAPI()
380 UChar expected[100]; in TestNewFormatAndParseAPI()
387 UChar ret[30]; in TestNewFormatAndParseAPI()
418 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
425 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
479 UChar *result, *tzID, *str; in TestSampleFormatAndParseWithError()
480 UChar pattern[100]; in TestSampleFormatAndParseWithError()
482 UChar expected[100]; in TestSampleFormatAndParseWithError()
489 UChar ret[30]; in TestSampleFormatAndParseWithError()
496 str=(UChar*)malloc(sizeof(UChar) * 25); in TestSampleFormatAndParseWithError()
498 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParseWithError()
514 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
520 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
576 UChar *result, *tzID, *str; in TestSampleFormatAndParse()
577 UChar pattern[100]; in TestSampleFormatAndParse()
578 UChar expected[100]; in TestSampleFormatAndParse()
585 UChar ret[30]; in TestSampleFormatAndParse()
591 str=(UChar*)malloc(sizeof(UChar) * 25); in TestSampleFormatAndParse()
593 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParse()
610 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
616 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
670 UChar* str; in TestMsgFormatSelect()
671 UChar* str1; in TestMsgFormatSelect()
673 UChar *result; in TestMsgFormatSelect()
674 UChar pattern[100]; in TestMsgFormatSelect()
675 UChar expected[100]; in TestMsgFormatSelect()
678 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
680 str1=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
691 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
708 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
710 str1=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
721 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
741 UChar* str; in TestMsgFormatChoice()
743 UChar *result; in TestMsgFormatChoice()
744 UChar pattern[100]; in TestMsgFormatChoice()
745 UChar expected[100]; in TestMsgFormatChoice()
748 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatChoice()
766 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
788 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
811 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
834 UChar pattern[100]; in TestParseMessage()
835 UChar source[100]; in TestParseMessage()
838 UChar str[10]; in TestParseMessage()
839 UChar res[10]; in TestParseMessage()
874 static int32_t CallFormatMessage(const char* locale, UChar* testCasePattern, int32_t patternLength, in CallFormatMessage()
875 UChar* result, int32_t resultLength, UErrorCode *status, ...) in CallFormatMessage()
889 UChar *str; in TestMessageFormatWithValist()
890 UChar* result; in TestMessageFormatWithValist()
897 str=(UChar*)malloc(sizeof(UChar) * 7); in TestMessageFormatWithValist()
900 result=(UChar*)malloc(sizeof(UChar) * 1); in TestMessageFormatWithValist()
912 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in TestMessageFormatWithValist()
934 static void CallParseMessage(const char* locale, UChar* pattern, int32_t patternLength, in CallParseMessage()
935 UChar* source, int32_t sourceLength, UErrorCode *status, ...) in CallParseMessage()
946 UChar pattern[100]; in TestParseMessageWithValist()
947 UChar source[100]; in TestParseMessageWithValist()
950 UChar str[10]; in TestParseMessageWithValist()
951 UChar res[10]; in TestParseMessageWithValist()
989 UChar pattern[256]; in TestJ904()
990 UChar result[256]; in TestJ904()
991 UChar string[16]; in TestJ904()
1031 UChar pattern[256]; in OpenMessageFormatTest()
1032 UChar result[256]; in OpenMessageFormatTest()
1109 UChar pattern[sizeof(patChars)]; in MessageLength()
1110 UChar arg[] = {0x61,0x62,0x63,0}; in MessageLength()
1111 UChar result[128] = {0}; in MessageLength()
1112 UChar expected[sizeof(expectedChars)]; in MessageLength()
1129 UChar x[2] = { 0x78, 0 }; // "x" in TestMessageWithUnusedArgNumber()
1130 UChar y[2] = { 0x79, 0 }; // "y" in TestMessageWithUnusedArgNumber()
1132 UChar result[20]; in TestMessageWithUnusedArgNumber()