Home
last modified time | relevance | path

Searched refs:targetsize (Results 1 – 2 of 2) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dccapitst.c274 int32_t targetsize; in TestConvert() local
893 targetsize = ucnv_toUChars(myConverter, in TestConvert()
904 uchar2=(UChar*)malloc((targetsize+1) * sizeof(UChar)); in TestConvert()
905 targetsize = ucnv_toUChars(myConverter, in TestConvert()
907 targetsize+1, in TestConvert()
949targetsize = ucnv_toUChars(myConverter, uchar2, targetsize, output_cp_buffer, strlen(output_cp_buf… in TestConvert()
950 if(targetsize != 0){ in TestConvert()
954targetsize = ucnv_toUChars(myConverter, uchar2, -1, output_cp_buffer, strlen(output_cp_buffer), &e… in TestConvert()
955 if(targetsize != 0 || err != U_ILLEGAL_ARGUMENT_ERROR){ in TestConvert()
959 targetsize = ucnv_toUChars(myConverter, uchar2, 0, output_cp_buffer, 0, &err); in TestConvert()
[all …]
/external/python/cpython2/Objects/
Dunicodeobject.c4234 Py_ssize_t targetsize = PyUnicode_GET_SIZE(x); in PyUnicode_DecodeCharmap() local
4236 if (targetsize == 1) { in PyUnicode_DecodeCharmap()
4243 else if (targetsize > 1) { in PyUnicode_DecodeCharmap()
4245 if (targetsize > extrachars) { in PyUnicode_DecodeCharmap()
4248 Py_ssize_t needed = (targetsize - extrachars) + \ in PyUnicode_DecodeCharmap()
4249 (targetsize << 2); in PyUnicode_DecodeCharmap()
4261 targetsize); in PyUnicode_DecodeCharmap()
4262 p += targetsize; in PyUnicode_DecodeCharmap()
4263 extrachars -= targetsize; in PyUnicode_DecodeCharmap()