Searched refs:targetsize (Results 1 – 3 of 3) sorted by relevance
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 275 int32_t targetsize; in TestConvert() local 894 targetsize = ucnv_toUChars(myConverter, in TestConvert() 905 uchar2=(UChar*)malloc((targetsize+1) * sizeof(UChar)); in TestConvert() 906 targetsize = ucnv_toUChars(myConverter, in TestConvert() 908 targetsize+1, in TestConvert() 950 …targetsize = ucnv_toUChars(myConverter, uchar2, targetsize, output_cp_buffer, strlen(output_cp_buf… in TestConvert() 951 if(targetsize != 0){ in TestConvert() 955 …targetsize = ucnv_toUChars(myConverter, uchar2, -1, output_cp_buffer, strlen(output_cp_buffer), &e… in TestConvert() 956 if(targetsize != 0 || err != U_ILLEGAL_ARGUMENT_ERROR){ in TestConvert() 960 targetsize = ucnv_toUChars(myConverter, uchar2, 0, output_cp_buffer, 0, &err); in TestConvert() [all …]
|
/external/python/cpython2/Objects/ |
D | unicodeobject.c | 4234 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()
|
/external/python/cpython3/Objects/ |
D | unicodeobject.c | 2464 as_ucs4(PyObject *string, Py_UCS4 *target, Py_ssize_t targetsize, in as_ucs4() argument 2486 if (targetsize < targetlen) { in as_ucs4() 2489 if (copy_null && 0 < targetsize) in as_ucs4() 2512 PyUnicode_AsUCS4(PyObject *string, Py_UCS4 *target, Py_ssize_t targetsize, in PyUnicode_AsUCS4() argument 2515 if (target == NULL || targetsize < 0) { in PyUnicode_AsUCS4() 2519 return as_ucs4(string, target, targetsize, copy_null); in PyUnicode_AsUCS4()
|