⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glib-unicode-manipulation.html

📁 glid编写实例
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<html xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0"><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>Unicode Manipulation</title><meta name="generator" content="DocBook XSL Stylesheets V1.69.0"><link rel="start" href="index.html" title="GLib Reference Manual"><link rel="up" href="glib-utilities.html" title="GLib Utilities"><link rel="prev" href="glib-Character-Set-Conversion.html" title="Character Set Conversion"><link rel="next" href="glib-I18N.html" title="Internationalization"><meta name="generator" content="GTK-Doc V1.4 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="glib.html" title="GLib Overview"><link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals"><link rel="chapter" href="glib-core.html" title="GLib Core Application Support"><link rel="chapter" href="glib-utilities.html" title="GLib Utilities"><link rel="chapter" href="glib-data-types.html" title="GLib Data Types"><link rel="chapter" href="tools.html" title="GLib Tools"><link rel="index" href="ix01.html" title="Index"><link rel="index" href="ix02.html" title="Index of deprecated symbols"><link rel="index" href="ix03.html" title="Index of new symbols in 2.2"><link rel="index" href="ix04.html" title="Index of new symbols in 2.4"><link rel="index" href="ix05.html" title="Index of new symbols in 2.6"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="glib-Character-Set-Conversion.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="glib-utilities.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GLib Reference Manual</th><td><a accesskey="n" href="glib-I18N.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="glib-Unicode-Manipulation"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">Unicode Manipulation</span></h2><p>Unicode Manipulation &#8212; functions operating on Unicode characters and UTF-8 strings.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include &lt;glib.h&gt;typedef     <a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>;typedef     <a href="glib-Unicode-Manipulation.html#gunichar2">gunichar2</a>;<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-validate">g_unichar_validate</a>              (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> ch);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isalnum">g_unichar_isalnum</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isalpha">g_unichar_isalpha</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-iscntrl">g_unichar_iscntrl</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isdigit">g_unichar_isdigit</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isgraph">g_unichar_isgraph</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-islower">g_unichar_islower</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isprint">g_unichar_isprint</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-ispunct">g_unichar_ispunct</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isspace">g_unichar_isspace</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isupper">g_unichar_isupper</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isxdigit">g_unichar_isxdigit</a>              (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-istitle">g_unichar_istitle</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-isdefined">g_unichar_isdefined</a>             (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-iswide">g_unichar_iswide</a>                (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-toupper">g_unichar_toupper</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-tolower">g_unichar_tolower</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-totitle">g_unichar_totitle</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gint">gint</a>        <a href="glib-Unicode-Manipulation.html#g-unichar-digit-value">g_unichar_digit_value</a>           (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gint">gint</a>        <a href="glib-Unicode-Manipulation.html#g-unichar-xdigit-value">g_unichar_xdigit_value</a>          (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);enum        <a href="glib-Unicode-Manipulation.html#GUnicodeType">GUnicodeType</a>;<a href="glib-Unicode-Manipulation.html#GUnicodeType">GUnicodeType</a> <a href="glib-Unicode-Manipulation.html#g-unichar-type">g_unichar_type</a>                 (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);enum        <a href="glib-Unicode-Manipulation.html#GUnicodeBreakType">GUnicodeBreakType</a>;<a href="glib-Unicode-Manipulation.html#GUnicodeBreakType">GUnicodeBreakType</a> <a href="glib-Unicode-Manipulation.html#g-unichar-break-type">g_unichar_break_type</a>      (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);void        <a href="glib-Unicode-Manipulation.html#g-unicode-canonical-ordering">g_unicode_canonical_ordering</a>    (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> *string,                                             <a href="glib-Basic-Types.html#gsize">gsize</a> len);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>*   <a href="glib-Unicode-Manipulation.html#g-unicode-canonical-decomposition">g_unicode_canonical_decomposition</a>                                            (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> ch,                                             <a href="glib-Basic-Types.html#gsize">gsize</a> *result_len);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-unichar-get-mirror-char">g_unichar_get_mirror_char</a>       (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> ch,                                             <a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> *mirrored_ch);#define     <a href="glib-Unicode-Manipulation.html#g-utf8-next-char">g_utf8_next_char</a>                (p)<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    <a href="glib-Unicode-Manipulation.html#g-utf8-get-char">g_utf8_get_char</a>                 (const <a href="glib-Basic-Types.html#gchar">gchar</a> *p);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>    <a href="glib-Unicode-Manipulation.html#g-utf8-get-char-validated">g_utf8_get_char_validated</a>       (const  <a href="glib-Basic-Types.html#gchar">gchar</a> *p,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> max_len);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-offset-to-pointer">g_utf8_offset_to_pointer</a>        (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> offset);<a href="glib-Basic-Types.html#glong">glong</a>       <a href="glib-Unicode-Manipulation.html#g-utf8-pointer-to-offset">g_utf8_pointer_to_offset</a>        (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             const <a href="glib-Basic-Types.html#gchar">gchar</a> *pos);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-prev-char">g_utf8_prev_char</a>                (const <a href="glib-Basic-Types.html#gchar">gchar</a> *p);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-find-next-char">g_utf8_find_next_char</a>           (const <a href="glib-Basic-Types.html#gchar">gchar</a> *p,                                             const <a href="glib-Basic-Types.html#gchar">gchar</a> *end);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-find-prev-char">g_utf8_find_prev_char</a>           (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             const <a href="glib-Basic-Types.html#gchar">gchar</a> *p);<a href="glib-Basic-Types.html#glong">glong</a>       <a href="glib-Unicode-Manipulation.html#g-utf8-strlen">g_utf8_strlen</a>                   (const <a href="glib-Basic-Types.html#gchar">gchar</a> *p,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> max);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-strncpy">g_utf8_strncpy</a>                  (<a href="glib-Basic-Types.html#gchar">gchar</a> *dest,                                             const <a href="glib-Basic-Types.html#gchar">gchar</a> *src,                                             <a href="glib-Basic-Types.html#gsize">gsize</a> n);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-strchr">g_utf8_strchr</a>                   (const <a href="glib-Basic-Types.html#gchar">gchar</a> *p,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len,                                             <a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-strrchr">g_utf8_strrchr</a>                  (const <a href="glib-Basic-Types.html#gchar">gchar</a> *p,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len,                                             <a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-strreverse">g_utf8_strreverse</a>               (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len);<a href="glib-Basic-Types.html#gboolean">gboolean</a>    <a href="glib-Unicode-Manipulation.html#g-utf8-validate">g_utf8_validate</a>                 (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> max_len,                                             const <a href="glib-Basic-Types.html#gchar">gchar</a> **end);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-strup">g_utf8_strup</a>                    (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-strdown">g_utf8_strdown</a>                  (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-casefold">g_utf8_casefold</a>                 (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-normalize">g_utf8_normalize</a>                (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len,                                             <a href="glib-Unicode-Manipulation.html#GNormalizeMode">GNormalizeMode</a> mode);enum        <a href="glib-Unicode-Manipulation.html#GNormalizeMode">GNormalizeMode</a>;<a href="glib-Basic-Types.html#gint">gint</a>        <a href="glib-Unicode-Manipulation.html#g-utf8-collate">g_utf8_collate</a>                  (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str1,                                             const <a href="glib-Basic-Types.html#gchar">gchar</a> *str2);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf8-collate-key">g_utf8_collate_key</a>              (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#gssize">gssize</a> len);<a href="glib-Unicode-Manipulation.html#gunichar2">gunichar2</a>*  <a href="glib-Unicode-Manipulation.html#g-utf8-to-utf16">g_utf8_to_utf16</a>                 (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> len,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_read,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_written,                                             <a href="glib-Error-Reporting.html#GError">GError</a> **error);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>*   <a href="glib-Unicode-Manipulation.html#g-utf8-to-ucs4">g_utf8_to_ucs4</a>                  (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> len,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_read,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_written,                                             <a href="glib-Error-Reporting.html#GError">GError</a> **error);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>*   <a href="glib-Unicode-Manipulation.html#g-utf8-to-ucs4-fast">g_utf8_to_ucs4_fast</a>             (const <a href="glib-Basic-Types.html#gchar">gchar</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> len,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_written);<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a>*   <a href="glib-Unicode-Manipulation.html#g-utf16-to-ucs4">g_utf16_to_ucs4</a>                 (const <a href="glib-Unicode-Manipulation.html#gunichar2">gunichar2</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> len,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_read,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_written,                                             <a href="glib-Error-Reporting.html#GError">GError</a> **error);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-utf16-to-utf8">g_utf16_to_utf8</a>                 (const <a href="glib-Unicode-Manipulation.html#gunichar2">gunichar2</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> len,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_read,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_written,                                             <a href="glib-Error-Reporting.html#GError">GError</a> **error);<a href="glib-Unicode-Manipulation.html#gunichar2">gunichar2</a>*  <a href="glib-Unicode-Manipulation.html#g-ucs4-to-utf16">g_ucs4_to_utf16</a>                 (const <a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> len,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_read,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_written,                                             <a href="glib-Error-Reporting.html#GError">GError</a> **error);<a href="glib-Basic-Types.html#gchar">gchar</a>*      <a href="glib-Unicode-Manipulation.html#g-ucs4-to-utf8">g_ucs4_to_utf8</a>                  (const <a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> *str,                                             <a href="glib-Basic-Types.html#glong">glong</a> len,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_read,                                             <a href="glib-Basic-Types.html#glong">glong</a> *items_written,                                             <a href="glib-Error-Reporting.html#GError">GError</a> **error);<a href="glib-Basic-Types.html#gint">gint</a>        <a href="glib-Unicode-Manipulation.html#g-unichar-to-utf8">g_unichar_to_utf8</a>               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c,                                             <a href="glib-Basic-Types.html#gchar">gchar</a> *outbuf);</pre></div><div class="refsect1" lang="en"><a name="id2971064"></a><h2>Description</h2><p>This section describes a number of functions for dealing withUnicode characters and strings.  There are analogues of thetraditional <code class="filename">ctype.h</code> character classificationand case conversion functions, UTF-8 analogues of some string utility functions, functions to perform normalization, case conversion andcollation on UTF-8 strings and finally functions to convert betweenthe UTF-8, UTF-16 and UCS-4 encodings of Unicode.</p></div><div class="refsect1" lang="en"><a name="id2971087"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2971093"></a><h3><a name="gunichar"></a>gunichar</h3><a class="indexterm" name="id2971103"></a><pre class="programlisting">typedef guint32 gunichar;</pre><p>A type which can hold any UCS-4 character code. </p></div><hr><div class="refsect2" lang="en"><a name="id2971119"></a><h3><a name="gunichar2"></a>gunichar2</h3><a class="indexterm" name="id2971129"></a><pre class="programlisting">typedef guint16 gunichar2;</pre><p>A type which can hold any UTF-16 character code. </p></div><hr><div class="refsect2" lang="en"><a name="id2971145"></a><h3><a name="g-unichar-validate"></a>g_unichar_validate ()</h3><a class="indexterm" name="id2971156"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gboolean">gboolean</a>    g_unichar_validate              (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> ch);</pre><p>Checks whether <em class="parameter"><code>ch</code></em> is a valid Unicode character. Some possibleinteger values of <em class="parameter"><code>ch</code></em> will not be valid. 0 is considered a validcharacter, though it's normally a string terminator.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>ch</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 <em class="parameter"><code>ch</code></em> is a valid Unicode character</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2971242"></a><h3><a name="g-unichar-isalnum"></a>g_unichar_isalnum ()</h3><a class="indexterm" name="id2971253"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gboolean">gboolean</a>    g_unichar_isalnum               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Determines whether a character is alphanumeric.Given some UTF-8 text, obtain a character valuewith <a href="glib-Unicode-Manipulation.html#g-utf8-get-char"><code class="function">g_utf8_get_char()</code></a>.</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 <em class="parameter"><code>c</code></em> is an alphanumeric character</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2971336"></a><h3><a name="g-unichar-isalpha"></a>g_unichar_isalpha ()</h3><a class="indexterm" name="id2971347"></a><pre class="programlisting"><a href="glib-Basic-Types.html#gboolean">gboolean</a>    g_unichar_isalpha               (<a href="glib-Unicode-Manipulation.html#gunichar">gunichar</a> c);</pre><p>Determines whether a character is alphabetic (i.e. a letter).Given some UTF-8 text, obtain a character value with<a href="glib-Unicode-Manipulation.html#g-utf8-get-char"><code class="function">g_utf8_get_char()</code></a>.</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 <em class="parameter"><code>c</code></em> is an alphabetic character</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en">

⌨️ 快捷键说明

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