ENCGetExternalCharacterWidth

Syntax

#include <revolution/enc.h>

ENCResult ENCGetExternalCharacterWidth(const ENCContext* context, u32* width);

Arguments

context Character code conversion context.
width Minimum character width of the conversion target external character encoding.

Return Values

ENC_OK: Normal exit.
ENC_ERR_INVALID_PARAM: Invalid argument.
ENC_ERR_UNKNOWN_ENCODING: Unknown character encoding.

Description

Acquires the minimum character width of the conversion target external character encoding.

Returns 1 for single-byte and multi-byte characters, and 1, 2, 4 for wide characters.

The minimum character width of internal character encoding is defined as ENC_INTERNAL_CHAR_WIDTH.

See Also

None.

Revision History

2006/10/19 Initial version.


CONFIDENTIAL