1<!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
5<meta http-equiv="Content-Style-Type" content="text/css" />
6<link rel="stylesheet" type="text/css" href="../../CSS/revolution.css" />
7<title>ENCGetExternalCharacterWidth</title>
8</head>
9
10<body>
11
12<h1>ENCGetExternalCharacterWidth</h1>
13
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/enc.h&gt;
18
19ENCResult ENCGetExternalCharacterWidth(const ENCContext* context, u32* width);
20</pre></dd></dl>
21
22<h2>Arguments</h2>
23<TABLE class="arguments" border="1" >
24    <tr>
25<th>context</th>
26<td>Character code conversion context.</td>
27    </tr>
28    <tr>
29<th>width</th>
30<td>Minimum character width of the conversion target external character encoding.</td>
31    </tr>
32</table>
33
34<h2>Return Values</h2>
35<p>
36<code>ENC_OK</code>: Normal exit.<br><code>ENC_ERR_INVALID_PARAM</code>: Invalid argument.<br><code>ENC_ERR_UNKNOWN_ENCODING</code>: Unknown character encoding.<br>
37</p>
38
39<h2>Description</h2>
40<p>Acquires the minimum character width of the conversion target external character encoding.</p>
41<p>Returns <code>1</code> for single-byte and multi-byte characters, and <code>1</code>, <code>2</code>, <code>4</code> for wide characters.</p>
42<p>The minimum character width of internal character encoding is defined as <code>ENC_INTERNAL_CHAR_WIDTH</code>.</p>
43
44<h2>See Also</h2>
45<P>
46None.
47</P>
48
49<h2>Revision History</h2>
50<p>
512006/10/19 Initial version.<br>
52</p>
53
54<hr><p>CONFIDENTIAL</p></body>
55</html>