GetCharCount()

ICUDecoder::GetCharCount(ArrayPtr<uint8_t>, int, int) method

Gets the number of characters needed to decode a buffer.

virtual int System::Text::ICUDecoder::GetCharCount(ArrayPtr<uint8_t> bytes, int index, int count)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
indexintBuffer offset.
countintNumber of bytes to decode.

Return Value

Number of characters required to decode the buffer.

ICUDecoder::GetCharCount(ArrayPtr<uint8_t>, int, int, bool) method

Gets the number of characters needed to decode a buffer.

virtual int System::Text::ICUDecoder::GetCharCount(ArrayPtr<uint8_t> bytes, int index, int count, bool flush)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
indexintBuffer offset.
countintNumber of bytes to decode.
flushboolIf true, cleans internal decoder state after calculation.

Return Value

Number of characters required to decode the buffer.

ICUDecoder::GetCharCount(const uint8_t *, int, bool) method

Gets the number of characters needed to decode a buffer.

virtual int System::Text::ICUDecoder::GetCharCount(const uint8_t *bytes, int count, bool flush)

Arguments

ParameterTypeDescription
bytesconst uint8_t *Bytes to decode.
countintNumber of bytes to decode.
flushboolIf true, cleans internal decoder state after calculation.

Return Value

Number of characters required to decode the buffer.

See Also