📄 glib-unicode-manipulation.html
字号:
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 from the Unicode specification.See <a class="ulink" href="http://www.unicode.org/Public/UNIDATA/UnicodeData.html" target="_top">http://www.unicode.org/Public/UNIDATA/UnicodeData.html</a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a name="G-UNICODE-CONTROL:CAPS"></a><code class="literal">G_UNICODE_CONTROL</code></span></p></td><td>General category "Other, Control" (Cc)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-FORMAT:CAPS"></a><code class="literal">G_UNICODE_FORMAT</code></span></p></td><td>General category "Other, Format" (Cf)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-UNASSIGNED:CAPS"></a><code class="literal">G_UNICODE_UNASSIGNED</code></span></p></td><td>General category "Other, Not Assigned" (Cn)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-PRIVATE-USE:CAPS"></a><code class="literal">G_UNICODE_PRIVATE_USE</code></span></p></td><td>General category "Other, Private Use" (Co)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-SURROGATE:CAPS"></a><code class="literal">G_UNICODE_SURROGATE</code></span></p></td><td>General category "Other, Surrogate" (Cs)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-LOWERCASE-LETTER:CAPS"></a><code class="literal">G_UNICODE_LOWERCASE_LETTER</code></span></p></td><td>General category "Letter, Lowercase" (Ll)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-MODIFIER-LETTER:CAPS"></a><code class="literal">G_UNICODE_MODIFIER_LETTER</code></span></p></td><td>General category "Letter, Modifier" (Lm)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-OTHER-LETTER:CAPS"></a><code class="literal">G_UNICODE_OTHER_LETTER</code></span></p></td><td>General category "Letter, Other" (Lo)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-TITLECASE-LETTER:CAPS"></a><code class="literal">G_UNICODE_TITLECASE_LETTER</code></span></p></td><td>General category "Letter, Titlecase" (Lt)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-UPPERCASE-LETTER:CAPS"></a><code class="literal">G_UNICODE_UPPERCASE_LETTER</code></span></p></td><td>General category "Letter, Uppercase" (Lu)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-COMBINING-MARK:CAPS"></a><code class="literal">G_UNICODE_COMBINING_MARK</code></span></p></td><td>General category "Mark, Spacing Combining" (Mc)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-ENCLOSING-MARK:CAPS"></a><code class="literal">G_UNICODE_ENCLOSING_MARK</code></span></p></td><td>General category "Mark, Enclosing" (Me)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-NON-SPACING-MARK:CAPS"></a><code class="literal">G_UNICODE_NON_SPACING_MARK</code></span></p></td><td>General category "Mark, Nonspacing" (Mn)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-DECIMAL-NUMBER:CAPS"></a><code class="literal">G_UNICODE_DECIMAL_NUMBER</code></span></p></td><td>General category "Number, Decimal Digit" (Nd)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-LETTER-NUMBER:CAPS"></a><code class="literal">G_UNICODE_LETTER_NUMBER</code></span></p></td><td>General category "Number, Letter" (Nl)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-OTHER-NUMBER:CAPS"></a><code class="literal">G_UNICODE_OTHER_NUMBER</code></span></p></td><td>General category "Number, Other" (No)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-CONNECT-PUNCTUATION:CAPS"></a><code class="literal">G_UNICODE_CONNECT_PUNCTUATION</code></span></p></td><td>General category "Punctuation, Connector" (Pc)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-DASH-PUNCTUATION:CAPS"></a><code class="literal">G_UNICODE_DASH_PUNCTUATION</code></span></p></td><td>General category "Punctuation, Dash" (Pd)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-CLOSE-PUNCTUATION:CAPS"></a><code class="literal">G_UNICODE_CLOSE_PUNCTUATION</code></span></p></td><td>General category "Punctuation, Close" (Pe)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-FINAL-PUNCTUATION:CAPS"></a><code class="literal">G_UNICODE_FINAL_PUNCTUATION</code></span></p></td><td>General category "Punctuation, Final quote" (Pf)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-INITIAL-PUNCTUATION:CAPS"></a><code class="literal">G_UNICODE_INITIAL_PUNCTUATION</code></span></p></td><td>General category "Punctuation, Initial quote" (Pi)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-OTHER-PUNCTUATION:CAPS"></a><code class="literal">G_UNICODE_OTHER_PUNCTUATION</code></span></p></td><td>General category "Punctuation, Other" (Po)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-OPEN-PUNCTUATION:CAPS"></a><code class="literal">G_UNICODE_OPEN_PUNCTUATION</code></span></p></td><td>General category "Punctuation, Open" (Ps)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-CURRENCY-SYMBOL:CAPS"></a><code class="literal">G_UNICODE_CURRENCY_SYMBOL</code></span></p></td><td>General category "Symbol, Currency" (Sc)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-MODIFIER-SYMBOL:CAPS"></a><code class="literal">G_UNICODE_MODIFIER_SYMBOL</code></span></p></td><td>General category "Symbol, Modifier" (Sk)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-MATH-SYMBOL:CAPS"></a><code class="literal">G_UNICODE_MATH_SYMBOL</code></span></p></td><td>General category "Symbol, Math" (Sm)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-OTHER-SYMBOL:CAPS"></a><code class="literal">G_UNICODE_OTHER_SYMBOL</code></span></p></td><td>General category "Symbol, Other" (So)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-LINE-SEPARATOR:CAPS"></a><code class="literal">G_UNICODE_LINE_SEPARATOR</code></span></p></td><td>General category "Separator, Line" (Zl)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-PARAGRAPH-SEPARATOR:CAPS"></a><code class="literal">G_UNICODE_PARAGRAPH_SEPARATOR</code></span></p></td><td>General category "Separator, Paragraph" (Zp)</td></tr><tr><td><p><span class="term"><a name="G-UNICODE-SPACE-SEPARATOR:CAPS"></a><code class="literal">G_UNICODE_SPACE_SEPARATOR</code></span></p></td><td>General category "Separator, Space" (Zs)</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3003649"></a><h3><a name="g-unichar-type"></a>g_unichar_type ()</h3><a class="indexterm" name="id3003662"></a><pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#GUnicodeType">GUnicodeType</a> g_unichar_type (<a class="link" 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><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td><td> a Unicode character</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the type of the character.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3003722"></a><h3><a name="GUnicodeBreakType"></a>enum GUnicodeBreakType</h3><a class="indexterm" name="id3003736"></a><pre class="programlisting">typedef enum{ G_UNICODE_BREAK_MANDATORY, G_UNICODE_BREAK_CARRIAGE_RETURN, G_UNICODE_BREAK_LINE_FEED, G_UNICODE_BREAK_COMBINING_MARK, G_UNICODE_BREAK_SURROGATE, G_UNICODE_BREAK_ZERO_WIDTH_SPACE, G_UNICODE_BREAK_INSEPARABLE, G_UNICODE_BREAK_NON_BREAKING_GLUE, G_UNICODE_BREAK_CONTINGENT, G_UNICODE_BREAK_SPACE, G_UNICODE_BREAK_AFTER, G_UNICODE_BREAK_BEFORE, G_UNICODE_BREAK_BEFORE_AND_AFTER, G_UNICODE_BREAK_HYPHEN, G_UNICODE_BREAK_NON_STARTER, G_UNICODE_BREAK_OPEN_PUNCTUATION, G_UNICODE_BREAK_CLOSE_PUNCTUATI
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -