Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/cintltst/
Dcmsgtst.c110 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()
[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.c64 int32_t resultlength, resultlengthneeded; in myDateFormat() local
68 resultlength=0; in myDateFormat()
69 resultlengthneeded=udat_format(dat, d1, NULL, resultlength, NULL, &status); in myDateFormat()
73 resultlength=resultlengthneeded+1; in myDateFormat()
74 result1=(UChar*)ctst_malloc(sizeof(UChar) * resultlength); in myDateFormat()
75 udat_format(dat, d1, result1, resultlength, NULL, &status); in myDateFormat()
Dcnumtst.c153 int32_t resultlength; in TestNumberFormat() local
257 resultlength=0; in TestNumberFormat()
259 resultlengthneeded=unum_format(cur_def, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
263 resultlength=resultlengthneeded+1; in TestNumberFormat()
264 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
267 unum_format(cur_def, l, result, resultlength, &pos1, &status); in TestNumberFormat()
290 resultlength=0; in TestNumberFormat()
292 resultlengthneeded=unum_formatDouble(cur_def, d, NULL, resultlength, &pos2, &status); in TestNumberFormat()
296 resultlength=resultlengthneeded+1; in TestNumberFormat()
297 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
[all …]
Dcdtrgtst.c51 int32_t resultlength, resultlengthneeded; in Test4029195() local
69 resultlength=0; in Test4029195()
70 resultlengthneeded=udat_toPattern(df, TRUE, NULL, resultlength, &status); in Test4029195()
74 resultlength=resultlengthneeded + 1; in Test4029195()
75 pat=(UChar*)malloc(sizeof(UChar) * resultlength); in Test4029195()
76 udat_toPattern(df, TRUE, pat, resultlength, &status); in Test4029195()
241 int32_t resultlength, resultlengthneeded; in aux917() local
247 resultlength=0; in aux917()
248 resultlengthneeded=udat_toPattern(fmt, TRUE, NULL, resultlength, &status); in aux917()
252 resultlength=resultlengthneeded + 1; in aux917()
[all …]
Dccaltst.c105 int32_t resultlength, resultlengthneeded; in TestCalendar() local
260 resultlength = ucal_getCanonicalTimeZoneID(PST, -1, in TestCalendar()
347 resultlength=0; in TestCalendar()
348 …resultlengthneeded=ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", NULL, resultlength, &sta… in TestCalendar()
353 resultlength=resultlengthneeded+1; in TestCalendar()
354 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestCalendar()
355 ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", result, resultlength, &status); in TestCalendar()
377 ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_DST, "en_US", result, resultlength, &status); in TestCalendar()
383 ucal_getTimeZoneDisplayName(caldef, UCAL_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()
389 … ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()