Lines Matching refs:src16
101 static const UChar src16[] = { variable
150 u_strToUTF32(u32Target, 0, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
159 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32)+1, &u32DestLen, src16, UPRV_LENGTHOF(src16),&err); in Test_strToUTF32()
183 u_strToUTF32(NULL,0, &u32DestLen, src16, -1,&err); in Test_strToUTF32()
192 u_strToUTF32(u32Target, UPRV_LENGTHOF(src32), &u32DestLen, src16, -1,&err); in Test_strToUTF32()
330 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != UPRV_LENGTHOF(src16)) { in Test_strFromUTF32()
333 (long)uDestLen, (long)UPRV_LENGTHOF(src16), u_errorName(err)); in Test_strFromUTF32()
338 u_strFromUTF32(uTarget, UPRV_LENGTHOF(src16)+1,&uDestLen,src32,UPRV_LENGTHOF(src32),&err); in Test_strFromUTF32()
339 if(err != U_ZERO_ERROR || uDestLen != UPRV_LENGTHOF(src16)) { in Test_strFromUTF32()
342 (long)uDestLen, (long)UPRV_LENGTHOF(src16), u_errorName(err)); in Test_strFromUTF32()
353 if(uTarget[i] != src16[i]){ in Test_strFromUTF32()
354 …trFromUTF32(with length) failed expected: %04X got: %04X at index: %i \n", src16[i] ,uTarget[i],i); in Test_strFromUTF32()
364 if(err != U_BUFFER_OVERFLOW_ERROR || uDestLen != UPRV_LENGTHOF(src16)-1) { in Test_strFromUTF32()
367 (long)uDestLen, (long)UPRV_LENGTHOF(src16)-1, u_errorName(err)); in Test_strFromUTF32()
372 u_strFromUTF32(uTarget, UPRV_LENGTHOF(src16),&uDestLen,src32,-1,&err); in Test_strFromUTF32()
373 if(err != U_ZERO_ERROR || uDestLen != UPRV_LENGTHOF(src16)-1) { in Test_strFromUTF32()
376 (long)uDestLen, (long)UPRV_LENGTHOF(src16)-1, u_errorName(err)); in Test_strFromUTF32()
381 if(uTarget[i] != src16[i]){ in Test_strFromUTF32()
382 …e("u_strFromUTF32(with NUL-termination) failed expected: %04X got: %04X \n", src16[i] ,uTarget[i]); in Test_strFromUTF32()
512 const UChar* uSrc = src16; in Test_UChar_UTF8_API()
513 int32_t uSrcLen = sizeof(src16)/2; in Test_UChar_UTF8_API()
587 if(uTarget[i] != src16[i]){ in Test_UChar_UTF8_API()
588 …e("u_strFromUTF8() failed expected: \\u%04X got: \\u%04X at index: %i \n", src16[i] ,uTarget[i],i); in Test_UChar_UTF8_API()
657 if(uTarget[i] != src16[i]){ in Test_UChar_UTF8_API()
658 …e("u_strFromUTF8() failed expected: \\u%04X got: \\u%04X at index: %i \n", src16[i] ,uTarget[i],i); in Test_UChar_UTF8_API()