Count of errors from all tests
Count of errors from all tests. May be reset.
UnicodeConverterCPP(const char* name, UErrorCode& err)
UErrorCode - Error status (I/O) IILLEGAL_ARGUMENT_ERROR will be returned if the string is empty.
If the internal program does not work correctly, for example, if there's no such codepage,
U_INTERNAL_PROGRAM_ERROR will be returned.
UnicodeConverterCPP(const UnicodeString& name, UErrorCode& err)
err - error status (I/O) IILLEGAL_ARGUMENT_ERROR will be returned if the string is empty. If the internal
program does not work correctly, for example, if there's no such codepage, U_INTERNAL_PROGRAM_ERROR will be
returned.
UnicodeConverterCPP(int32_t codepageNumber, UConverterPlatform platform, UErrorCode& err)
void fromUnicodeString(char* target, int32_t& targetSize, const UnicodeString& source, UErrorCode& err) const
target - the target string in codepage encoding
targetSize - Input the number of bytes available in the "target" buffer, Output the number of bytes copied to it
err - the error status code. U_MEMORY_ALLOCATION_ERROR will be returned if the
the internal process buffer cannot be allocated for transcoding. U_ILLEGAL_ARGUMENT_ERROR
is returned if the converter is null or the source or target string is empty. void toUnicodeString(UnicodeString& target, const char* source, int32_t sourceSize, UErrorCode& err) const
target - the target string in Unicode encoding
targetSize - : I/O parameter, Input size buffer, Output # of bytes copied to it
err - the error status code U_MEMORY_ALLOCATION_ERROR will be returned if the
the internal process buffer cannot be allocated for transcoding. U_ILLEGAL_ARGUMENT_ERROR
is returned if the converter is null or the source or target string is empty. void fromUnicode(char*& target, const char* targetLimit, const UChar*& source, const UChar* sourceLimit, int32_t * offsets, bool_t flush, UErrorCode& err)
targetLimit - the pointer to the end of the target array
source - the source Unicode character array
sourceLimit - the pointer to the end of the source array
flush - TRUE if the buffer is the last buffer and the conversion will finish
in this call, FALSE otherwise. (future feature pending)
UErrorCode - the error status. U_ILLEGAL_ARGUMENT_ERROR will be returned if the
converter is null. void toUnicode(UChar*& target, const UChar* targetLimit, const char*& source, const char* sourceLimit, int32_t * offsets, bool_t flush, UErrorCode& err)
targetLimit - the pointer to the end of the target array
source - the source codepage character array
sourceLimit - the pointer to the end of the source array
flush - TRUE if the buffer is the last buffer and the conversion will finish
in this call, FALSE otherwise. (future feature pending)
err - the error code status U_ILLEGAL_ARGUMENT_ERROR will be returned if the
converter is null, targetLimit < target, sourceLimit < source int8_t getMinBytesPerChar(void) const
UConverterType getType(void) const
void getStarters(bool_t starters[256], UErrorCode& err) const
err - : an array of size 256 to be filled in
void getSubstitutionChars(char* subChars, int8_t& len, UErrorCode& err) const
len - the number of bytes of the substitution character array
err - the error status code. U_ILLEGAL_ARGUMENT_ERROR will be returned if
the converter is null. If the substitution character array is too small, an
U_INDEX_OUTOFBOUNDS_ERROR will be returned. void setSubstitutionChars(const char* subChars, int8_t len, UErrorCode& err)
len - the number of bytes of the substitution character array and upon return will contain the
number of bytes copied to that buffer
err - the error status code. U_ILLEGAL_ARGUMENT_ERROR if the converter is
null. or if the number of bytes provided are not in the codepage's range (e.g length 1 for ucs-2) void resetState(void)
const char* getName( UErrorCode& err) const
err - the error status code. U_INDEX_OUTOFBOUNDS_ERROR in the converterNameLen is too
small to contain the name. int32_t getCodepage(UErrorCode& err) const
UConverterToUCallback getMissingCharAction(void) const
UConverterFromUCallback getMissingUnicodeAction(void) const
void setMissingCharAction(UConverterToUCallback action, UErrorCode& err)
void setMissingUnicodeAction(UConverterFromUCallback action, UErrorCode& err)
err - the error status code void getDisplayName(const Locale& displayLocale, UnicodeString& displayName) const
displayString - a UnicodeString that is going to be filled in. UConverterPlatform getCodepagePlatform(UErrorCode& err) const
static const char* const* getAvailableNames(int32_t& num, UErrorCode& err)
err - the error code status
static int32_t flushCache(void)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de