Lines Matching defs:source
813 * While collecting source units to find the longest match for m:n conversion,
814 * some source units may need to be stored for a partial match.
816 * source units, then they must be "replayed", i.e., fed back into the converter.
850 s=pArgs->source;
878 * Previous m:n conversion stored source units from a partial match
882 realSource=pArgs->source;
888 pArgs->source=replay;
922 pArgs->flush && pArgs->source==pArgs->sourceLimit &&
961 sourceIndex+=(int32_t)(pArgs->source-s);
967 * switch the source to new replay units (cannot occur while replaying)
971 realSource=pArgs->source;
977 pArgs->source=replay;
993 s=pArgs->source;
1004 /* switch back from replaying to the real source and continue */
1005 pArgs->source=realSource;
1071 length=(int32_t)(pArgs->sourceLimit-pArgs->source);
1073 u_memcpy(cnv->preFromU, pArgs->source, length);
1077 pArgs->source=realSource;
1163 *offsets++=-1; /* no source index available for old output */
1179 const UChar **source, const UChar *sourceLimit,
1192 if(cnv==NULL || target==NULL || source==NULL) {
1197 s=*source;
1212 * 1) Make sure that the limits are >= to the address source or target
1221 * not be able to maintain the semantics that either the source must be
1254 * because it is possible that the source will not generate any output.
1263 args.source=s;
1271 *source=args.source;
1295 s=pArgs->source;
1323 * Previous m:n conversion stored source units from a partial match
1327 realSource=pArgs->source;
1333 pArgs->source=replay;
1367 pArgs->flush && pArgs->source==pArgs->sourceLimit &&
1406 sourceIndex+=(int32_t)(pArgs->source-s);
1412 * switch the source to new replay units (cannot occur while replaying)
1416 realSource=pArgs->source;
1422 pArgs->source=replay;
1438 s=pArgs->source;
1449 /* switch back from replaying to the real source and continue */
1450 pArgs->source=realSource;
1518 length=(int32_t)(pArgs->sourceLimit-pArgs->source);
1520 uprv_memcpy(cnv->preToU, pArgs->source, length);
1524 pArgs->source=realSource;
1609 *offsets++=-1; /* no source index available for old output */
1625 const char **source, const char *sourceLimit,
1638 if(cnv==NULL || target==NULL || source==NULL) {
1643 s=*source;
1658 * 1) Make sure that the limits are >= to the address source or target
1667 * not be able to maintain the semantics that either the source must be
1700 * because it is possible that the source will not generate any output.
1709 args.source=s;
1717 *source=args.source;
1841 const char **source, const char *sourceLimit,
1854 if(cnv==NULL || source==NULL) {
1859 s=*source;
1873 * not be able to maintain the semantics that either the source must be
1920 args.source=s;
1937 *source=s=args.source;
2001 } else if(args.source<sourceLimit) {
2038 *source=args.source;
2047 const char **source, const char *sourceLimit,
2068 source==NULL || *source==NULL ||
2075 s=*source;
2116 /* get limit of single-byte-NUL-terminated source string */
2117 sourceLimit=uprv_strchr(*source, 0);
2188 toUArgs.source=s;
2208 * source - sourceCnv overflow - pivot - targetCnv overflow - target
2227 fromUArgs.source=*pivotSource;
2232 *pivotSource=(UChar *)fromUArgs.source;
2267 if( toUArgs.source==sourceLimit &&
2344 * toUnicode(source -> pivot);
2371 if( flush && toUArgs.source==sourceLimit &&
2381 * - the entire source text has been converted successfully to the target buffer
2386 *source=toUArgs.source;
2406 const char *source, int32_t sourceLength,
2418 sourceLimit=uprv_strchr(source, 0);
2420 sourceLimit=source+sourceLength;
2424 if(source==sourceLimit) {
2437 &source, sourceLimit,
2460 &source, sourceLimit,
2479 const char *source, int32_t sourceLength,
2489 if( source==NULL || sourceLength<-1 ||
2497 if(sourceLength==0 || (sourceLength<0 && *source==0)) {
2515 source, sourceLength,
2530 const char *source, int32_t sourceLength,
2540 if( cnv==NULL || source==NULL || sourceLength<-1 ||
2548 if(sourceLength==0 || (sourceLength<0 && *source==0)) {
2574 source, sourceLength,
2586 const char *source, int32_t sourceLength,
2590 source, sourceLength,
2598 const char *source, int32_t sourceLength,
2602 source, sourceLength,
2663 UChar* source,
2669 if(cnv==NULL || source==NULL || sourceLength<=0 || (a=ucnv_getAmbiguous(cnv))==NULL)
2676 if(source[i]==variant5c) {
2677 source[i]=0x5c;
2754 ucnv_detectUnicodeSignature( const char* source,
2770 if(source == NULL || sourceLength < -1){
2780 sourceLength=(int32_t)uprv_strlen(source);
2785 start[i]=source[i];