Lines Matching refs:u32DestLen
147 int32_t u32DestLen; in Test_strToUTF32() local
151 u32DestLen = -2; in Test_strToUTF32()
152 u_strToUTF32(u32Target, 0, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
153 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != UPRV_LENGTHOF(src32)) { in Test_strToUTF32()
156 (long)u32DestLen, (long)UPRV_LENGTHOF(src32), u_errorName(err)); in Test_strToUTF32()
160 u32DestLen = -2; in Test_strToUTF32()
161 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32)+1, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
162 if(err != U_ZERO_ERROR || u32DestLen != UPRV_LENGTHOF(src32)) { in Test_strToUTF32()
165 (long)u32DestLen, (long)UPRV_LENGTHOF(src32), u_errorName(err)); in Test_strToUTF32()
184 u32DestLen = -2; in Test_strToUTF32()
185 u_strToUTF32(NULL,0, &u32DestLen, src16, -1,&err); in Test_strToUTF32()
186 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != UPRV_LENGTHOF(src32)-1) { in Test_strToUTF32()
189 (long)u32DestLen, (long)UPRV_LENGTHOF(src32)-1, u_errorName(err)); in Test_strToUTF32()
193 u32DestLen = -2; in Test_strToUTF32()
194 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32), &u32DestLen, src16, -1,&err); in Test_strToUTF32()
195 if(err != U_ZERO_ERROR || u32DestLen != UPRV_LENGTHOF(src32)-1) { in Test_strToUTF32()
198 (long)u32DestLen, (long)UPRV_LENGTHOF(src32)-1, u_errorName(err)); in Test_strToUTF32()
213 int32_t len16, u32DestLen; in Test_strToUTF32_surrogates() local
224 u_strToUTF32(u32Target, 0, &u32DestLen, surr16+i, len16-i, &err); in Test_strToUTF32_surrogates()
232 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+i, len16-i, &err); in Test_strToUTF32_surrogates()
240 u_strToUTF32(NULL, 0, &u32DestLen, surr16+i, -1, &err); in Test_strToUTF32_surrogates()
248 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+i, -1, &err); in Test_strToUTF32_surrogates()
257 u_strToUTF32(u32Target, 0, &u32DestLen, surr16+4, len16-4-1, &err); in Test_strToUTF32_surrogates()
258 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != 3) { in Test_strToUTF32_surrogates()
265 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+4, len16-4-1, &err); in Test_strToUTF32_surrogates()
266 if(err != U_ZERO_ERROR || u32DestLen != 3 || uprv_memcmp(u32Target, expected, 4*4)) { in Test_strToUTF32_surrogates()
273 u_strToUTF32(NULL, 0, &u32DestLen, surr16+4, -1, &err); in Test_strToUTF32_surrogates()
274 if(err != U_BUFFER_OVERFLOW_ERROR || u32DestLen != 3) { in Test_strToUTF32_surrogates()
281 u_strToUTF32(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16+4, -1, &err); in Test_strToUTF32_surrogates()
282 if(err != U_ZERO_ERROR || u32DestLen != 3 || uprv_memcmp(u32Target, expected, 4*4)) { 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 …u_strToUTF32WithSub(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, len16-1, 0xfffd, &nu… 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 …u_strToUTF32WithSub(u32Target, UPRV_LENGTHOF(u32Target), &u32DestLen, surr16, -1, 0x12345, &numSub… in Test_strToUTF32_surrogates()
316 …if(err != U_ZERO_ERROR || u32DestLen != 7 || numSubstitutions != 2 || uprv_memcmp(u32Target, expec… in Test_strToUTF32_surrogates()