glib-unicode-manipulation.html

来自「glid编写实例」· HTML 代码 · 共 1,445 行 · 第 1/5 页

HTML
1,445 行
字号
<tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> <code class="literal">TRUE</code> if the character is titlecase</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972385"></a><h3><a name="g-unichar-isdefined"></a>g_unichar_isdefined ()</h3><a class="indexterm" name="id2972396"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gboolean">gboolean</a>    g_unichar_isdefined             (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Determines if a given character is assigned in the Unicodestandard.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> <code class="literal">TRUE</code> if the character has an assigned value</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972463"></a><h3><a name="g-unichar-iswide"></a>g_unichar_iswide ()</h3><a class="indexterm" name="id2972474"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gboolean">gboolean</a>    g_unichar_iswide                (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Determines if a character is typically rendered in a double-widthcell.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> <code class="literal">TRUE</code> if the character is wide</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972541"></a><h3><a name="g-unichar-toupper"></a>g_unichar_toupper ()</h3><a class="indexterm" name="id2972552"></a><pre class="programlisting"><a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    g_unichar_toupper               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Converts a character to uppercase.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the result of converting <em class="parameter"><code>c</code></em> to uppercase.              If <em class="parameter"><code>c</code></em> is not an lowercase or titlecase character,              or has no upper case equivalent <em class="parameter"><code>c</code></em> is returned unchanged.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972631"></a><h3><a name="g-unichar-tolower"></a>g_unichar_tolower ()</h3><a class="indexterm" name="id2972642"></a><pre class="programlisting"><a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    g_unichar_tolower               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Converts a character to lower case.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the result of converting <em class="parameter"><code>c</code></em> to lower case.              If <em class="parameter"><code>c</code></em> is not an upperlower or titlecase character,              or has no lowercase equivalent <em class="parameter"><code>c</code></em> is returned unchanged.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972722"></a><h3><a name="g-unichar-totitle"></a>g_unichar_totitle ()</h3><a class="indexterm" name="id2972733"></a><pre class="programlisting"><a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    g_unichar_totitle               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Converts a character to the titlecase.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the result of converting <em class="parameter"><code>c</code></em> to titlecase.              If <em class="parameter"><code>c</code></em> is not an uppercase or lowercase character,              <em class="parameter"><code>c</code></em> is returned unchanged.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972812"></a><h3><a name="g-unichar-digit-value"></a>g_unichar_digit_value ()</h3><a class="indexterm" name="id2972823"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gint">gint</a>        g_unichar_digit_value           (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Determines the numeric value of a character as a decimaldigit.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> If <em class="parameter"><code>c</code></em> is a decimal digit (according to<a href="glib-Unicode-Manipulation.html#g-unichar-isdigit"><code class="function">g_unichar_isdigit()</code></a>), its numeric value. Otherwise, -1.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972902"></a><h3><a name="g-unichar-xdigit-value"></a>g_unichar_xdigit_value ()</h3><a class="indexterm" name="id2972913"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gint">gint</a>        g_unichar_xdigit_value          (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Determines the numeric value of a character as a hexidecimaldigit.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> If <em class="parameter"><code>c</code></em> is a hex digit (according to<a href="glib-Unicode-Manipulation.html#g-unichar-isxdigit"><code class="function">g_unichar_isxdigit()</code></a>), its numeric value. Otherwise, -1.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2972992"></a><h3><a name="GUnicodeType"></a>enum GUnicodeType</h3><a class="indexterm" name="id2973002"></a><pre class="programlisting">typedef enum{  G_UNICODE_CONTROL,  G_UNICODE_FORMAT,  G_UNICODE_UNASSIGNED,  G_UNICODE_PRIVATE_USE,  G_UNICODE_SURROGATE,  G_UNICODE_LOWERCASE_LETTER,  G_UNICODE_MODIFIER_LETTER,  G_UNICODE_OTHER_LETTER,  G_UNICODE_TITLECASE_LETTER,  G_UNICODE_UPPERCASE_LETTER,  G_UNICODE_COMBINING_MARK,  G_UNICODE_ENCLOSING_MARK,  G_UNICODE_NON_SPACING_MARK,  G_UNICODE_DECIMAL_NUMBER,  G_UNICODE_LETTER_NUMBER,  G_UNICODE_OTHER_NUMBER,  G_UNICODE_CONNECT_PUNCTUATION,  G_UNICODE_DASH_PUNCTUATION,  G_UNICODE_CLOSE_PUNCTUATION,  G_UNICODE_FINAL_PUNCTUATION,  G_UNICODE_INITIAL_PUNCTUATION,  G_UNICODE_OTHER_PUNCTUATION,  G_UNICODE_OPEN_PUNCTUATION,  G_UNICODE_CURRENCY_SYMBOL,  G_UNICODE_MODIFIER_SYMBOL,  G_UNICODE_MATH_SYMBOL,  G_UNICODE_OTHER_SYMBOL,  G_UNICODE_LINE_SEPARATOR,  G_UNICODE_PARAGRAPH_SEPARATOR,  G_UNICODE_SPACE_SEPARATOR} GUnicodeType;</pre><p>These are the possible character classifications.See <a href="http://www.unicode.org/Public/UNIDATA/UnicodeData.html" target="_top">http://www.unicode.org/Public/UNIDATA/UnicodeData.html</a>.</p></div><hr><div class="refsect2" lang="en"><a name="id2973040"></a><h3><a name="g-unichar-type"></a>g_unichar_type ()</h3><a class="indexterm" name="id2973050"></a><pre class="programlisting"><a href="glib-Unicode-Manipulation.html#GUnicodeType">GUnicodeType</a> g_unichar_type                 (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Classifies a Unicode character by type.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c</code></em>&#160;:</span></td><td> a Unicode character</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?