Home
last modified time | relevance | path

Searched refs:resultlength (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dcmsgtst.c112 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()
[all …]
Dcdattst.c80 int32_t resultlength; in TestDateFormat() local
164 resultlength=0; in TestDateFormat()
165 resultlengthneeded=udat_format(def, d, NULL, resultlength, NULL, &status); in TestDateFormat()
169 resultlength=resultlengthneeded+1; in TestDateFormat()
174 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestDateFormat()
175 udat_format(def, d, result, resultlength, NULL, &status); in TestDateFormat()
277 resultlength=0; in TestDateFormat()
278 resultlengthneeded=udat_toPattern(def1, FALSE, NULL, resultlength, &status); in TestDateFormat()
282 resultlength=resultlengthneeded + 1; in TestDateFormat()
283 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestDateFormat()
[all …]
Dcformtst.c70 int32_t resultlength, resultlengthneeded; in myDateFormat() local
74 resultlength=0; in myDateFormat()
75 resultlengthneeded=udat_format(dat, d1, NULL, resultlength, NULL, &status); in myDateFormat()
79 resultlength=resultlengthneeded+1; in myDateFormat()
80 result1=(UChar*)ctst_malloc(sizeof(UChar) * resultlength); in myDateFormat()
81 udat_format(dat, d1, result1, resultlength, NULL, &status); in myDateFormat()
Dcdtrgtst.c53 int32_t resultlength, resultlengthneeded; in Test4029195() local
71 resultlength=0; in Test4029195()
72 resultlengthneeded=udat_toPattern(df, TRUE, NULL, resultlength, &status); in Test4029195()
76 resultlength=resultlengthneeded + 1; in Test4029195()
77 pat=(UChar*)malloc(sizeof(UChar) * resultlength); in Test4029195()
78 udat_toPattern(df, TRUE, pat, resultlength, &status); in Test4029195()
243 int32_t resultlength, resultlengthneeded; in aux917() local
249 resultlength=0; in aux917()
250 resultlengthneeded=udat_toPattern(fmt, TRUE, NULL, resultlength, &status); in aux917()
254 resultlength=resultlengthneeded + 1; in aux917()
[all …]
Dcnumtst.c161 int32_t resultlength; in TestNumberFormat() local
265 resultlength=0; in TestNumberFormat()
267 resultlengthneeded=unum_format(cur_def, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
271 resultlength=resultlengthneeded+1; in TestNumberFormat()
272 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
275 unum_format(cur_def, l, result, resultlength, &pos1, &status); in TestNumberFormat()
298 resultlength=0; in TestNumberFormat()
300 resultlengthneeded=unum_formatDouble(cur_def, d, NULL, resultlength, &pos2, &status); in TestNumberFormat()
304 resultlength=resultlengthneeded+1; in TestNumberFormat()
305 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
[all …]
Dccaltst.c113 int32_t resultlength, resultlengthneeded; in TestCalendar() local
268 resultlength = ucal_getCanonicalTimeZoneID(PST, -1, in TestCalendar()
355 resultlength=0; in TestCalendar()
356 …resultlengthneeded=ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", NULL, resultlength, &sta… in TestCalendar()
361 resultlength=resultlengthneeded+1; in TestCalendar()
362 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestCalendar()
363 ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", result, resultlength, &status); in TestCalendar()
385 ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_DST, "en_US", result, resultlength, &status); in TestCalendar()
391 ucal_getTimeZoneDisplayName(caldef, UCAL_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()
397 … ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()