Lines Matching defs:source
42 static UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
44 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
47 static UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
49 static UBool testConvertToU( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
685 const char* source=(const char*)input1;
693 c=ucnv_getNextUChar(cnv, &source, source + INPUT_SIZE, &err);
1007 static UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1035 src=source;
1096 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
1128 src=(const char *)source;
1172 for(i=0; i<(src-(const char *)source); i++)
1173 log_info("0x%02X,", (unsigned char)source[i]);
1193 static UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1240 src = source;
1246 realSourceEnd = source + sourceLen;
1266 log_verbose("calling fromUnicode @ SOURCE:%08lx to %08lx TARGET: %08lx to %08lx, flush=%s\n", src,sourceLimit, targ,end, doFlush?"TRUE":"FALSE");
1355 printUSeqErr(source, sourceLen);
1365 static UBool testConvertToU( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
1414 src = (const char *)source;
1451 doFlush, /* flush if we're at the end of hte source data */
1512 for(i=0; i<(src-(const char *)source); i++)
1513 log_err("%X,", (unsigned char)source[i]);
1799 const char *source, *sourceLimit;
1817 source=(const char *)bytes;
1818 sourceLimit=source+length;
1823 ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, FALSE, &errorCode);
1824 if(U_FAILURE(errorCode) || source!=sourceLimit || target!=buffer) {
1826 cnvName, length, u_errorName(errorCode), (int)(sourceLimit-source), (int)(target-buffer));
1830 source=sourceLimit;
1832 ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, TRUE, &errorCode);
1842 source=(const char *)bytes;
1844 ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, TRUE, &errorCode);
1845 if(errorCode!=U_TRUNCATED_CHAR_FOUND || source!=sourceLimit || target!=buffer) {
1847 cnvName, length, u_errorName(errorCode), (int)(sourceLimit-source), (int)(target-buffer));