Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/cintltst/
Dcustrtrn.c214 int32_t numSubstitutions; in Test_strToUTF32_surrogates() local
289 numSubstitutions = -1; in Test_strToUTF32_surrogates()
291 … u_strToUTF32WithSub(u32Target, 0, &u32DestLen, surr16, len16-1, 0xfffd, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
292 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != 7 || numSubstitutions != 2) { in Test_strToUTF32_surrogates()
299 …32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, len16-1, 0xfffd, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
300 …if(err != U_ZERO_ERROR || u32DestLen != 7 || numSubstitutions != 2 || uprv_memcmp(u32Target, expec… in Test_strToUTF32_surrogates()
307 u_strToUTF32WithSub(NULL, 0, &u32DestLen, surr16, -1, 0x12345, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
308 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != 7 || numSubstitutions != 2) { in Test_strToUTF32_surrogates()
315 …ub(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, -1, 0x12345, &numSubstitutions, &err); in Test_strToUTF32_surrogates()
316 …if(err != U_ZERO_ERROR || u32DestLen != 7 || numSubstitutions != 2 || uprv_memcmp(u32Target, expec… in Test_strToUTF32_surrogates()
[all …]
/external/icu/icu4c/source/common/
Dustrtrns.cpp52 int32_t numSubstitutions; in u_strFromUTF32WithSub() local
73 numSubstitutions = 0; in u_strFromUTF32WithSub()
120 ++numSubstitutions; in u_strFromUTF32WithSub()
130 *pNumSubstitutions = numSubstitutions; in u_strFromUTF32WithSub()
167 int32_t numSubstitutions; in u_strToUTF32WithSub() local
188 numSubstitutions = 0; in u_strToUTF32WithSub()
222 ++numSubstitutions; in u_strToUTF32WithSub()
236 *pNumSubstitutions = numSubstitutions; in u_strToUTF32WithSub()
285 int32_t numSubstitutions=0; in u_strFromUTF8WithSub() local
329 if(c<0 && (++numSubstitutions, c = subchar) < 0) { in u_strFromUTF8WithSub()
[all …]