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, tzID[4], str[25]; in TestNewFormatAndParseAPI()
379 UChar pattern[100]; in TestNewFormatAndParseAPI()
380 UChar expected[100]; in TestNewFormatAndParseAPI()
387 UChar ret[30]; in TestNewFormatAndParseAPI()
419 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
426 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()
574 UChar *result, *tzID, *str; in TestSampleFormatAndParse()
575 UChar pattern[100]; in TestSampleFormatAndParse()
576 UChar expected[100]; in TestSampleFormatAndParse()
583 UChar ret[30]; in TestSampleFormatAndParse()
589 str=(UChar*)malloc(sizeof(UChar) * 25); in TestSampleFormatAndParse()
591 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestSampleFormatAndParse()
607 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
613 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
666 UChar* str; in TestMsgFormatSelect()
667 UChar* str1; in TestMsgFormatSelect()
669 UChar *result; in TestMsgFormatSelect()
670 UChar pattern[100]; in TestMsgFormatSelect()
671 UChar expected[100]; in TestMsgFormatSelect()
674 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
676 str1=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
687 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
704 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
706 str1=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatSelect()
717 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
737 UChar* str; in TestMsgFormatChoice()
739 UChar *result; in TestMsgFormatChoice()
740 UChar pattern[100]; in TestMsgFormatChoice()
741 UChar expected[100]; in TestMsgFormatChoice()
744 str=(UChar*)malloc(sizeof(UChar) * 25); in TestMsgFormatChoice()
762 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
784 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
807 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
830 UChar pattern[100]; in TestParseMessage()
831 UChar source[100]; in TestParseMessage()
834 UChar str[10]; in TestParseMessage()
835 UChar res[10]; in TestParseMessage()
870 static int32_t CallFormatMessage(const char* locale, UChar* testCasePattern, int32_t patternLength, in CallFormatMessage()
871 UChar* result, int32_t resultLength, UErrorCode *status, ...) in CallFormatMessage()
885 UChar *str; in TestMessageFormatWithValist()
886 UChar* result; in TestMessageFormatWithValist()
893 str=(UChar*)malloc(sizeof(UChar) * 7); in TestMessageFormatWithValist()
896 result=(UChar*)malloc(sizeof(UChar) * 1); in TestMessageFormatWithValist()
908 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in TestMessageFormatWithValist()
930 static void CallParseMessage(const char* locale, UChar* pattern, int32_t patternLength, in CallParseMessage()
931 UChar* source, int32_t sourceLength, UErrorCode *status, ...) in CallParseMessage()
942 UChar pattern[100]; in TestParseMessageWithValist()
943 UChar source[100]; in TestParseMessageWithValist()
946 UChar str[10]; in TestParseMessageWithValist()
947 UChar res[10]; in TestParseMessageWithValist()
985 UChar pattern[256]; in TestJ904()
986 UChar result[256]; in TestJ904()
987 UChar string[16]; in TestJ904()
1027 UChar pattern[256]; in OpenMessageFormatTest()
1028 UChar result[256]; in OpenMessageFormatTest()
1105 UChar pattern[sizeof(patChars)]; in MessageLength()
1106 UChar arg[] = {0x61,0x62,0x63,0}; in MessageLength()
1107 UChar result[128] = {0}; in MessageLength()
1108 UChar expected[sizeof(expectedChars)]; in MessageLength()
1125 UChar x[2] = { 0x78, 0 }; // "x" in TestMessageWithUnusedArgNumber()
1126 UChar y[2] = { 0x79, 0 }; // "y" in TestMessageWithUnusedArgNumber()
1128 UChar result[20]; in TestMessageWithUnusedArgNumber()