tizen 2.4 release
[external/libunistring.git] / doc / libunistring_7.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
2 <html>
3 <!-- Created on September, 1 2014 by texi2html 1.78a -->
4 <!--
5 Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
6             Karl Berry  <karl@freefriends.org>
7             Olaf Bachmann <obachman@mathematik.uni-kl.de>
8             and many others.
9 Maintained by: Many creative people.
10 Send bugs and suggestions to <texi2html-bug@nongnu.org>
11
12 -->
13 <head>
14 <title>GNU libunistring: 7. Names of Unicode characters &lt;uniname.h&gt;</title>
15
16 <meta name="description" content="GNU libunistring: 7. Names of Unicode characters &lt;uniname.h&gt;">
17 <meta name="keywords" content="GNU libunistring: 7. Names of Unicode characters &lt;uniname.h&gt;">
18 <meta name="resource-type" content="document">
19 <meta name="distribution" content="global">
20 <meta name="Generator" content="texi2html 1.78a">
21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
22 <style type="text/css">
23 <!--
24 a.summary-letter {text-decoration: none}
25 pre.display {font-family: serif}
26 pre.format {font-family: serif}
27 pre.menu-comment {font-family: serif}
28 pre.menu-preformatted {font-family: serif}
29 pre.smalldisplay {font-family: serif; font-size: smaller}
30 pre.smallexample {font-size: smaller}
31 pre.smallformat {font-family: serif; font-size: smaller}
32 pre.smalllisp {font-size: smaller}
33 span.roman {font-family:serif; font-weight:normal;}
34 span.sansserif {font-family:sans-serif; font-weight:normal;}
35 ul.toc {list-style: none}
36 -->
37 </style>
38
39
40 </head>
41
42 <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
43
44 <table cellpadding="1" cellspacing="1" border="0">
45 <tr><td valign="middle" align="left">[<a href="libunistring_6.html#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
46 <td valign="middle" align="left">[<a href="libunistring_8.html#SEC20" title="Next chapter"> &gt;&gt; </a>]</td>
47 <td valign="middle" align="left"> &nbsp; </td>
48 <td valign="middle" align="left"> &nbsp; </td>
49 <td valign="middle" align="left"> &nbsp; </td>
50 <td valign="middle" align="left"> &nbsp; </td>
51 <td valign="middle" align="left"> &nbsp; </td>
52 <td valign="middle" align="left">[<a href="libunistring.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
53 <td valign="middle" align="left">[<a href="libunistring.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
54 <td valign="middle" align="left">[<a href="libunistring_19.html#SEC77" title="Index">Index</a>]</td>
55 <td valign="middle" align="left">[<a href="libunistring_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
56 </tr></table>
57
58 <hr size="2">
59 <a name="uniname_002eh"></a>
60 <a name="SEC19"></a>
61 <h1 class="chapter"> <a href="libunistring.html#TOC19">7. Names of Unicode characters <code>&lt;uniname.h&gt;</code></a> </h1>
62
63 <p>This include file implements the association between a Unicode character and
64 its name.
65 </p>
66 <p>The name of a Unicode character allows to distinguish it from other, similar
67 looking characters.  For example, the character &lsquo;<samp>x</samp>&rsquo; has the name
68 <code>&quot;LATIN SMALL LETTER X&quot;</code> and is therefore different from the character
69 named <code>&quot;MULTIPLICATION SIGN&quot;</code>.
70 </p>
71 <dl>
72 <dt><u>Macro:</u> unsigned int <b>UNINAME_MAX</b>
73 <a name="IDX237"></a>
74 </dt>
75 <dd><p>This macro expands to a constant that is the required size of buffer for a
76 Unicode character name.
77 </p></dd></dl>
78
79 <dl>
80 <dt><u>Function:</u> char * <b>unicode_character_name</b><i> (ucs4_t <var>uc</var>, char *<var>buf</var>)</i>
81 <a name="IDX238"></a>
82 </dt>
83 <dd><p>Looks up the name of a Unicode character, in uppercase ASCII.
84 <var>buf</var> must point to a buffer, at least <code>UNINAME_MAX</code> bytes in size.
85 Returns the filled <var>buf</var>, or NULL if the character does not have a name.
86 </p></dd></dl>
87
88 <dl>
89 <dt><u>Function:</u> ucs4_t <b>unicode_name_character</b><i> (const char *<var>name</var>)</i>
90 <a name="IDX239"></a>
91 </dt>
92 <dd><p>Looks up the Unicode character with a given name, in upper- or lowercase
93 ASCII.  Returns the character if found, or <code>UNINAME_INVALID</code> if not found.
94 </p></dd></dl>
95
96 <dl>
97 <dt><u>Macro:</u> ucs4_t <b>UNINAME_INVALID</b>
98 <a name="IDX240"></a>
99 </dt>
100 <dd><p>This macro expands to a constant that is a special return value of the
101 <code>unicode_name_character</code> function.
102 </p></dd></dl>
103 <hr size="6">
104 <table cellpadding="1" cellspacing="1" border="0">
105 <tr><td valign="middle" align="left">[<a href="libunistring_6.html#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
106 <td valign="middle" align="left">[<a href="libunistring_8.html#SEC20" title="Next chapter"> &gt;&gt; </a>]</td>
107 <td valign="middle" align="left"> &nbsp; </td>
108 <td valign="middle" align="left"> &nbsp; </td>
109 <td valign="middle" align="left"> &nbsp; </td>
110 <td valign="middle" align="left"> &nbsp; </td>
111 <td valign="middle" align="left"> &nbsp; </td>
112 <td valign="middle" align="left">[<a href="libunistring.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
113 <td valign="middle" align="left">[<a href="libunistring.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
114 <td valign="middle" align="left">[<a href="libunistring_19.html#SEC77" title="Index">Index</a>]</td>
115 <td valign="middle" align="left">[<a href="libunistring_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
116 </tr></table>
117 <p>
118  <font size="-1">
119   This document was generated by <em>Daiki Ueno</em> on <em>September, 1 2014</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.78a</em></a>.
120  </font>
121  <br>
122
123 </p>
124 </body>
125 </html>