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.c84 int32_t resultlength; in TestDateFormat() local
168 resultlength=0; in TestDateFormat()
169 resultlengthneeded=udat_format(def, d, NULL, resultlength, NULL, &status); in TestDateFormat()
173 resultlength=resultlengthneeded+1; in TestDateFormat()
178 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestDateFormat()
179 udat_format(def, d, result, resultlength, NULL, &status); in TestDateFormat()
286 resultlength=0; in TestDateFormat()
287 resultlengthneeded=udat_toPattern(def1, FALSE, NULL, resultlength, &status); in TestDateFormat()
291 resultlength=resultlengthneeded + 1; in TestDateFormat()
292 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestDateFormat()
[all …]
Dcformtst.c76 int32_t resultlength, resultlengthneeded; in myDateFormat() local
80 resultlength=0; in myDateFormat()
81 resultlengthneeded=udat_format(dat, d1, NULL, resultlength, NULL, &status); in myDateFormat()
85 resultlength=resultlengthneeded+1; in myDateFormat()
86 result1=(UChar*)ctst_malloc(sizeof(UChar) * resultlength); in myDateFormat()
87 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()
244 int32_t resultlength, resultlengthneeded; in aux917() local
250 resultlength=0; in aux917()
251 resultlengthneeded=udat_toPattern(fmt, TRUE, NULL, resultlength, &status); in aux917()
255 resultlength=resultlengthneeded + 1; in aux917()
[all …]
Dcnumtst.c178 int32_t resultlength; in TestNumberFormat() local
282 resultlength=0; in TestNumberFormat()
284 resultlengthneeded=unum_format(cur_def, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
288 resultlength=resultlengthneeded+1; in TestNumberFormat()
289 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
292 unum_format(cur_def, l, result, resultlength, &pos1, &status); in TestNumberFormat()
315 resultlength=0; in TestNumberFormat()
317 resultlengthneeded=unum_formatDouble(cur_def, d, NULL, resultlength, &pos2, &status); in TestNumberFormat()
321 resultlength=resultlengthneeded+1; in TestNumberFormat()
322 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
[all …]
Dccaltst.c116 int32_t resultlength, resultlengthneeded; in TestCalendar() local
283 resultlength = ucal_getCanonicalTimeZoneID(PST, -1, in TestCalendar()
375 resultlength=0; in TestCalendar()
376 …resultlengthneeded=ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", NULL, resultlength, &sta… in TestCalendar()
381 resultlength=resultlengthneeded+1; in TestCalendar()
382 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestCalendar()
383 ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", result, resultlength, &status); in TestCalendar()
405 ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_DST, "en_US", result, resultlength, &status); in TestCalendar()
411 ucal_getTimeZoneDisplayName(caldef, UCAL_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()
417 … ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()