Lines Matching defs:source
44 static UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
46 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
49 static UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
51 static UBool testConvertToU( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
681 const char* source=(const char*)input1;
689 c=ucnv_getNextUChar(cnv, &source, source + INPUT_SIZE, &err);
1005 static UBool convertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1033 src=source;
1094 static UBool convertToU( const uint8_t *source, int sourceLen, const UChar *expect, int expectLen,
1126 src=(const char *)source;
1170 for(i=0; i<(src-(const char *)source); i++)
1171 log_info("0x%02X,", (unsigned char)source[i]);
1191 static UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
1238 src = source;
1244 realSourceEnd = source + sourceLen;
1264 log_verbose("calling fromUnicode @ SOURCE:%08lx to %08lx TARGET: %08lx to %08lx, flush=%s\n", src,sourceLimit, targ,end, doFlush?"TRUE":"FALSE");
1353 printUSeqErr(source, sourceLen);
1363 static UBool testConvertToU( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
1412 src = (const char *)source;
1449 doFlush, /* flush if we're at the end of hte source data */
1510 for(i=0; i<(src-(const char *)source); i++)
1511 log_err("%X,", (unsigned char)source[i]);
1796 const char *source, *sourceLimit;
1814 source=(const char *)bytes;
1815 sourceLimit=source+length;
1820 ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, FALSE, &errorCode);
1821 if(U_FAILURE(errorCode) || source!=sourceLimit || target!=buffer) {
1823 cnvName, length, u_errorName(errorCode), (int)(sourceLimit-source), (int)(target-buffer));
1827 source=sourceLimit;
1829 ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, TRUE, &errorCode);
1839 source=(const char *)bytes;
1841 ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, TRUE, &errorCode);
1842 if(errorCode!=U_TRUNCATED_CHAR_FOUND || source!=sourceLimit || target!=buffer) {
1844 cnvName, length, u_errorName(errorCode), (int)(sourceLimit-source), (int)(target-buffer));