Lines Matching refs:resultlength
112 int32_t resultLengthOut,resultlength,i, patternlength; in MessageFormatTest() local
120 resultlength=1; in MessageFormatTest()
127 …resultLengthOut=u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
132 resultlength=resultLengthOut+1; in MessageFormatTest()
133 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in MessageFormatTest()
134 u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
158 resultlength=0; in MessageFormatTest()
159 …gthOut=u_formatMessageWithError( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
164 resultlength=resultLengthOut+1; in MessageFormatTest()
165 result=(UChar*)malloc(sizeof(UChar) * resultlength); in MessageFormatTest()
166 u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
279 int32_t resultLengthOut, resultlength; in TestSampleMessageFormat() local
292 resultlength=1; in TestSampleMessageFormat()
293 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleMessageFormat()
297 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
298 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
299 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); in TestSampleMessageFormat()
321 resultlength, in TestSampleMessageFormat()
328 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
329 result=(UChar*)realloc(result, sizeof(UChar) * (resultlength+1)); in TestSampleMessageFormat()
330 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 23); in TestSampleMessageFormat()
348 resultlength=0; in TestSampleMessageFormat()
349 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestSampleMessageFormat()
353 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
354 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
355 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 500.00); in TestSampleMessageFormat()
380 int32_t resultLengthOut, resultlength; in TestNewFormatAndParseAPI() local
412 resultlength=1; in TestNewFormatAndParseAPI()
418 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
420 resultLengthOut=umsg_format(fmt ,result, resultlength,&status, d1, str, 7); in TestNewFormatAndParseAPI()
424 resultlength=resultLengthOut+1; in TestNewFormatAndParseAPI()
425 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
426 …u_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &… in TestNewFormatAndParseAPI()
482 int32_t resultLengthOut, resultlength; in TestSampleFormatAndParseWithError() local
512 resultlength=1; in TestSampleFormatAndParseWithError()
513 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
514 …_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &s… in TestSampleFormatAndParseWithError()
518 resultlength=resultLengthOut+1; in TestSampleFormatAndParseWithError()
519 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
520 …u_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &… in TestSampleFormatAndParseWithError()
576 int32_t resultLengthOut, resultlength; in TestSampleFormatAndParse() local
605 resultlength=1; in TestSampleFormatAndParse()
606 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
607 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleFormatAndParse()
611 resultlength=resultLengthOut+1; in TestSampleFormatAndParse()
612 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
613 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, d1, str, 7); in TestSampleFormatAndParse()
671 int32_t resultlength,resultLengthOut; in TestMsgFormatSelect() local
680 resultlength=0; in TestMsgFormatSelect()
681 …resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, st… in TestMsgFormatSelect()
685 resultlength=resultLengthOut+1; in TestMsgFormatSelect()
686 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
687 … u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1); in TestMsgFormatSelect()
710 resultlength=0; in TestMsgFormatSelect()
711 …resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, st… in TestMsgFormatSelect()
715 resultlength=resultLengthOut+1; in TestMsgFormatSelect()
716 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
717 … u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1); in TestMsgFormatSelect()
741 int32_t resultlength,resultLengthOut; in TestMsgFormatChoice() local
755 resultlength=0; in TestMsgFormatChoice()
756 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
760 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
761 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
762 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 100., str); in TestMsgFormatChoice()
777 resultlength=0; in TestMsgFormatChoice()
778 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
782 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
783 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
784 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 0., str); in TestMsgFormatChoice()
800 resultlength=0; in TestMsgFormatChoice()
801 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
805 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
806 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
807 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 1., str); in TestMsgFormatChoice()
886 int32_t resultLengthOut,resultlength,i, patternlength; in TestMessageFormatWithValist() local
894 resultlength=1; in TestMessageFormatWithValist()
901 …sultLengthOut=CallFormatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in TestMessageFormatWithValist()
906 resultlength=resultLengthOut+1; in TestMessageFormatWithValist()
907 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in TestMessageFormatWithValist()
908 CallFormatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in TestMessageFormatWithValist()