Logo Search packages:      
Sourcecode: icu version File versions

typedef void ( U_EXPORT2 *  UConverterFromUCallback  )  const

Function pointer for error callback in the codepage to unicode direction. Called when an error has occured in conversion to unicode, or on open/close of the callback (see reason).

Parameters:
context Pointer to the callback's private data
args Information about the conversion in progress
codeUnits Points to 'length' bytes of the concerned codepage sequence
length Size (in bytes) of the concerned codepage sequence
reason Defines the reason the callback was invoked
pErrorCode ICU error code in/out parameter. For converter callback functions, set to a conversion error before the call, and the callback may reset it to U_ZERO_ERROR.
See also:
ucnv_setToUCallBack

UConverterToUnicodeArgs ICU 2.0

Function pointer for error callback in the unicode to codepage direction. Called when an error has occured in conversion from unicode, or on open/close of the callback (see reason).
Parameters:
context Pointer to the callback's private data
args Information about the conversion in progress
codeUnits Points to 'length' UChars of the concerned Unicode sequence
length Size (in bytes) of the concerned codepage sequence
codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint.
reason Defines the reason the callback was invoked
pErrorCode ICU error code in/out parameter. For converter callback functions, set to a conversion error before the call, and the callback may reset it to U_ZERO_ERROR.
See also:
ucnv_setFromUCallBack ICU 2.0

Referenced by CompactTrieDictionary::compactMutableTrieDictionary(), and ThaiBreakEngine::divideUpDictionaryRange().


Generated by  Doxygen 1.6.0   Back to index