Home | History | Annotate | Download | only in common

Lines Matching full:args

825 #define WRITE_TO_TARGET_FROM_U(args
826 int32_t offset = (int32_t)(source - args->source-1); \
843 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = \
845 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = \
859 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] =\
867 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = \
871 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = \
874 args->converter->charErrorBuffer[args->converter->charErrorBufferLength++] = \
888 UConverterFromUnicodeArgs * args, UErrorCode * err) {
889 const UChar *source = args->source;
890 const UChar *sourceLimit = args->sourceLimit;
891 unsigned char *target = (unsigned char *) args->target;
892 unsigned char *targetLimit = (unsigned char *) args->targetLimit;
893 int32_t* offsets = args->offsets;
902 if ((args->converter == NULL) || (args->targetLimit < args->target) || (args->sourceLimit < args->source)) {
907 converterData=(UConverterDataISCII*)args->converter->extraInfo;
911 if ((sourceChar = args->converter->fromUChar32)!=0) {
918 if (args->converter->fromUnicodeStatus == LF) {
921 args->converter->fromUnicodeStatus = 0x0000;
923 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err);
936 args->converter->fromUnicodeStatus = sourceChar;
937 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,sourceChar,err);
1020 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,temp,err);
1040 WRITE_TO_TARGET_FROM_U(args, offsets, source, target, targetLimit, targetByteUnit,err);
1049 WRITE_TO_TARGET_FROM_U(args,offsets,source,target,targetLimit,targetByteUnit,err);
1088 args->converter->fromUChar32=sourceChar;
1094 args->source = source;
1095 args->target = (char*)target;
1113 #define WRITE_TO_TARGET_TO_U(args,source,target,offsets,offset,targetUniChar,delta, err){\
1124 if(target<args->targetLimit){ \
1130 args->converter->UCharErrorBuffer[args->converter->UCharErrorBufferLength++] = \
1170 static void UConverter_toUnicode_ISCII_OFFSETS_LOGIC(UConverterToUnicodeArgs *args, UErrorCode* err) {
1171 const char *source = ( char *) args->source;
1172 UChar *target = args->target;
1173 const char *sourceLimit = args->sourceLimit;
1174 const UChar* targetLimit = args->targetLimit;
1185 if ((args->converter == NULL) || (target < args->target) || (source < args->source)) {
1190 data = (UConverterDataISCII*)(args->converter->extraInfo);
1192 toUnicodeStatus = (UChar32*)&args->converter->toUnicodeStatus;/* contains the mapping to Unicode of the above codepoint*/
1245 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -1),data->prevToUnicodeStatus,0,err);
1249 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -2),targetUniChar,data->currentDeltaToUnicode,err);
1272 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -1),data->prevToUnicodeStatus,0,err);
1276 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -2),targetUniChar,data->currentDeltaToUnicode,err);
1291 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -1),data->prevToUnicodeStatus,0,err);
1294 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -2),*toUnicodeStatus,data->currentDeltaToUnicode,err);
1363 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -1),data->prevToUnicodeStatus,0,err);
1370 WRITE_TO_TARGET_TO_U(args, source, target, args->offsets, (source-args->source)-2, targetUniChar, 0, err);
1373 WRITE_TO_TARGET_TO_U(args, source, target, args->offsets, (source-args->source)-2, targetUniChar, 0, err);
1376 WRITE_TO_TARGET_TO_U(args, source, target, args->offsets, (source-args->source)-2, targetUniChar, 0, err);
1378 args->converter->UCharErrorBuffer[args->converter->UCharErrorBufferLength++]= PNJ_HA;
1381 args->converter->UCharErrorBuffer[args->converter->UCharErrorBufferLength++]= PNJ_SIGN_VIRAMA;
1382 args->converter->UCharErrorBuffer[args->converter->UCharErrorBufferLength++]= PNJ_HA;
1408 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -1),data->prevToUnicodeStatus,0,err);
1411 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -2),targetUniChar,data->currentDeltaToUnicode,err);
1431 args->source - 3);
1433 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,offset,tempTargetUniChar,0,err);
1434 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,offset,data->prevToUnicodeStatus,0,err);
1441 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -1),data->prevToUnicodeStatus,0,err);
1449 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -2),*toUnicodeStatus,PNJ_DELTA,err);
1455 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source-args->source -2),*toUnicodeStatus,data->currentDeltaToUnicode,err);
1476 args->converter->toUBytes[0] = (uint8_t) sourceChar;
1477 args->converter->toULength = 1;
1487 if (U_SUCCESS(*err) && args->flush && source == sourceLimit) {
1489 UConverter *cnv = args->converter;
1504 WRITE_TO_TARGET_TO_U(args,source,target,args->offsets,(source - args->source -1),*toUnicodeStatus,data->currentDeltaToUnicode,err);
1509 args->target = target;
1510 args->source = source;