Lines Matching refs:resultlength
110 int32_t resultLengthOut,resultlength,i, patternlength; in MessageFormatTest() local
118 resultlength=1; in MessageFormatTest()
125 …resultLengthOut=u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
130 resultlength=resultLengthOut+1; in MessageFormatTest()
131 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in MessageFormatTest()
132 u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
156 resultlength=0; in MessageFormatTest()
157 …gthOut=u_formatMessageWithError( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
162 resultlength=resultLengthOut+1; in MessageFormatTest()
163 result=(UChar*)malloc(sizeof(UChar) * resultlength); in MessageFormatTest()
164 u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
277 int32_t resultLengthOut, resultlength; in TestSampleMessageFormat() local
290 resultlength=1; in TestSampleMessageFormat()
291 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleMessageFormat()
295 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
296 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
297 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); in TestSampleMessageFormat()
319 resultlength, in TestSampleMessageFormat()
326 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
327 result=(UChar*)realloc(result, sizeof(UChar) * (resultlength+1)); in TestSampleMessageFormat()
328 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 23); in TestSampleMessageFormat()
346 resultlength=0; in TestSampleMessageFormat()
347 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestSampleMessageFormat()
351 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
352 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
353 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 500.00); in TestSampleMessageFormat()
378 int32_t resultLengthOut, resultlength; in TestNewFormatAndParseAPI() local
410 resultlength=1; in TestNewFormatAndParseAPI()
416 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
418 resultLengthOut=umsg_format(fmt ,result, resultlength,&status, d1, str, 7); in TestNewFormatAndParseAPI()
422 resultlength=resultLengthOut+1; in TestNewFormatAndParseAPI()
423 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
424 …u_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &… in TestNewFormatAndParseAPI()
480 int32_t resultLengthOut, resultlength; in TestSampleFormatAndParseWithError() local
510 resultlength=1; in TestSampleFormatAndParseWithError()
511 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
512 …_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &s… in TestSampleFormatAndParseWithError()
516 resultlength=resultLengthOut+1; in TestSampleFormatAndParseWithError()
517 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
518 …u_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &… in TestSampleFormatAndParseWithError()
574 int32_t resultLengthOut, resultlength; in TestSampleFormatAndParse() local
603 resultlength=1; in TestSampleFormatAndParse()
604 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
605 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleFormatAndParse()
609 resultlength=resultLengthOut+1; in TestSampleFormatAndParse()
610 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
611 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, d1, str, 7); in TestSampleFormatAndParse()
669 int32_t resultlength,resultLengthOut; in TestMsgFormatSelect() local
678 resultlength=0; in TestMsgFormatSelect()
679 …resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, st… in TestMsgFormatSelect()
683 resultlength=resultLengthOut+1; in TestMsgFormatSelect()
684 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
685 … u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1); in TestMsgFormatSelect()
708 resultlength=0; in TestMsgFormatSelect()
709 …resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, st… in TestMsgFormatSelect()
713 resultlength=resultLengthOut+1; in TestMsgFormatSelect()
714 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
715 … u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1); in TestMsgFormatSelect()
739 int32_t resultlength,resultLengthOut; in TestMsgFormatChoice() local
753 resultlength=0; in TestMsgFormatChoice()
754 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
758 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
759 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
760 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 100., str); in TestMsgFormatChoice()
775 resultlength=0; in TestMsgFormatChoice()
776 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
780 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
781 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
782 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 0., str); in TestMsgFormatChoice()
798 resultlength=0; in TestMsgFormatChoice()
799 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
803 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
804 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
805 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 1., str); in TestMsgFormatChoice()
884 int32_t resultLengthOut,resultlength,i, patternlength; in TestMessageFormatWithValist() local
892 resultlength=1; in TestMessageFormatWithValist()
899 …sultLengthOut=CallFormatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in TestMessageFormatWithValist()
904 resultlength=resultLengthOut+1; in TestMessageFormatWithValist()
905 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in TestMessageFormatWithValist()
906 CallFormatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in TestMessageFormatWithValist()