ICU-634 Deleted FromU and ToU callback macros which were not being used by

2022 converters anymore

X-SVN-Rev: 3532
This commit is contained in:
Ram Viswanadha 2001-02-02 03:54:57 +00:00
parent b353c338e6
commit 401f3aece7

View file

@ -42,73 +42,6 @@ U_CDECL_BEGIN
* U+ffff "illegal"
*/
#define FromU_CALLBACK_MACRO(context, args, codeUnits, length, codePoint, reason, err) \
{ \
/*copies current values for the ErrorFunctor to update */ \
/*Calls the ErrorFunctor */ \
args->converter->fromUCharErrorBehaviour ( context, \
args, \
codeUnits, \
length, \
codePoint, \
reason, \
err); \
myTargetIndex = args->target - (char*)myTarget; \
mySourceIndex = args->source - mySource; \
}
/*
*/
#define ToU_CALLBACK_MACRO(context, args, codePoints, length, reason, err) \
{ \
/*Calls the ErrorFunctor */ \
args->converter->fromCharErrorBehaviour ( \
context, \
args, \
codePoints, \
length, \
reason, \
err); \
myTargetIndex = args->target - myTarget; \
mySourceIndex = args->source - (const char*)mySource; \
}
/*
*/
#define FromU_CALLBACK_OFFSETS_LOGIC_MACRO(context, args, codeUnits, length, codePoint, reason, err) \
{ \
int32_t My_i = myTargetIndex; \
/*copies current values for the ErrorFunctor to update */ \
/*Calls the ErrorFunctor */ \
args->converter->fromUCharErrorBehaviour ( \
context, \
args, \
codeUnits, \
length, \
codePoint, \
reason, \
err); \
/*Update the local Indexes so that the conversion can restart at the right points */ \
myTargetIndex = args->target - (char*)myTarget; \
mySourceIndex = args->source - mySource; \
args->offsets = saveOffsets; \
for (;My_i < myTargetIndex;My_i++) args->offsets[My_i] += currentOffset; \
}
/*
*/
#define ToU_CALLBACK_OFFSETS_LOGIC_MACRO(context, args, codePoints, length, reason, err) \
{ \
args->converter->fromCharErrorBehaviour ( \
context, \
args, \
codePoints, \
length, \
reason, \
err); \
/*Update the local Indexes so that the conversion can restart at the right points */ \
myTargetIndex = args->target - myTarget; \
mySourceIndex = args->source - (const char*)mySource; \
args->offsets = saveOffsets; \
for (;My_i < myTargetIndex;My_i++) {args->offsets[My_i] += currentOffset;} \
}
typedef void (*UConverterLoad) (UConverterSharedData *sharedData, const uint8_t *raw, UErrorCode *pErrorCode);