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()
283 int32_t resultLengthOut, resultlength; in TestSampleMessageFormat() local
296 resultlength=1; in TestSampleMessageFormat()
297 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleMessageFormat()
301 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
302 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
303 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); in TestSampleMessageFormat()
325 resultlength, in TestSampleMessageFormat()
332 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
333 result=(UChar*)realloc(result, sizeof(UChar) * (resultlength+1)); in TestSampleMessageFormat()
334 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 23); in TestSampleMessageFormat()
352 resultlength=0; in TestSampleMessageFormat()
353 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestSampleMessageFormat()
357 resultlength=resultLengthOut+1; in TestSampleMessageFormat()
358 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleMessageFormat()
359 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, 500.00); in TestSampleMessageFormat()
384 int32_t resultLengthOut, resultlength; in TestNewFormatAndParseAPI() local
416 resultlength=1; in TestNewFormatAndParseAPI()
422 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
424 resultLengthOut=umsg_format(fmt ,result, resultlength,&status, d1, str, 7); in TestNewFormatAndParseAPI()
428 resultlength=resultLengthOut+1; in TestNewFormatAndParseAPI()
429 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestNewFormatAndParseAPI()
430 …u_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &… in TestNewFormatAndParseAPI()
487 int32_t resultLengthOut, resultlength; in TestSampleFormatAndParseWithError() local
517 resultlength=1; in TestSampleFormatAndParseWithError()
518 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
519 …_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &s… in TestSampleFormatAndParseWithError()
523 resultlength=resultLengthOut+1; in TestSampleFormatAndParseWithError()
524 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParseWithError()
525 …u_formatMessageWithError( "en_US", pattern, u_strlen(pattern), result, resultlength,&parseError, &… in TestSampleFormatAndParseWithError()
586 int32_t resultLengthOut, resultlength; in TestSampleFormatAndParse() local
616 resultlength=1; in TestSampleFormatAndParse()
617 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
618 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &statu… in TestSampleFormatAndParse()
622 resultlength=resultLengthOut+1; in TestSampleFormatAndParse()
623 result=(UChar*)realloc(result, sizeof(UChar) * resultlength); in TestSampleFormatAndParse()
624 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, d1, str, 7); in TestSampleFormatAndParse()
685 int32_t resultlength,resultLengthOut; in TestMsgFormatSelect() local
694 resultlength=0; in TestMsgFormatSelect()
695 …resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, st… in TestMsgFormatSelect()
699 resultlength=resultLengthOut+1; in TestMsgFormatSelect()
700 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
701 … u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1); in TestMsgFormatSelect()
724 resultlength=0; in TestMsgFormatSelect()
725 …resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, st… in TestMsgFormatSelect()
729 resultlength=resultLengthOut+1; in TestMsgFormatSelect()
730 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatSelect()
731 … u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1, 6); in TestMsgFormatSelect()
755 int32_t resultlength,resultLengthOut; in TestMsgFormatChoice() local
769 resultlength=0; in TestMsgFormatChoice()
770 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
774 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
775 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
776 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 100., str); in TestMsgFormatChoice()
791 resultlength=0; in TestMsgFormatChoice()
792 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
796 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
797 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
798 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 0., str); in TestMsgFormatChoice()
814 resultlength=0; in TestMsgFormatChoice()
815 …resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status,… in TestMsgFormatChoice()
819 resultlength=resultLengthOut+1; in TestMsgFormatChoice()
820 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestMsgFormatChoice()
821 … u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, 1., str); in TestMsgFormatChoice()
900 int32_t resultLengthOut,resultlength,i, patternlength; in TestMessageFormatWithValist() local
908 resultlength=1; in TestMessageFormatWithValist()
915 …sultLengthOut=CallFormatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in TestMessageFormatWithValist()
920 resultlength=resultLengthOut+1; in TestMessageFormatWithValist()
921 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in TestMessageFormatWithValist()
922 CallFormatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in TestMessageFormatWithValist()