Home
last modified time | relevance | path

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

/external/icu4c/test/cintltst/
Dcdattst.c65 int32_t resultlength; in TestDateFormat() local
149 resultlength=0; in TestDateFormat()
150 resultlengthneeded=udat_format(def, d, NULL, resultlength, NULL, &status); in TestDateFormat()
154 resultlength=resultlengthneeded+1; in TestDateFormat()
159 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestDateFormat()
160 udat_format(def, d, result, resultlength, NULL, &status); in TestDateFormat()
257 resultlength=0; in TestDateFormat()
258 resultlengthneeded=udat_toPattern(def1, FALSE, NULL, resultlength, &status); in TestDateFormat()
262 resultlength=resultlengthneeded + 1; in TestDateFormat()
263 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestDateFormat()
[all …]
Dcmsgtst.c107 int32_t resultLengthOut,resultlength,i, patternlength; in MessageFormatTest() local
115 resultlength=1; in MessageFormatTest()
122 …resultLengthOut=u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
127 resultlength=resultLengthOut+1; in MessageFormatTest()
128 result=(UChar*)realloc(result,sizeof(UChar) * resultlength); in MessageFormatTest()
129 u_formatMessage( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
152 resultlength=0; in MessageFormatTest()
153 …gthOut=u_formatMessageWithError( "en_US",testCasePatterns[i], patternlength, result, resultlength, in MessageFormatTest()
158 resultlength=resultLengthOut+1; in MessageFormatTest()
159 result=(UChar*)malloc(sizeof(UChar) * resultlength); in MessageFormatTest()
[all …]
Dcnumtst.c99 int32_t resultlength; in TestNumberFormat() local
203 resultlength=0; in TestNumberFormat()
205 resultlengthneeded=unum_format(cur_def, l, NULL, resultlength, &pos1, &status); in TestNumberFormat()
209 resultlength=resultlengthneeded+1; in TestNumberFormat()
210 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
213 unum_format(cur_def, l, result, resultlength, &pos1, &status); in TestNumberFormat()
236 resultlength=0; in TestNumberFormat()
238 resultlengthneeded=unum_formatDouble(cur_def, d, NULL, resultlength, &pos2, &status); in TestNumberFormat()
242 resultlength=resultlengthneeded+1; in TestNumberFormat()
243 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestNumberFormat()
[all …]
Dcformtst.c56 int32_t resultlength, resultlengthneeded; in myDateFormat() local
60 resultlength=0; in myDateFormat()
61 resultlengthneeded=udat_format(dat, d1, NULL, resultlength, NULL, &status); in myDateFormat()
65 resultlength=resultlengthneeded+1; in myDateFormat()
66 result1=(UChar*)ctst_malloc(sizeof(UChar) * resultlength); in myDateFormat()
67 udat_format(dat, d1, result1, resultlength, NULL, &status); in myDateFormat()
Dcdtrgtst.c50 int32_t resultlength, resultlengthneeded; in Test4029195() local
68 resultlength=0; in Test4029195()
69 resultlengthneeded=udat_toPattern(df, TRUE, NULL, resultlength, &status); in Test4029195()
73 resultlength=resultlengthneeded + 1; in Test4029195()
74 pat=(UChar*)malloc(sizeof(UChar) * resultlength); in Test4029195()
75 udat_toPattern(df, TRUE, pat, resultlength, &status); in Test4029195()
242 int32_t resultlength, resultlengthneeded; in aux917() local
248 resultlength=0; in aux917()
249 resultlengthneeded=udat_toPattern(fmt, TRUE, NULL, resultlength, &status); in aux917()
253 resultlength=resultlengthneeded + 1; in aux917()
[all …]
Dccaltst.c67 int32_t resultlength, resultlengthneeded; in TestCalendar() local
262 resultlength=0; in TestCalendar()
263 …resultlengthneeded=ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", NULL, resultlength, &sta… in TestCalendar()
268 resultlength=resultlengthneeded+1; in TestCalendar()
269 result=(UChar*)malloc(sizeof(UChar) * resultlength); in TestCalendar()
270 ucal_getTimeZoneDisplayName(caldef, UCAL_DST, "en_US", result, resultlength, &status); in TestCalendar()
292 ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_DST, "en_US", result, resultlength, &status); in TestCalendar()
298 ucal_getTimeZoneDisplayName(caldef, UCAL_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()
304 … ucal_getTimeZoneDisplayName(caldef, UCAL_SHORT_STANDARD, "en_US", result, resultlength, &status); in TestCalendar()