1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
3 <!-- Created on September, 1 2014 by texi2html 1.78a -->
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>
9 Maintained by: Many creative people.
10 Send bugs and suggestions to <texi2html-bug@nongnu.org>
14 <title>GNU libunistring: 8. Unicode character classification and properties <unictype.h></title>
16 <meta name="description" content="GNU libunistring: 8. Unicode character classification and properties <unictype.h>">
17 <meta name="keywords" content="GNU libunistring: 8. Unicode character classification and properties <unictype.h>">
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">
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}
42 <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
44 <table cellpadding="1" cellspacing="1" border="0">
45 <tr><td valign="middle" align="left">[<a href="libunistring_7.html#SEC19" title="Beginning of this chapter or previous chapter"> << </a>]</td>
46 <td valign="middle" align="left">[<a href="libunistring_9.html#SEC40" title="Next chapter"> >> </a>]</td>
47 <td valign="middle" align="left"> </td>
48 <td valign="middle" align="left"> </td>
49 <td valign="middle" align="left"> </td>
50 <td valign="middle" align="left"> </td>
51 <td valign="middle" align="left"> </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>
59 <a name="unictype_002eh"></a>
61 <h1 class="chapter"> <a href="libunistring.html#TOC20">8. Unicode character classification and properties <code><unictype.h></code></a> </h1>
63 <p>This include file declares functions that classify Unicode characters
64 and that test whether Unicode characters have specific properties.
66 <p>The classification assigns a “general category” to every Unicode
67 character. This is similar to the classification provided by ISO C in
68 <code><wctype.h></code>.
70 <p>Properties are the data that guides various text processing algorithms
71 in the presence of specific Unicode characters.
75 <a name="General-category"></a>
77 <h2 class="section"> <a href="libunistring.html#TOC21">8.1 General category</a> </h2>
79 <p>Every Unicode character or code point has a <em>general category</em> assigned
80 to it. This classification is important for most algorithms that work on
83 <p>The GNU libunistring library provides two kinds of API for working with
84 general categories. The object oriented API uses a variable to denote
85 every predefined general category value or combinations thereof. The
86 low-level API uses a bit mask instead. The advantage of the object oriented
87 API is that if only a few predefined general category values are used,
88 the data tables are relatively small. When you combine general category
89 values (using <code>uc_general_category_or</code>, <code>uc_general_category_and</code>,
90 or <code>uc_general_category_and_not</code>), or when you use the low level
91 bit masks, a big table is used thats holds the complete general category
92 information for all Unicode characters.
96 <a name="Object-oriented-API"></a>
98 <h3 class="subsection"> <a href="libunistring.html#TOC22">8.1.1 The object oriented API for general category</a> </h3>
101 <dt><u>Type:</u> <b>uc_general_category_t</b>
102 <a name="IDX241"></a>
104 <dd><p>This data type denotes a general category value. It is an immediate type that
105 can be copied by simple assignment, without involving memory allocation. It is
109 <p>The following are the predefined general category value. Additional general
110 categories may be added in the future.
113 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_L</b>
114 <a name="IDX242"></a>
116 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_LC</b>
117 <a name="IDX243"></a>
119 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Lu</b>
120 <a name="IDX244"></a>
122 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Ll</b>
123 <a name="IDX245"></a>
125 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Lt</b>
126 <a name="IDX246"></a>
128 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Lm</b>
129 <a name="IDX247"></a>
131 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Lo</b>
132 <a name="IDX248"></a>
134 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_M</b>
135 <a name="IDX249"></a>
137 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Mn</b>
138 <a name="IDX250"></a>
140 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Mc</b>
141 <a name="IDX251"></a>
143 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Me</b>
144 <a name="IDX252"></a>
146 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_N</b>
147 <a name="IDX253"></a>
149 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Nd</b>
150 <a name="IDX254"></a>
152 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Nl</b>
153 <a name="IDX255"></a>
155 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_No</b>
156 <a name="IDX256"></a>
158 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_P</b>
159 <a name="IDX257"></a>
161 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Pc</b>
162 <a name="IDX258"></a>
164 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Pd</b>
165 <a name="IDX259"></a>
167 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Ps</b>
168 <a name="IDX260"></a>
170 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Pe</b>
171 <a name="IDX261"></a>
173 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Pi</b>
174 <a name="IDX262"></a>
176 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Pf</b>
177 <a name="IDX263"></a>
179 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Po</b>
180 <a name="IDX264"></a>
182 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_S</b>
183 <a name="IDX265"></a>
185 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Sm</b>
186 <a name="IDX266"></a>
188 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Sc</b>
189 <a name="IDX267"></a>
191 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Sk</b>
192 <a name="IDX268"></a>
194 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_So</b>
195 <a name="IDX269"></a>
197 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Z</b>
198 <a name="IDX270"></a>
200 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Zs</b>
201 <a name="IDX271"></a>
203 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Zl</b>
204 <a name="IDX272"></a>
206 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Zp</b>
207 <a name="IDX273"></a>
209 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_C</b>
210 <a name="IDX274"></a>
212 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Cc</b>
213 <a name="IDX275"></a>
215 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Cf</b>
216 <a name="IDX276"></a>
218 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Cs</b>
219 <a name="IDX277"></a>
221 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Co</b>
222 <a name="IDX278"></a>
224 <dt><u>Constant:</u> uc_general_category_t <b>UC_CATEGORY_Cn</b>
225 <a name="IDX279"></a>
229 <p>The following are alias names for predefined General category values.
232 <dt><u>Macro:</u> uc_general_category_t <b>UC_LETTER</b>
233 <a name="IDX280"></a>
235 <dd><p>This is another name for <code>UC_CATEGORY_L</code>.
239 <dt><u>Macro:</u> uc_general_category_t <b>UC_CASED_LETTER</b>
240 <a name="IDX281"></a>
242 <dd><p>This is another name for <code>UC_CATEGORY_LC</code>.
246 <dt><u>Macro:</u> uc_general_category_t <b>UC_UPPERCASE_LETTER</b>
247 <a name="IDX282"></a>
249 <dd><p>This is another name for <code>UC_CATEGORY_Lu</code>.
253 <dt><u>Macro:</u> uc_general_category_t <b>UC_LOWERCASE_LETTER</b>
254 <a name="IDX283"></a>
256 <dd><p>This is another name for <code>UC_CATEGORY_Ll</code>.
260 <dt><u>Macro:</u> uc_general_category_t <b>UC_TITLECASE_LETTER</b>
261 <a name="IDX284"></a>
263 <dd><p>This is another name for <code>UC_CATEGORY_Lt</code>.
267 <dt><u>Macro:</u> uc_general_category_t <b>UC_MODIFIER_LETTER</b>
268 <a name="IDX285"></a>
270 <dd><p>This is another name for <code>UC_CATEGORY_Lm</code>.
274 <dt><u>Macro:</u> uc_general_category_t <b>UC_OTHER_LETTER</b>
275 <a name="IDX286"></a>
277 <dd><p>This is another name for <code>UC_CATEGORY_Lo</code>.
281 <dt><u>Macro:</u> uc_general_category_t <b>UC_MARK</b>
282 <a name="IDX287"></a>
284 <dd><p>This is another name for <code>UC_CATEGORY_M</code>.
288 <dt><u>Macro:</u> uc_general_category_t <b>UC_NON_SPACING_MARK</b>
289 <a name="IDX288"></a>
291 <dd><p>This is another name for <code>UC_CATEGORY_Mn</code>.
295 <dt><u>Macro:</u> uc_general_category_t <b>UC_COMBINING_SPACING_MARK</b>
296 <a name="IDX289"></a>
298 <dd><p>This is another name for <code>UC_CATEGORY_Mc</code>.
302 <dt><u>Macro:</u> uc_general_category_t <b>UC_ENCLOSING_MARK</b>
303 <a name="IDX290"></a>
305 <dd><p>This is another name for <code>UC_CATEGORY_Me</code>.
309 <dt><u>Macro:</u> uc_general_category_t <b>UC_NUMBER</b>
310 <a name="IDX291"></a>
312 <dd><p>This is another name for <code>UC_CATEGORY_N</code>.
316 <dt><u>Macro:</u> uc_general_category_t <b>UC_DECIMAL_DIGIT_NUMBER</b>
317 <a name="IDX292"></a>
319 <dd><p>This is another name for <code>UC_CATEGORY_Nd</code>.
323 <dt><u>Macro:</u> uc_general_category_t <b>UC_LETTER_NUMBER</b>
324 <a name="IDX293"></a>
326 <dd><p>This is another name for <code>UC_CATEGORY_Nl</code>.
330 <dt><u>Macro:</u> uc_general_category_t <b>UC_OTHER_NUMBER</b>
331 <a name="IDX294"></a>
333 <dd><p>This is another name for <code>UC_CATEGORY_No</code>.
337 <dt><u>Macro:</u> uc_general_category_t <b>UC_PUNCTUATION</b>
338 <a name="IDX295"></a>
340 <dd><p>This is another name for <code>UC_CATEGORY_P</code>.
344 <dt><u>Macro:</u> uc_general_category_t <b>UC_CONNECTOR_PUNCTUATION</b>
345 <a name="IDX296"></a>
347 <dd><p>This is another name for <code>UC_CATEGORY_Pc</code>.
351 <dt><u>Macro:</u> uc_general_category_t <b>UC_DASH_PUNCTUATION</b>
352 <a name="IDX297"></a>
354 <dd><p>This is another name for <code>UC_CATEGORY_Pd</code>.
358 <dt><u>Macro:</u> uc_general_category_t <b>UC_OPEN_PUNCTUATION</b>
359 <a name="IDX298"></a>
361 <dd><p>This is another name for <code>UC_CATEGORY_Ps</code> (“start punctuation”).
365 <dt><u>Macro:</u> uc_general_category_t <b>UC_CLOSE_PUNCTUATION</b>
366 <a name="IDX299"></a>
368 <dd><p>This is another name for <code>UC_CATEGORY_Pe</code> (“end punctuation”).
372 <dt><u>Macro:</u> uc_general_category_t <b>UC_INITIAL_QUOTE_PUNCTUATION</b>
373 <a name="IDX300"></a>
375 <dd><p>This is another name for <code>UC_CATEGORY_Pi</code>.
379 <dt><u>Macro:</u> uc_general_category_t <b>UC_FINAL_QUOTE_PUNCTUATION</b>
380 <a name="IDX301"></a>
382 <dd><p>This is another name for <code>UC_CATEGORY_Pf</code>.
386 <dt><u>Macro:</u> uc_general_category_t <b>UC_OTHER_PUNCTUATION</b>
387 <a name="IDX302"></a>
389 <dd><p>This is another name for <code>UC_CATEGORY_Po</code>.
393 <dt><u>Macro:</u> uc_general_category_t <b>UC_SYMBOL</b>
394 <a name="IDX303"></a>
396 <dd><p>This is another name for <code>UC_CATEGORY_S</code>.
400 <dt><u>Macro:</u> uc_general_category_t <b>UC_MATH_SYMBOL</b>
401 <a name="IDX304"></a>
403 <dd><p>This is another name for <code>UC_CATEGORY_Sm</code>.
407 <dt><u>Macro:</u> uc_general_category_t <b>UC_CURRENCY_SYMBOL</b>
408 <a name="IDX305"></a>
410 <dd><p>This is another name for <code>UC_CATEGORY_Sc</code>.
414 <dt><u>Macro:</u> uc_general_category_t <b>UC_MODIFIER_SYMBOL</b>
415 <a name="IDX306"></a>
417 <dd><p>This is another name for <code>UC_CATEGORY_Sk</code>.
421 <dt><u>Macro:</u> uc_general_category_t <b>UC_OTHER_SYMBOL</b>
422 <a name="IDX307"></a>
424 <dd><p>This is another name for <code>UC_CATEGORY_So</code>.
428 <dt><u>Macro:</u> uc_general_category_t <b>UC_SEPARATOR</b>
429 <a name="IDX308"></a>
431 <dd><p>This is another name for <code>UC_CATEGORY_Z</code>.
435 <dt><u>Macro:</u> uc_general_category_t <b>UC_SPACE_SEPARATOR</b>
436 <a name="IDX309"></a>
438 <dd><p>This is another name for <code>UC_CATEGORY_Zs</code>.
442 <dt><u>Macro:</u> uc_general_category_t <b>UC_LINE_SEPARATOR</b>
443 <a name="IDX310"></a>
445 <dd><p>This is another name for <code>UC_CATEGORY_Zl</code>.
449 <dt><u>Macro:</u> uc_general_category_t <b>UC_PARAGRAPH_SEPARATOR</b>
450 <a name="IDX311"></a>
452 <dd><p>This is another name for <code>UC_CATEGORY_Zp</code>.
456 <dt><u>Macro:</u> uc_general_category_t <b>UC_OTHER</b>
457 <a name="IDX312"></a>
459 <dd><p>This is another name for <code>UC_CATEGORY_C</code>.
463 <dt><u>Macro:</u> uc_general_category_t <b>UC_CONTROL</b>
464 <a name="IDX313"></a>
466 <dd><p>This is another name for <code>UC_CATEGORY_Cc</code>.
470 <dt><u>Macro:</u> uc_general_category_t <b>UC_FORMAT</b>
471 <a name="IDX314"></a>
473 <dd><p>This is another name for <code>UC_CATEGORY_Cf</code>.
477 <dt><u>Macro:</u> uc_general_category_t <b>UC_SURROGATE</b>
478 <a name="IDX315"></a>
480 <dd><p>This is another name for <code>UC_CATEGORY_Cs</code>. All code points in this
481 category are invalid characters.
485 <dt><u>Macro:</u> uc_general_category_t <b>UC_PRIVATE_USE</b>
486 <a name="IDX316"></a>
488 <dd><p>This is another name for <code>UC_CATEGORY_Co</code>.
492 <dt><u>Macro:</u> uc_general_category_t <b>UC_UNASSIGNED</b>
493 <a name="IDX317"></a>
495 <dd><p>This is another name for <code>UC_CATEGORY_Cn</code>. Some code points in this
496 category are invalid characters.
499 <p>The following functions combine general categories, like in a boolean algebra,
500 except that there is no ‘<samp>not</samp>’ operation.
503 <dt><u>Function:</u> uc_general_category_t <b>uc_general_category_or</b><i> (uc_general_category_t <var>category1</var>, uc_general_category_t <var>category2</var>)</i>
504 <a name="IDX318"></a>
506 <dd><p>Returns the union of two general categories.
507 This corresponds to the unions of the two sets of characters.
511 <dt><u>Function:</u> uc_general_category_t <b>uc_general_category_and</b><i> (uc_general_category_t <var>category1</var>, uc_general_category_t <var>category2</var>)</i>
512 <a name="IDX319"></a>
514 <dd><p>Returns the intersection of two general categories as bit masks.
515 This <em>does not</em> correspond to the intersection of the two sets of
520 <dt><u>Function:</u> uc_general_category_t <b>uc_general_category_and_not</b><i> (uc_general_category_t <var>category1</var>, uc_general_category_t <var>category2</var>)</i>
521 <a name="IDX320"></a>
523 <dd><p>Returns the intersection of a general category with the complement of a
524 second general category, as bit masks.
525 This <em>does not</em> correspond to the intersection with complement, when
526 viewing the categories as sets of characters.
529 <p>The following functions associate general categories with their name.
532 <dt><u>Function:</u> const char * <b>uc_general_category_name</b><i> (uc_general_category_t <var>category</var>)</i>
533 <a name="IDX321"></a>
535 <dd><p>Returns the name of a general category, more precisely, the abbreviated name.
536 Returns NULL if the general category corresponds to a bit mask that does not
541 <dt><u>Function:</u> const char * <b>uc_general_category_long_name</b><i> (uc_general_category_t <var>category</var>)</i>
542 <a name="IDX322"></a>
544 <dd><p>Returns the long name of a general category.
545 Returns NULL if the general category corresponds to a bit mask that does not
550 <dt><u>Function:</u> uc_general_category_t <b>uc_general_category_byname</b><i> (const char *<var>category_name</var>)</i>
551 <a name="IDX323"></a>
553 <dd><p>Returns the general category given by name, e.g. <code>"Lu"</code>, or by long
554 name, e.g. <code>"Uppercase Letter"</code>.
555 This lookup ignores spaces, underscores, or hyphens as word separators and is
559 <p>The following functions view general categories as sets of Unicode characters.
562 <dt><u>Function:</u> uc_general_category_t <b>uc_general_category</b><i> (ucs4_t <var>uc</var>)</i>
563 <a name="IDX324"></a>
565 <dd><p>Returns the general category of a Unicode character.
567 <p>This function uses a big table.
571 <dt><u>Function:</u> bool <b>uc_is_general_category</b><i> (ucs4_t <var>uc</var>, uc_general_category_t <var>category</var>)</i>
572 <a name="IDX325"></a>
574 <dd><p>Tests whether a Unicode character belongs to a given category.
575 The <var>category</var> argument can be a predefined general category or the
576 combination of several predefined general categories.
580 <a name="Bit-mask-API"></a>
582 <h3 class="subsection"> <a href="libunistring.html#TOC23">8.1.2 The bit mask API for general category</a> </h3>
584 <p>The following are the predefined general category value as bit masks.
585 Additional general categories may be added in the future.
588 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_L</b>
589 <a name="IDX326"></a>
591 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_LC</b>
592 <a name="IDX327"></a>
594 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Lu</b>
595 <a name="IDX328"></a>
597 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Ll</b>
598 <a name="IDX329"></a>
600 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Lt</b>
601 <a name="IDX330"></a>
603 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Lm</b>
604 <a name="IDX331"></a>
606 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Lo</b>
607 <a name="IDX332"></a>
609 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_M</b>
610 <a name="IDX333"></a>
612 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Mn</b>
613 <a name="IDX334"></a>
615 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Mc</b>
616 <a name="IDX335"></a>
618 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Me</b>
619 <a name="IDX336"></a>
621 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_N</b>
622 <a name="IDX337"></a>
624 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Nd</b>
625 <a name="IDX338"></a>
627 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Nl</b>
628 <a name="IDX339"></a>
630 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_No</b>
631 <a name="IDX340"></a>
633 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_P</b>
634 <a name="IDX341"></a>
636 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Pc</b>
637 <a name="IDX342"></a>
639 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Pd</b>
640 <a name="IDX343"></a>
642 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Ps</b>
643 <a name="IDX344"></a>
645 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Pe</b>
646 <a name="IDX345"></a>
648 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Pi</b>
649 <a name="IDX346"></a>
651 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Pf</b>
652 <a name="IDX347"></a>
654 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Po</b>
655 <a name="IDX348"></a>
657 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_S</b>
658 <a name="IDX349"></a>
660 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Sm</b>
661 <a name="IDX350"></a>
663 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Sc</b>
664 <a name="IDX351"></a>
666 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Sk</b>
667 <a name="IDX352"></a>
669 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_So</b>
670 <a name="IDX353"></a>
672 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Z</b>
673 <a name="IDX354"></a>
675 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Zs</b>
676 <a name="IDX355"></a>
678 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Zl</b>
679 <a name="IDX356"></a>
681 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Zp</b>
682 <a name="IDX357"></a>
684 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_C</b>
685 <a name="IDX358"></a>
687 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Cc</b>
688 <a name="IDX359"></a>
690 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Cf</b>
691 <a name="IDX360"></a>
693 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Cs</b>
694 <a name="IDX361"></a>
696 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Co</b>
697 <a name="IDX362"></a>
699 <dt><u>Macro:</u> uint32_t <b>UC_CATEGORY_MASK_Cn</b>
700 <a name="IDX363"></a>
704 <p>The following function views general categories as sets of Unicode characters.
707 <dt><u>Function:</u> bool <b>uc_is_general_category_withtable</b><i> (ucs4_t <var>uc</var>, uint32_t <var>bitmask</var>)</i>
708 <a name="IDX364"></a>
710 <dd><p>Tests whether a Unicode character belongs to a given category.
711 The <var>bitmask</var> argument can be a predefined general category bitmask or the
712 combination of several predefined general category bitmasks.
714 <p>This function uses a big table comprising all general categories.
718 <a name="Canonical-combining-class"></a>
720 <h2 class="section"> <a href="libunistring.html#TOC24">8.2 Canonical combining class</a> </h2>
722 <p>Every Unicode character or code point has a <em>canonical combining class</em>
725 <p>What is the meaning of the canonical combining class? Essentially, it
726 indicates the priority with which a combining character is attached to its
727 base character. The characters for which the canonical combining class is 0
728 are the base characters, and the characters for which it is greater than 0 are
729 the combining characters. Combining characters are rendered
730 near/attached/around their base character, and combining characters with small
731 combining classes are attached "first" or "closer" to the base character.
733 <p>The canonical combining class of a character is a number in the range
734 0..255. The possible values are described in the Unicode Character Database
735 <a href="http://www.unicode.org/Public/UNIDATA/UCD.html">http://www.unicode.org/Public/UNIDATA/UCD.html</a>. The list here is
736 not definitive; more values can be added in future versions.
739 <dt><u>Constant:</u> int <b>UC_CCC_NR</b>
740 <a name="IDX365"></a>
742 <dd><p>The canonical combining class value for “Not Reordered” characters.
747 <dt><u>Constant:</u> int <b>UC_CCC_OV</b>
748 <a name="IDX366"></a>
750 <dd><p>The canonical combining class value for “Overlay” characters.
754 <dt><u>Constant:</u> int <b>UC_CCC_NK</b>
755 <a name="IDX367"></a>
757 <dd><p>The canonical combining class value for “Nukta” characters.
761 <dt><u>Constant:</u> int <b>UC_CCC_KV</b>
762 <a name="IDX368"></a>
764 <dd><p>The canonical combining class value for “Kana Voicing” characters.
768 <dt><u>Constant:</u> int <b>UC_CCC_VR</b>
769 <a name="IDX369"></a>
771 <dd><p>The canonical combining class value for “Virama” characters.
775 <dt><u>Constant:</u> int <b>UC_CCC_ATBL</b>
776 <a name="IDX370"></a>
778 <dd><p>The canonical combining class value for “Attached Below Left” characters.
782 <dt><u>Constant:</u> int <b>UC_CCC_ATB</b>
783 <a name="IDX371"></a>
785 <dd><p>The canonical combining class value for “Attached Below” characters.
789 <dt><u>Constant:</u> int <b>UC_CCC_ATA</b>
790 <a name="IDX372"></a>
792 <dd><p>The canonical combining class value for “Attached Above” characters.
796 <dt><u>Constant:</u> int <b>UC_CCC_ATAR</b>
797 <a name="IDX373"></a>
799 <dd><p>The canonical combining class value for “Attached Above Right” characters.
803 <dt><u>Constant:</u> int <b>UC_CCC_BL</b>
804 <a name="IDX374"></a>
806 <dd><p>The canonical combining class value for “Below Left” characters.
810 <dt><u>Constant:</u> int <b>UC_CCC_B</b>
811 <a name="IDX375"></a>
813 <dd><p>The canonical combining class value for “Below” characters.
817 <dt><u>Constant:</u> int <b>UC_CCC_BR</b>
818 <a name="IDX376"></a>
820 <dd><p>The canonical combining class value for “Below Right” characters.
824 <dt><u>Constant:</u> int <b>UC_CCC_L</b>
825 <a name="IDX377"></a>
827 <dd><p>The canonical combining class value for “Left” characters.
831 <dt><u>Constant:</u> int <b>UC_CCC_R</b>
832 <a name="IDX378"></a>
834 <dd><p>The canonical combining class value for “Right” characters.
838 <dt><u>Constant:</u> int <b>UC_CCC_AL</b>
839 <a name="IDX379"></a>
841 <dd><p>The canonical combining class value for “Above Left” characters.
845 <dt><u>Constant:</u> int <b>UC_CCC_A</b>
846 <a name="IDX380"></a>
848 <dd><p>The canonical combining class value for “Above” characters.
852 <dt><u>Constant:</u> int <b>UC_CCC_AR</b>
853 <a name="IDX381"></a>
855 <dd><p>The canonical combining class value for “Above Right” characters.
859 <dt><u>Constant:</u> int <b>UC_CCC_DB</b>
860 <a name="IDX382"></a>
862 <dd><p>The canonical combining class value for “Double Below” characters.
866 <dt><u>Constant:</u> int <b>UC_CCC_DA</b>
867 <a name="IDX383"></a>
869 <dd><p>The canonical combining class value for “Double Above” characters.
873 <dt><u>Constant:</u> int <b>UC_CCC_IS</b>
874 <a name="IDX384"></a>
876 <dd><p>The canonical combining class value for “Iota Subscript” characters.
879 <p>The following functions associate canonical combining classes with their name.
882 <dt><u>Function:</u> const char * <b>uc_combining_class_name</b><i> (int <var>ccc</var>)</i>
883 <a name="IDX385"></a>
885 <dd><p>Returns the name of a canonical combining class, more precisely, the
887 Returns NULL if the canonical combining class is a numeric value without a
892 <dt><u>Function:</u> const char * <b>uc_combining_class_long_name</b><i> (int <var>ccc</var>)</i>
893 <a name="IDX386"></a>
895 <dd><p>Returns the long name of a canonical combining class.
896 Returns NULL if the canonical combining class is a numeric value without a
901 <dt><u>Function:</u> int <b>uc_combining_class_byname</b><i> (const char *<var>ccc_name</var>)</i>
902 <a name="IDX387"></a>
904 <dd><p>Returns the canonical combining class given by name, e.g. <code>"BL"</code>, or by
905 long name, e.g. <code>"Below Left"</code>.
906 This lookup ignores spaces, underscores, or hyphens as word separators and is
910 <p>The following function looks up the canonical combining class of a character.
913 <dt><u>Function:</u> int <b>uc_combining_class</b><i> (ucs4_t <var>uc</var>)</i>
914 <a name="IDX388"></a>
916 <dd><p>Returns the canonical combining class of a Unicode character.
920 <a name="Bidi-class"></a>
922 <h2 class="section"> <a href="libunistring.html#TOC25">8.3 Bidi class</a> </h2>
924 <p>Every Unicode character or code point has a <em>bidi class</em> assigned to it.
925 Before Unicode 4.0, this concept was known as <em>bidirectional category</em>.
927 <p>The bidi class guides the bidirectional algorithm
928 (<a href="http://www.unicode.org/reports/tr9/">http://www.unicode.org/reports/tr9/</a>). The possible values are
932 <dt><u>Constant:</u> int <b>UC_BIDI_L</b>
933 <a name="IDX389"></a>
935 <dd><p>The bidi class for `Left-to-Right`” characters.
939 <dt><u>Constant:</u> int <b>UC_BIDI_LRE</b>
940 <a name="IDX390"></a>
942 <dd><p>The bidi class for “Left-to-Right Embedding” characters.
946 <dt><u>Constant:</u> int <b>UC_BIDI_LRO</b>
947 <a name="IDX391"></a>
949 <dd><p>The bidi class for “Left-to-Right Override” characters.
953 <dt><u>Constant:</u> int <b>UC_BIDI_R</b>
954 <a name="IDX392"></a>
956 <dd><p>The bidi class for “Right-to-Left” characters.
960 <dt><u>Constant:</u> int <b>UC_BIDI_AL</b>
961 <a name="IDX393"></a>
963 <dd><p>The bidi class for “Right-to-Left Arabic” characters.
967 <dt><u>Constant:</u> int <b>UC_BIDI_RLE</b>
968 <a name="IDX394"></a>
970 <dd><p>The bidi class for “Right-to-Left Embedding” characters.
974 <dt><u>Constant:</u> int <b>UC_BIDI_RLO</b>
975 <a name="IDX395"></a>
977 <dd><p>The bidi class for “Right-to-Left Override” characters.
981 <dt><u>Constant:</u> int <b>UC_BIDI_PDF</b>
982 <a name="IDX396"></a>
984 <dd><p>The bidi class for “Pop Directional Format” characters.
988 <dt><u>Constant:</u> int <b>UC_BIDI_EN</b>
989 <a name="IDX397"></a>
991 <dd><p>The bidi class for “European Number” characters.
995 <dt><u>Constant:</u> int <b>UC_BIDI_ES</b>
996 <a name="IDX398"></a>
998 <dd><p>The bidi class for “European Number Separator” characters.
1002 <dt><u>Constant:</u> int <b>UC_BIDI_ET</b>
1003 <a name="IDX399"></a>
1005 <dd><p>The bidi class for “European Number Terminator” characters.
1009 <dt><u>Constant:</u> int <b>UC_BIDI_AN</b>
1010 <a name="IDX400"></a>
1012 <dd><p>The bidi class for “Arabic Number” characters.
1016 <dt><u>Constant:</u> int <b>UC_BIDI_CS</b>
1017 <a name="IDX401"></a>
1019 <dd><p>The bidi class for “Common Number Separator” characters.
1023 <dt><u>Constant:</u> int <b>UC_BIDI_NSM</b>
1024 <a name="IDX402"></a>
1026 <dd><p>The bidi class for “Non-Spacing Mark” characters.
1030 <dt><u>Constant:</u> int <b>UC_BIDI_BN</b>
1031 <a name="IDX403"></a>
1033 <dd><p>The bidi class for “Boundary Neutral” characters.
1037 <dt><u>Constant:</u> int <b>UC_BIDI_B</b>
1038 <a name="IDX404"></a>
1040 <dd><p>The bidi class for “Paragraph Separator” characters.
1044 <dt><u>Constant:</u> int <b>UC_BIDI_S</b>
1045 <a name="IDX405"></a>
1047 <dd><p>The bidi class for “Segment Separator” characters.
1051 <dt><u>Constant:</u> int <b>UC_BIDI_WS</b>
1052 <a name="IDX406"></a>
1054 <dd><p>The bidi class for “Whitespace” characters.
1058 <dt><u>Constant:</u> int <b>UC_BIDI_ON</b>
1059 <a name="IDX407"></a>
1061 <dd><p>The bidi class for “Other Neutral” characters.
1064 <p>The following functions implement the association between a bidirectional
1065 category and its name.
1068 <dt><u>Function:</u> const char * <b>uc_bidi_class_name</b><i> (int <var>bidi_class</var>)</i>
1069 <a name="IDX408"></a>
1071 <dt><u>Function:</u> const char * <b>uc_bidi_category_name</b><i> (int <var>category</var>)</i>
1072 <a name="IDX409"></a>
1074 <dd><p>Returns the name of a bidi class, more precisely, the abbreviated name.
1078 <dt><u>Function:</u> const char * <b>uc_bidi_class_long_name</b><i> (int <var>bidi_class</var>)</i>
1079 <a name="IDX410"></a>
1081 <dd><p>Returns the long name of a bidi class.
1085 <dt><u>Function:</u> int <b>uc_bidi_class_byname</b><i> (const char *<var>bidi_class_name</var>)</i>
1086 <a name="IDX411"></a>
1088 <dt><u>Function:</u> int <b>uc_bidi_category_byname</b><i> (const char *<var>category_name</var>)</i>
1089 <a name="IDX412"></a>
1091 <dd><p>Returns the bidi class given by name, e.g. <code>"LRE"</code>, or by long name,
1092 e.g. <code>"Left-to-Right Embedding"</code>.
1093 This lookup ignores spaces, underscores, or hyphens as word separators and is
1097 <p>The following functions view bidirectional categories as sets of Unicode
1101 <dt><u>Function:</u> int <b>uc_bidi_class</b><i> (ucs4_t <var>uc</var>)</i>
1102 <a name="IDX413"></a>
1104 <dt><u>Function:</u> int <b>uc_bidi_category</b><i> (ucs4_t <var>uc</var>)</i>
1105 <a name="IDX414"></a>
1107 <dd><p>Returns the bidi class of a Unicode character.
1111 <dt><u>Function:</u> bool <b>uc_is_bidi_class</b><i> (ucs4_t <var>uc</var>, int <var>bidi_class</var>)</i>
1112 <a name="IDX415"></a>
1114 <dt><u>Function:</u> bool <b>uc_is_bidi_category</b><i> (ucs4_t <var>uc</var>, int <var>category</var>)</i>
1115 <a name="IDX416"></a>
1117 <dd><p>Tests whether a Unicode character belongs to a given bidi class.
1121 <a name="Decimal-digit-value"></a>
1122 <a name="SEC26"></a>
1123 <h2 class="section"> <a href="libunistring.html#TOC26">8.4 Decimal digit value</a> </h2>
1125 <p>Decimal digits (like the digits from ‘<samp>0</samp>’ to ‘<samp>9</samp>’) exist in many
1126 scripts. The following function converts a decimal digit character to its
1130 <dt><u>Function:</u> int <b>uc_decimal_value</b><i> (ucs4_t <var>uc</var>)</i>
1131 <a name="IDX417"></a>
1133 <dd><p>Returns the decimal digit value of a Unicode character.
1134 The return value is an integer in the range 0..9, or -1 for characters that
1135 do not represent a decimal digit.
1139 <a name="Digit-value"></a>
1140 <a name="SEC27"></a>
1141 <h2 class="section"> <a href="libunistring.html#TOC27">8.5 Digit value</a> </h2>
1143 <p>Digit characters are like decimal digit characters, possibly in special forms,
1144 like as superscript, subscript, or circled. The following function converts a
1145 digit character to its numerical value.
1148 <dt><u>Function:</u> int <b>uc_digit_value</b><i> (ucs4_t <var>uc</var>)</i>
1149 <a name="IDX418"></a>
1151 <dd><p>Returns the digit value of a Unicode character.
1152 The return value is an integer in the range 0..9, or -1 for characters that
1153 do not represent a digit.
1157 <a name="Numeric-value"></a>
1158 <a name="SEC28"></a>
1159 <h2 class="section"> <a href="libunistring.html#TOC28">8.6 Numeric value</a> </h2>
1161 <p>There are also characters that represent numbers without a digit system, like
1162 the Roman numerals, and fractional numbers, like 1/4 or 3/4.
1164 <p>The following type represents the numeric value of a Unicode character.
1166 <dt><u>Type:</u> <b>uc_fraction_t</b>
1167 <a name="IDX419"></a>
1169 <dd><p>This is a structure type with the following fields:
1170 </p><table><tr><td> </td><td><pre class="smallexample">int numerator;
1172 </pre></td></tr></table>
1173 <p>An integer <var>n</var> is represented by <code>numerator = <var>n</var></code>,
1174 <code>denominator = 1</code>.
1177 <p>The following function converts a number character to its numerical value.
1180 <dt><u>Function:</u> uc_fraction_t <b>uc_numeric_value</b><i> (ucs4_t <var>uc</var>)</i>
1181 <a name="IDX420"></a>
1183 <dd><p>Returns the numeric value of a Unicode character.
1184 The return value is a fraction, or the pseudo-fraction <code>{ 0, 0 }</code> for
1185 characters that do not represent a number.
1189 <a name="Mirrored-character"></a>
1190 <a name="SEC29"></a>
1191 <h2 class="section"> <a href="libunistring.html#TOC29">8.7 Mirrored character</a> </h2>
1193 <p>Character mirroring is used to associate the closing parenthesis character
1194 to the opening parenthesis character, the closing brace character with the
1195 opening brace character, and so on.
1197 <p>The following function looks up the mirrored character of a Unicode character.
1200 <dt><u>Function:</u> bool <b>uc_mirror_char</b><i> (ucs4_t <var>uc</var>, ucs4_t *<var>puc</var>)</i>
1201 <a name="IDX421"></a>
1203 <dd><p>Stores the mirrored character of a Unicode character <var>uc</var> in
1204 <code>*<var>puc</var></code> and returns <code>true</code>, if it exists. Otherwise it
1205 stores <var>uc</var> unmodified in <code>*<var>puc</var></code> and returns <code>false</code>.
1209 <a name="Arabic-shaping"></a>
1210 <a name="SEC30"></a>
1211 <h2 class="section"> <a href="libunistring.html#TOC30">8.8 Arabic shaping</a> </h2>
1213 <p>When Arabic characters are rendered, after bidi reordering has taken
1214 place, the shape of the glyphs are modified so that many adjacent glyphs
1215 are joined. Two character properties describe how this “Arabic shaping”
1216 takes place: the joining type and the joining group.
1220 <a name="Joining-type"></a>
1221 <a name="SEC31"></a>
1222 <h3 class="subsection"> <a href="libunistring.html#TOC31">8.8.1 Joining type of Arabic characters</a> </h3>
1224 <p>The joining type of a character describes on which of the left and right
1225 neighbour characters the character's shape depends, and which of the two
1226 neighbour characters are rendered depending on this character.
1228 <p>The joining type has the following possible values:
1231 <dt><u>Constant:</u> int <b>UC_JOINING_TYPE_U</b>
1232 <a name="IDX422"></a>
1234 <dd><p>“Non joining”: Characters of this joining type prohibit joining.
1238 <dt><u>Constant:</u> int <b>UC_JOINING_TYPE_T</b>
1239 <a name="IDX423"></a>
1241 <dd><p>“Transparent”: Characters of this joining type are skipped when
1242 considering joining.
1246 <dt><u>Constant:</u> int <b>UC_JOINING_TYPE_C</b>
1247 <a name="IDX424"></a>
1249 <dd><p>“Join causing”: Characters of this joining type cause their neighbour
1250 characters to change their shapes but don't change their own shape.
1254 <dt><u>Constant:</u> int <b>UC_JOINING_TYPE_L</b>
1255 <a name="IDX425"></a>
1257 <dd><p>“Left joining”: Characters of this joining type have two shapes,
1258 isolated and initial. Such characters currently don't exist.
1262 <dt><u>Constant:</u> int <b>UC_JOINING_TYPE_R</b>
1263 <a name="IDX426"></a>
1265 <dd><p>“Right joining”: Characters of this joining type have two shapes,
1270 <dt><u>Constant:</u> int <b>UC_JOINING_TYPE_D</b>
1271 <a name="IDX427"></a>
1273 <dd><p>“Dual joining”: Characters of this joining type have four shapes,
1274 initial, medial, final, and isolated.
1277 <p>The following functions implement the association between a joining type
1281 <dt><u>Function:</u> const char * <b>uc_joining_type_name</b><i> (int <var>joining_type</var>)</i>
1282 <a name="IDX428"></a>
1284 <dd><p>Returns the name of a joining type.
1288 <dt><u>Function:</u> const char * <b>uc_joining_type_long_name</b><i> (int <var>joining_type</var>)</i>
1289 <a name="IDX429"></a>
1291 <dd><p>Returns the long name of a joining type.
1295 <dt><u>Function:</u> int <b>uc_joining_type_byname</b><i> (const char *<var>joining_type_name</var>)</i>
1296 <a name="IDX430"></a>
1298 <dd><p>Returns the joining type given by name, e.g. <code>"D"</code>, or by long name,
1299 e.g. <code>"Dual Joining</code>.
1300 This lookup ignores spaces, underscores, or hyphens as word separators and is
1304 <p>The following function gives the joining type of every Unicode character.
1307 <dt><u>Function:</u> int <b>uc_joining_type</b><i> (ucs4_t <var>uc</var>)</i>
1308 <a name="IDX431"></a>
1310 <dd><p>Returns the joining type of a Unicode character.
1314 <a name="Joining-group"></a>
1315 <a name="SEC32"></a>
1316 <h3 class="subsection"> <a href="libunistring.html#TOC32">8.8.2 Joining group of Arabic characters</a> </h3>
1318 <p>The joining group of a character describes how the character's shape
1319 is modified in the four contexts of dual-joining characters or in the
1320 two contexts of right-joining characters.
1322 <p>The joining group has the following possible values:
1325 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_NONE</b>
1326 <a name="IDX432"></a>
1328 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_AIN</b>
1329 <a name="IDX433"></a>
1331 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_ALAPH</b>
1332 <a name="IDX434"></a>
1334 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_ALEF</b>
1335 <a name="IDX435"></a>
1337 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_BEH</b>
1338 <a name="IDX436"></a>
1340 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_BETH</b>
1341 <a name="IDX437"></a>
1343 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_BURUSHASKI_YEH_BARREE</b>
1344 <a name="IDX438"></a>
1346 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_DAL</b>
1347 <a name="IDX439"></a>
1349 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_DALATH_RISH</b>
1350 <a name="IDX440"></a>
1352 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_E</b>
1353 <a name="IDX441"></a>
1355 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_FARSI_YEH</b>
1356 <a name="IDX442"></a>
1358 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_FE</b>
1359 <a name="IDX443"></a>
1361 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_FEH</b>
1362 <a name="IDX444"></a>
1364 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_FINAL_SEMKATH</b>
1365 <a name="IDX445"></a>
1367 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_GAF</b>
1368 <a name="IDX446"></a>
1370 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_GAMAL</b>
1371 <a name="IDX447"></a>
1373 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_HAH</b>
1374 <a name="IDX448"></a>
1376 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_HE</b>
1377 <a name="IDX449"></a>
1379 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_HEH</b>
1380 <a name="IDX450"></a>
1382 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_HEH_GOAL</b>
1383 <a name="IDX451"></a>
1385 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_HETH</b>
1386 <a name="IDX452"></a>
1388 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_KAF</b>
1389 <a name="IDX453"></a>
1391 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_KAPH</b>
1392 <a name="IDX454"></a>
1394 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_KHAPH</b>
1395 <a name="IDX455"></a>
1397 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_KNOTTED_HEH</b>
1398 <a name="IDX456"></a>
1400 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_LAM</b>
1401 <a name="IDX457"></a>
1403 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_LAMADH</b>
1404 <a name="IDX458"></a>
1406 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_MEEM</b>
1407 <a name="IDX459"></a>
1409 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_MIM</b>
1410 <a name="IDX460"></a>
1412 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_NOON</b>
1413 <a name="IDX461"></a>
1415 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_NUN</b>
1416 <a name="IDX462"></a>
1418 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_NYA</b>
1419 <a name="IDX463"></a>
1421 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_PE</b>
1422 <a name="IDX464"></a>
1424 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_QAF</b>
1425 <a name="IDX465"></a>
1427 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_QAPH</b>
1428 <a name="IDX466"></a>
1430 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_REH</b>
1431 <a name="IDX467"></a>
1433 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_REVERSED_PE</b>
1434 <a name="IDX468"></a>
1436 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_SAD</b>
1437 <a name="IDX469"></a>
1439 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_SADHE</b>
1440 <a name="IDX470"></a>
1442 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_SEEN</b>
1443 <a name="IDX471"></a>
1445 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_SEMKATH</b>
1446 <a name="IDX472"></a>
1448 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_SHIN</b>
1449 <a name="IDX473"></a>
1451 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_SWASH_KAF</b>
1452 <a name="IDX474"></a>
1454 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_SYRIAC_WAW</b>
1455 <a name="IDX475"></a>
1457 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_TAH</b>
1458 <a name="IDX476"></a>
1460 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_TAW</b>
1461 <a name="IDX477"></a>
1463 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_TEH_MARBUTA</b>
1464 <a name="IDX478"></a>
1466 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_TEH_MARBUTA_GOAL</b>
1467 <a name="IDX479"></a>
1469 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_TETH</b>
1470 <a name="IDX480"></a>
1472 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_WAW</b>
1473 <a name="IDX481"></a>
1475 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_YEH</b>
1476 <a name="IDX482"></a>
1478 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_YEH_BARREE</b>
1479 <a name="IDX483"></a>
1481 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_YEH_WITH_TAIL</b>
1482 <a name="IDX484"></a>
1484 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_YUDH</b>
1485 <a name="IDX485"></a>
1487 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_YUDH_HE</b>
1488 <a name="IDX486"></a>
1490 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_ZAIN</b>
1491 <a name="IDX487"></a>
1493 <dt><u>Constant:</u> int <b>UC_JOINING_GROUP_ZHAIN</b>
1494 <a name="IDX488"></a>
1498 <p>The following functions implement the association between a joining group
1502 <dt><u>Function:</u> const char * <b>uc_joining_group_name</b><i> (int <var>joining_group</var>)</i>
1503 <a name="IDX489"></a>
1505 <dd><p>Returns the name of a joining group.
1509 <dt><u>Function:</u> int <b>uc_joining_group_byname</b><i> (const char *<var>joining_group_name</var>)</i>
1510 <a name="IDX490"></a>
1512 <dd><p>Returns the joining group given by name, e.g. <code>"Teh_Marbuta"</code>.
1513 This lookup ignores spaces, underscores, or hyphens as word separators and is
1517 <p>The following function gives the joining group of every Unicode character.
1520 <dt><u>Function:</u> int <b>uc_joining_group</b><i> (ucs4_t <var>uc</var>)</i>
1521 <a name="IDX491"></a>
1523 <dd><p>Returns the joining group of a Unicode character.
1527 <a name="Properties"></a>
1528 <a name="SEC33"></a>
1529 <h2 class="section"> <a href="libunistring.html#TOC33">8.9 Properties</a> </h2>
1531 <p>This section defines boolean properties of Unicode characters. This
1532 means, a character either has the given property or does not have it.
1533 In other words, the property can be viewed as a subset of the set of
1536 <p>The GNU libunistring library provides two kinds of API for working with
1537 properties. The object oriented API uses a type <code>uc_property_t</code>
1538 to designate a property. In the function-based API, which is a bit more
1539 low level, a property is merely a function.
1543 <a name="Properties-as-objects"></a>
1544 <a name="SEC34"></a>
1545 <h3 class="subsection"> <a href="libunistring.html#TOC34">8.9.1 Properties as objects – the object oriented API</a> </h3>
1547 <p>The following type designates a property on Unicode characters.
1550 <dt><u>Type:</u> <b>uc_property_t</b>
1551 <a name="IDX492"></a>
1553 <dd><p>This data type denotes a boolean property on Unicode characters. It is an
1554 immediate type that can be copied by simple assignment, without involving
1555 memory allocation. It is not an array type.
1558 <p>Many Unicode properties are predefined.
1560 <p>The following are general properties.
1563 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_WHITE_SPACE</b>
1564 <a name="IDX493"></a>
1566 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_ALPHABETIC</b>
1567 <a name="IDX494"></a>
1569 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_ALPHABETIC</b>
1570 <a name="IDX495"></a>
1572 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_NOT_A_CHARACTER</b>
1573 <a name="IDX496"></a>
1575 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_DEFAULT_IGNORABLE_CODE_POINT</b>
1576 <a name="IDX497"></a>
1578 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_DEFAULT_IGNORABLE_CODE_POINT</b>
1579 <a name="IDX498"></a>
1581 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_DEPRECATED</b>
1582 <a name="IDX499"></a>
1584 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_LOGICAL_ORDER_EXCEPTION</b>
1585 <a name="IDX500"></a>
1587 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_VARIATION_SELECTOR</b>
1588 <a name="IDX501"></a>
1590 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_PRIVATE_USE</b>
1591 <a name="IDX502"></a>
1593 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_UNASSIGNED_CODE_VALUE</b>
1594 <a name="IDX503"></a>
1598 <p>The following properties are related to case folding.
1601 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_UPPERCASE</b>
1602 <a name="IDX504"></a>
1604 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_UPPERCASE</b>
1605 <a name="IDX505"></a>
1607 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_LOWERCASE</b>
1608 <a name="IDX506"></a>
1610 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_LOWERCASE</b>
1611 <a name="IDX507"></a>
1613 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_TITLECASE</b>
1614 <a name="IDX508"></a>
1616 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CASED</b>
1617 <a name="IDX509"></a>
1619 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CASE_IGNORABLE</b>
1620 <a name="IDX510"></a>
1622 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CHANGES_WHEN_LOWERCASED</b>
1623 <a name="IDX511"></a>
1625 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CHANGES_WHEN_UPPERCASED</b>
1626 <a name="IDX512"></a>
1628 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CHANGES_WHEN_TITLECASED</b>
1629 <a name="IDX513"></a>
1631 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CHANGES_WHEN_CASEFOLDED</b>
1632 <a name="IDX514"></a>
1634 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CHANGES_WHEN_CASEMAPPED</b>
1635 <a name="IDX515"></a>
1637 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_SOFT_DOTTED</b>
1638 <a name="IDX516"></a>
1642 <p>The following properties are related to identifiers.
1645 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_ID_START</b>
1646 <a name="IDX517"></a>
1648 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_ID_START</b>
1649 <a name="IDX518"></a>
1651 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_ID_CONTINUE</b>
1652 <a name="IDX519"></a>
1654 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_ID_CONTINUE</b>
1655 <a name="IDX520"></a>
1657 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_XID_START</b>
1658 <a name="IDX521"></a>
1660 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_XID_CONTINUE</b>
1661 <a name="IDX522"></a>
1663 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_PATTERN_WHITE_SPACE</b>
1664 <a name="IDX523"></a>
1666 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_PATTERN_SYNTAX</b>
1667 <a name="IDX524"></a>
1671 <p>The following properties have an influence on shaping and rendering.
1674 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_JOIN_CONTROL</b>
1675 <a name="IDX525"></a>
1677 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_GRAPHEME_BASE</b>
1678 <a name="IDX526"></a>
1680 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_GRAPHEME_EXTEND</b>
1681 <a name="IDX527"></a>
1683 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_GRAPHEME_EXTEND</b>
1684 <a name="IDX528"></a>
1686 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_GRAPHEME_LINK</b>
1687 <a name="IDX529"></a>
1691 <p>The following properties relate to bidirectional reordering.
1694 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_CONTROL</b>
1695 <a name="IDX530"></a>
1697 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_LEFT_TO_RIGHT</b>
1698 <a name="IDX531"></a>
1700 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_HEBREW_RIGHT_TO_LEFT</b>
1701 <a name="IDX532"></a>
1703 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_ARABIC_RIGHT_TO_LEFT</b>
1704 <a name="IDX533"></a>
1706 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_EUROPEAN_DIGIT</b>
1707 <a name="IDX534"></a>
1709 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_EUR_NUM_SEPARATOR</b>
1710 <a name="IDX535"></a>
1712 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_EUR_NUM_TERMINATOR</b>
1713 <a name="IDX536"></a>
1715 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_ARABIC_DIGIT</b>
1716 <a name="IDX537"></a>
1718 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_COMMON_SEPARATOR</b>
1719 <a name="IDX538"></a>
1721 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_BLOCK_SEPARATOR</b>
1722 <a name="IDX539"></a>
1724 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_SEGMENT_SEPARATOR</b>
1725 <a name="IDX540"></a>
1727 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_WHITESPACE</b>
1728 <a name="IDX541"></a>
1730 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_NON_SPACING_MARK</b>
1731 <a name="IDX542"></a>
1733 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_BOUNDARY_NEUTRAL</b>
1734 <a name="IDX543"></a>
1736 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_PDF</b>
1737 <a name="IDX544"></a>
1739 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_EMBEDDING_OR_OVERRIDE</b>
1740 <a name="IDX545"></a>
1742 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_BIDI_OTHER_NEUTRAL</b>
1743 <a name="IDX546"></a>
1747 <p>The following properties deal with number representations.
1750 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_HEX_DIGIT</b>
1751 <a name="IDX547"></a>
1753 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_ASCII_HEX_DIGIT</b>
1754 <a name="IDX548"></a>
1758 <p>The following properties deal with CJK.
1761 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_IDEOGRAPHIC</b>
1762 <a name="IDX549"></a>
1764 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_UNIFIED_IDEOGRAPH</b>
1765 <a name="IDX550"></a>
1767 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_RADICAL</b>
1768 <a name="IDX551"></a>
1770 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_IDS_BINARY_OPERATOR</b>
1771 <a name="IDX552"></a>
1773 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_IDS_TRINARY_OPERATOR</b>
1774 <a name="IDX553"></a>
1778 <p>Other miscellaneous properties are:
1781 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_ZERO_WIDTH</b>
1782 <a name="IDX554"></a>
1784 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_SPACE</b>
1785 <a name="IDX555"></a>
1787 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_NON_BREAK</b>
1788 <a name="IDX556"></a>
1790 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_ISO_CONTROL</b>
1791 <a name="IDX557"></a>
1793 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_FORMAT_CONTROL</b>
1794 <a name="IDX558"></a>
1796 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_DASH</b>
1797 <a name="IDX559"></a>
1799 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_HYPHEN</b>
1800 <a name="IDX560"></a>
1802 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_PUNCTUATION</b>
1803 <a name="IDX561"></a>
1805 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_LINE_SEPARATOR</b>
1806 <a name="IDX562"></a>
1808 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_PARAGRAPH_SEPARATOR</b>
1809 <a name="IDX563"></a>
1811 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_QUOTATION_MARK</b>
1812 <a name="IDX564"></a>
1814 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_SENTENCE_TERMINAL</b>
1815 <a name="IDX565"></a>
1817 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_TERMINAL_PUNCTUATION</b>
1818 <a name="IDX566"></a>
1820 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_CURRENCY_SYMBOL</b>
1821 <a name="IDX567"></a>
1823 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_MATH</b>
1824 <a name="IDX568"></a>
1826 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_OTHER_MATH</b>
1827 <a name="IDX569"></a>
1829 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_PAIRED_PUNCTUATION</b>
1830 <a name="IDX570"></a>
1832 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_LEFT_OF_PAIR</b>
1833 <a name="IDX571"></a>
1835 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_COMBINING</b>
1836 <a name="IDX572"></a>
1838 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_COMPOSITE</b>
1839 <a name="IDX573"></a>
1841 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_DECIMAL_DIGIT</b>
1842 <a name="IDX574"></a>
1844 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_NUMERIC</b>
1845 <a name="IDX575"></a>
1847 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_DIACRITIC</b>
1848 <a name="IDX576"></a>
1850 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_EXTENDER</b>
1851 <a name="IDX577"></a>
1853 <dt><u>Constant:</u> uc_property_t <b>UC_PROPERTY_IGNORABLE_CONTROL</b>
1854 <a name="IDX578"></a>
1858 <p>The following function looks up a property by its name.
1861 <dt><u>Function:</u> uc_property_t <b>uc_property_byname</b><i> (const char *<var>property_name</var>)</i>
1862 <a name="IDX579"></a>
1864 <dd><p>Returns the property given by name, e.g. <code>"White space"</code>. If a property
1865 with the given name exists, the result will satisfy the
1866 <code>uc_property_is_valid</code> predicate. Otherwise the result will not satisfy
1867 this predicate and must not be passed to functions that expect an
1868 <code>uc_property_t</code> argument.
1870 <p>This lookup ignores spaces, underscores, or hyphens as word separators, is
1871 case-insignificant, and supports the aliases listed in Unicode's
1872 ‘<tt>PropertyAliases.txt</tt>’ file.
1874 <p>This function references a big table of all predefined properties. Its use
1875 can significantly increase the size of your application.
1879 <dt><u>Function:</u> bool <b>uc_property_is_valid</b><i> (uc_property_t property)</i>
1880 <a name="IDX580"></a>
1882 <dd><p>Returns <code>true</code> when the given property is valid, or <code>false</code>
1886 <p>The following function views a property as a set of Unicode characters.
1889 <dt><u>Function:</u> bool <b>uc_is_property</b><i> (ucs4_t <var>uc</var>, uc_property_t <var>property</var>)</i>
1890 <a name="IDX581"></a>
1892 <dd><p>Tests whether the Unicode character <var>uc</var> has the given property.
1896 <a name="Properties-as-functions"></a>
1897 <a name="SEC35"></a>
1898 <h3 class="subsection"> <a href="libunistring.html#TOC35">8.9.2 Properties as functions – the functional API</a> </h3>
1900 <p>The following are general properties.
1903 <dt><u>Function:</u> bool <b>uc_is_property_white_space</b><i> (ucs4_t <var>uc</var>)</i>
1904 <a name="IDX582"></a>
1906 <dt><u>Function:</u> bool <b>uc_is_property_alphabetic</b><i> (ucs4_t <var>uc</var>)</i>
1907 <a name="IDX583"></a>
1909 <dt><u>Function:</u> bool <b>uc_is_property_other_alphabetic</b><i> (ucs4_t <var>uc</var>)</i>
1910 <a name="IDX584"></a>
1912 <dt><u>Function:</u> bool <b>uc_is_property_not_a_character</b><i> (ucs4_t <var>uc</var>)</i>
1913 <a name="IDX585"></a>
1915 <dt><u>Function:</u> bool <b>uc_is_property_default_ignorable_code_point</b><i> (ucs4_t <var>uc</var>)</i>
1916 <a name="IDX586"></a>
1918 <dt><u>Function:</u> bool <b>uc_is_property_other_default_ignorable_code_point</b><i> (ucs4_t <var>uc</var>)</i>
1919 <a name="IDX587"></a>
1921 <dt><u>Function:</u> bool <b>uc_is_property_deprecated</b><i> (ucs4_t <var>uc</var>)</i>
1922 <a name="IDX588"></a>
1924 <dt><u>Function:</u> bool <b>uc_is_property_logical_order_exception</b><i> (ucs4_t <var>uc</var>)</i>
1925 <a name="IDX589"></a>
1927 <dt><u>Function:</u> bool <b>uc_is_property_variation_selector</b><i> (ucs4_t <var>uc</var>)</i>
1928 <a name="IDX590"></a>
1930 <dt><u>Function:</u> bool <b>uc_is_property_private_use</b><i> (ucs4_t <var>uc</var>)</i>
1931 <a name="IDX591"></a>
1933 <dt><u>Function:</u> bool <b>uc_is_property_unassigned_code_value</b><i> (ucs4_t <var>uc</var>)</i>
1934 <a name="IDX592"></a>
1938 <p>The following properties are related to case folding.
1941 <dt><u>Function:</u> bool <b>uc_is_property_uppercase</b><i> (ucs4_t <var>uc</var>)</i>
1942 <a name="IDX593"></a>
1944 <dt><u>Function:</u> bool <b>uc_is_property_other_uppercase</b><i> (ucs4_t <var>uc</var>)</i>
1945 <a name="IDX594"></a>
1947 <dt><u>Function:</u> bool <b>uc_is_property_lowercase</b><i> (ucs4_t <var>uc</var>)</i>
1948 <a name="IDX595"></a>
1950 <dt><u>Function:</u> bool <b>uc_is_property_other_lowercase</b><i> (ucs4_t <var>uc</var>)</i>
1951 <a name="IDX596"></a>
1953 <dt><u>Function:</u> bool <b>uc_is_property_titlecase</b><i> (ucs4_t <var>uc</var>)</i>
1954 <a name="IDX597"></a>
1956 <dt><u>Function:</u> bool <b>uc_is_property_cased</b><i> (ucs4_t <var>uc</var>)</i>
1957 <a name="IDX598"></a>
1959 <dt><u>Function:</u> bool <b>uc_is_property_case_ignorable</b><i> (ucs4_t <var>uc</var>)</i>
1960 <a name="IDX599"></a>
1962 <dt><u>Function:</u> bool <b>uc_is_property_changes_when_lowercased</b><i> (ucs4_t <var>uc</var>)</i>
1963 <a name="IDX600"></a>
1965 <dt><u>Function:</u> bool <b>uc_is_property_changes_when_uppercased</b><i> (ucs4_t <var>uc</var>)</i>
1966 <a name="IDX601"></a>
1968 <dt><u>Function:</u> bool <b>uc_is_property_changes_when_titlecased</b><i> (ucs4_t <var>uc</var>)</i>
1969 <a name="IDX602"></a>
1971 <dt><u>Function:</u> bool <b>uc_is_property_changes_when_casefolded</b><i> (ucs4_t <var>uc</var>)</i>
1972 <a name="IDX603"></a>
1974 <dt><u>Function:</u> bool <b>uc_is_property_changes_when_casemapped</b><i> (ucs4_t <var>uc</var>)</i>
1975 <a name="IDX604"></a>
1977 <dt><u>Function:</u> bool <b>uc_is_property_soft_dotted</b><i> (ucs4_t <var>uc</var>)</i>
1978 <a name="IDX605"></a>
1982 <p>The following properties are related to identifiers.
1985 <dt><u>Function:</u> bool <b>uc_is_property_id_start</b><i> (ucs4_t <var>uc</var>)</i>
1986 <a name="IDX606"></a>
1988 <dt><u>Function:</u> bool <b>uc_is_property_other_id_start</b><i> (ucs4_t <var>uc</var>)</i>
1989 <a name="IDX607"></a>
1991 <dt><u>Function:</u> bool <b>uc_is_property_id_continue</b><i> (ucs4_t <var>uc</var>)</i>
1992 <a name="IDX608"></a>
1994 <dt><u>Function:</u> bool <b>uc_is_property_other_id_continue</b><i> (ucs4_t <var>uc</var>)</i>
1995 <a name="IDX609"></a>
1997 <dt><u>Function:</u> bool <b>uc_is_property_xid_start</b><i> (ucs4_t <var>uc</var>)</i>
1998 <a name="IDX610"></a>
2000 <dt><u>Function:</u> bool <b>uc_is_property_xid_continue</b><i> (ucs4_t <var>uc</var>)</i>
2001 <a name="IDX611"></a>
2003 <dt><u>Function:</u> bool <b>uc_is_property_pattern_white_space</b><i> (ucs4_t <var>uc</var>)</i>
2004 <a name="IDX612"></a>
2006 <dt><u>Function:</u> bool <b>uc_is_property_pattern_syntax</b><i> (ucs4_t <var>uc</var>)</i>
2007 <a name="IDX613"></a>
2011 <p>The following properties have an influence on shaping and rendering.
2014 <dt><u>Function:</u> bool <b>uc_is_property_join_control</b><i> (ucs4_t <var>uc</var>)</i>
2015 <a name="IDX614"></a>
2017 <dt><u>Function:</u> bool <b>uc_is_property_grapheme_base</b><i> (ucs4_t <var>uc</var>)</i>
2018 <a name="IDX615"></a>
2020 <dt><u>Function:</u> bool <b>uc_is_property_grapheme_extend</b><i> (ucs4_t <var>uc</var>)</i>
2021 <a name="IDX616"></a>
2023 <dt><u>Function:</u> bool <b>uc_is_property_other_grapheme_extend</b><i> (ucs4_t <var>uc</var>)</i>
2024 <a name="IDX617"></a>
2026 <dt><u>Function:</u> bool <b>uc_is_property_grapheme_link</b><i> (ucs4_t <var>uc</var>)</i>
2027 <a name="IDX618"></a>
2031 <p>The following properties relate to bidirectional reordering.
2034 <dt><u>Function:</u> bool <b>uc_is_property_bidi_control</b><i> (ucs4_t <var>uc</var>)</i>
2035 <a name="IDX619"></a>
2037 <dt><u>Function:</u> bool <b>uc_is_property_bidi_left_to_right</b><i> (ucs4_t <var>uc</var>)</i>
2038 <a name="IDX620"></a>
2040 <dt><u>Function:</u> bool <b>uc_is_property_bidi_hebrew_right_to_left</b><i> (ucs4_t <var>uc</var>)</i>
2041 <a name="IDX621"></a>
2043 <dt><u>Function:</u> bool <b>uc_is_property_bidi_arabic_right_to_left</b><i> (ucs4_t <var>uc</var>)</i>
2044 <a name="IDX622"></a>
2046 <dt><u>Function:</u> bool <b>uc_is_property_bidi_european_digit</b><i> (ucs4_t <var>uc</var>)</i>
2047 <a name="IDX623"></a>
2049 <dt><u>Function:</u> bool <b>uc_is_property_bidi_eur_num_separator</b><i> (ucs4_t <var>uc</var>)</i>
2050 <a name="IDX624"></a>
2052 <dt><u>Function:</u> bool <b>uc_is_property_bidi_eur_num_terminator</b><i> (ucs4_t <var>uc</var>)</i>
2053 <a name="IDX625"></a>
2055 <dt><u>Function:</u> bool <b>uc_is_property_bidi_arabic_digit</b><i> (ucs4_t <var>uc</var>)</i>
2056 <a name="IDX626"></a>
2058 <dt><u>Function:</u> bool <b>uc_is_property_bidi_common_separator</b><i> (ucs4_t <var>uc</var>)</i>
2059 <a name="IDX627"></a>
2061 <dt><u>Function:</u> bool <b>uc_is_property_bidi_block_separator</b><i> (ucs4_t <var>uc</var>)</i>
2062 <a name="IDX628"></a>
2064 <dt><u>Function:</u> bool <b>uc_is_property_bidi_segment_separator</b><i> (ucs4_t <var>uc</var>)</i>
2065 <a name="IDX629"></a>
2067 <dt><u>Function:</u> bool <b>uc_is_property_bidi_whitespace</b><i> (ucs4_t <var>uc</var>)</i>
2068 <a name="IDX630"></a>
2070 <dt><u>Function:</u> bool <b>uc_is_property_bidi_non_spacing_mark</b><i> (ucs4_t <var>uc</var>)</i>
2071 <a name="IDX631"></a>
2073 <dt><u>Function:</u> bool <b>uc_is_property_bidi_boundary_neutral</b><i> (ucs4_t <var>uc</var>)</i>
2074 <a name="IDX632"></a>
2076 <dt><u>Function:</u> bool <b>uc_is_property_bidi_pdf</b><i> (ucs4_t <var>uc</var>)</i>
2077 <a name="IDX633"></a>
2079 <dt><u>Function:</u> bool <b>uc_is_property_bidi_embedding_or_override</b><i> (ucs4_t <var>uc</var>)</i>
2080 <a name="IDX634"></a>
2082 <dt><u>Function:</u> bool <b>uc_is_property_bidi_other_neutral</b><i> (ucs4_t <var>uc</var>)</i>
2083 <a name="IDX635"></a>
2087 <p>The following properties deal with number representations.
2090 <dt><u>Function:</u> bool <b>uc_is_property_hex_digit</b><i> (ucs4_t <var>uc</var>)</i>
2091 <a name="IDX636"></a>
2093 <dt><u>Function:</u> bool <b>uc_is_property_ascii_hex_digit</b><i> (ucs4_t <var>uc</var>)</i>
2094 <a name="IDX637"></a>
2098 <p>The following properties deal with CJK.
2101 <dt><u>Function:</u> bool <b>uc_is_property_ideographic</b><i> (ucs4_t <var>uc</var>)</i>
2102 <a name="IDX638"></a>
2104 <dt><u>Function:</u> bool <b>uc_is_property_unified_ideograph</b><i> (ucs4_t <var>uc</var>)</i>
2105 <a name="IDX639"></a>
2107 <dt><u>Function:</u> bool <b>uc_is_property_radical</b><i> (ucs4_t <var>uc</var>)</i>
2108 <a name="IDX640"></a>
2110 <dt><u>Function:</u> bool <b>uc_is_property_ids_binary_operator</b><i> (ucs4_t <var>uc</var>)</i>
2111 <a name="IDX641"></a>
2113 <dt><u>Function:</u> bool <b>uc_is_property_ids_trinary_operator</b><i> (ucs4_t <var>uc</var>)</i>
2114 <a name="IDX642"></a>
2118 <p>Other miscellaneous properties are:
2121 <dt><u>Function:</u> bool <b>uc_is_property_zero_width</b><i> (ucs4_t <var>uc</var>)</i>
2122 <a name="IDX643"></a>
2124 <dt><u>Function:</u> bool <b>uc_is_property_space</b><i> (ucs4_t <var>uc</var>)</i>
2125 <a name="IDX644"></a>
2127 <dt><u>Function:</u> bool <b>uc_is_property_non_break</b><i> (ucs4_t <var>uc</var>)</i>
2128 <a name="IDX645"></a>
2130 <dt><u>Function:</u> bool <b>uc_is_property_iso_control</b><i> (ucs4_t <var>uc</var>)</i>
2131 <a name="IDX646"></a>
2133 <dt><u>Function:</u> bool <b>uc_is_property_format_control</b><i> (ucs4_t <var>uc</var>)</i>
2134 <a name="IDX647"></a>
2136 <dt><u>Function:</u> bool <b>uc_is_property_dash</b><i> (ucs4_t <var>uc</var>)</i>
2137 <a name="IDX648"></a>
2139 <dt><u>Function:</u> bool <b>uc_is_property_hyphen</b><i> (ucs4_t <var>uc</var>)</i>
2140 <a name="IDX649"></a>
2142 <dt><u>Function:</u> bool <b>uc_is_property_punctuation</b><i> (ucs4_t <var>uc</var>)</i>
2143 <a name="IDX650"></a>
2145 <dt><u>Function:</u> bool <b>uc_is_property_line_separator</b><i> (ucs4_t <var>uc</var>)</i>
2146 <a name="IDX651"></a>
2148 <dt><u>Function:</u> bool <b>uc_is_property_paragraph_separator</b><i> (ucs4_t <var>uc</var>)</i>
2149 <a name="IDX652"></a>
2151 <dt><u>Function:</u> bool <b>uc_is_property_quotation_mark</b><i> (ucs4_t <var>uc</var>)</i>
2152 <a name="IDX653"></a>
2154 <dt><u>Function:</u> bool <b>uc_is_property_sentence_terminal</b><i> (ucs4_t <var>uc</var>)</i>
2155 <a name="IDX654"></a>
2157 <dt><u>Function:</u> bool <b>uc_is_property_terminal_punctuation</b><i> (ucs4_t <var>uc</var>)</i>
2158 <a name="IDX655"></a>
2160 <dt><u>Function:</u> bool <b>uc_is_property_currency_symbol</b><i> (ucs4_t <var>uc</var>)</i>
2161 <a name="IDX656"></a>
2163 <dt><u>Function:</u> bool <b>uc_is_property_math</b><i> (ucs4_t <var>uc</var>)</i>
2164 <a name="IDX657"></a>
2166 <dt><u>Function:</u> bool <b>uc_is_property_other_math</b><i> (ucs4_t <var>uc</var>)</i>
2167 <a name="IDX658"></a>
2169 <dt><u>Function:</u> bool <b>uc_is_property_paired_punctuation</b><i> (ucs4_t <var>uc</var>)</i>
2170 <a name="IDX659"></a>
2172 <dt><u>Function:</u> bool <b>uc_is_property_left_of_pair</b><i> (ucs4_t <var>uc</var>)</i>
2173 <a name="IDX660"></a>
2175 <dt><u>Function:</u> bool <b>uc_is_property_combining</b><i> (ucs4_t <var>uc</var>)</i>
2176 <a name="IDX661"></a>
2178 <dt><u>Function:</u> bool <b>uc_is_property_composite</b><i> (ucs4_t <var>uc</var>)</i>
2179 <a name="IDX662"></a>
2181 <dt><u>Function:</u> bool <b>uc_is_property_decimal_digit</b><i> (ucs4_t <var>uc</var>)</i>
2182 <a name="IDX663"></a>
2184 <dt><u>Function:</u> bool <b>uc_is_property_numeric</b><i> (ucs4_t <var>uc</var>)</i>
2185 <a name="IDX664"></a>
2187 <dt><u>Function:</u> bool <b>uc_is_property_diacritic</b><i> (ucs4_t <var>uc</var>)</i>
2188 <a name="IDX665"></a>
2190 <dt><u>Function:</u> bool <b>uc_is_property_extender</b><i> (ucs4_t <var>uc</var>)</i>
2191 <a name="IDX666"></a>
2193 <dt><u>Function:</u> bool <b>uc_is_property_ignorable_control</b><i> (ucs4_t <var>uc</var>)</i>
2194 <a name="IDX667"></a>
2199 <a name="Scripts"></a>
2200 <a name="SEC36"></a>
2201 <h2 class="section"> <a href="libunistring.html#TOC36">8.10 Scripts</a> </h2>
2203 <p>The Unicode characters are subdivided into scripts.
2205 <p>The following type is used to represent a script:
2208 <dt><u>Type:</u> <b>uc_script_t</b>
2209 <a name="IDX668"></a>
2211 <dd><p>This data type is a structure type that refers to statically allocated
2212 read-only data. It contains the following fields:
2213 </p><table><tr><td> </td><td><pre class="smallexample">const char *name;
2214 </pre></td></tr></table>
2216 <p>The <code>name</code> field contains the name of the script.
2219 <a name="IDX669"></a>
2220 <p>The following functions look up a script.
2223 <dt><u>Function:</u> const uc_script_t * <b>uc_script</b><i> (ucs4_t <var>uc</var>)</i>
2224 <a name="IDX670"></a>
2226 <dd><p>Returns the script of a Unicode character. Returns NULL if <var>uc</var> does not
2227 belong to any script.
2231 <dt><u>Function:</u> const uc_script_t * <b>uc_script_byname</b><i> (const char *<var>script_name</var>)</i>
2232 <a name="IDX671"></a>
2234 <dd><p>Returns the script given by its name, e.g. <code>"HAN"</code>. Returns NULL if a
2235 script with the given name does not exist.
2238 <p>The following function views a script as a set of Unicode characters.
2241 <dt><u>Function:</u> bool <b>uc_is_script</b><i> (ucs4_t <var>uc</var>, const uc_script_t *<var>script</var>)</i>
2242 <a name="IDX672"></a>
2244 <dd><p>Tests whether a Unicode character belongs to a given script.
2247 <p>The following gives a global picture of all scripts.
2250 <dt><u>Function:</u> void <b>uc_all_scripts</b><i> (const uc_script_t **<var>scripts</var>, size_t *<var>count</var>)</i>
2251 <a name="IDX673"></a>
2253 <dd><p>Get the list of all scripts. Stores a pointer to an array of all scripts in
2254 <code>*<var>scripts</var></code> and the length of this array in <code>*<var>count</var></code>.
2258 <a name="Blocks"></a>
2259 <a name="SEC37"></a>
2260 <h2 class="section"> <a href="libunistring.html#TOC37">8.11 Blocks</a> </h2>
2262 <p>The Unicode characters are subdivided into blocks. A block is an interval of
2263 Unicode code points.
2265 <p>The following type is used to represent a block.
2268 <dt><u>Type:</u> <b>uc_block_t</b>
2269 <a name="IDX674"></a>
2271 <dd><p>This data type is a structure type that refers to statically allocated data.
2272 It contains the following fields:
2273 </p><table><tr><td> </td><td><pre class="smallexample">ucs4_t start;
2276 </pre></td></tr></table>
2278 <p>The <code>start</code> field is the first Unicode code point in the block.
2280 <p>The <code>end</code> field is the last Unicode code point in the block.
2282 <p>The <code>name</code> field is the name of the block.
2285 <a name="IDX675"></a>
2286 <p>The following function looks up a block.
2289 <dt><u>Function:</u> const uc_block_t * <b>uc_block</b><i> (ucs4_t <var>uc</var>)</i>
2290 <a name="IDX676"></a>
2292 <dd><p>Returns the block a character belongs to.
2295 <p>The following function views a block as a set of Unicode characters.
2298 <dt><u>Function:</u> bool <b>uc_is_block</b><i> (ucs4_t <var>uc</var>, const uc_block_t *<var>block</var>)</i>
2299 <a name="IDX677"></a>
2301 <dd><p>Tests whether a Unicode character belongs to a given block.
2304 <p>The following gives a global picture of all block.
2307 <dt><u>Function:</u> void <b>uc_all_blocks</b><i> (const uc_block_t **<var>blocks</var>, size_t *<var>count</var>)</i>
2308 <a name="IDX678"></a>
2310 <dd><p>Get the list of all blocks. Stores a pointer to an array of all blocks in
2311 <code>*<var>blocks</var></code> and the length of this array in <code>*<var>count</var></code>.
2315 <a name="ISO-C-and-Java-syntax"></a>
2316 <a name="SEC38"></a>
2317 <h2 class="section"> <a href="libunistring.html#TOC38">8.12 ISO C and Java syntax</a> </h2>
2319 <p>The following properties are taken from language standards. The supported
2320 language standards are ISO C 99 and Java.
2323 <dt><u>Function:</u> bool <b>uc_is_c_whitespace</b><i> (ucs4_t <var>uc</var>)</i>
2324 <a name="IDX679"></a>
2326 <dd><p>Tests whether a Unicode character is considered whitespace in ISO C 99.
2330 <dt><u>Function:</u> bool <b>uc_is_java_whitespace</b><i> (ucs4_t <var>uc</var>)</i>
2331 <a name="IDX680"></a>
2333 <dd><p>Tests whether a Unicode character is considered whitespace in Java.
2336 <p>The following enumerated values are the possible return values of the functions
2337 <code>uc_c_ident_category</code> and <code>uc_java_ident_category</code>.
2340 <dt><u>Constant:</u> int <b>UC_IDENTIFIER_START</b>
2341 <a name="IDX681"></a>
2343 <dd><p>This return value means that the given character is valid as first or
2344 subsequent character in an identifier.
2348 <dt><u>Constant:</u> int <b>UC_IDENTIFIER_VALID</b>
2349 <a name="IDX682"></a>
2351 <dd><p>This return value means that the given character is valid as subsequent
2356 <dt><u>Constant:</u> int <b>UC_IDENTIFIER_INVALID</b>
2357 <a name="IDX683"></a>
2359 <dd><p>This return value means that the given character is not valid in an identifier.
2363 <dt><u>Constant:</u> int <b>UC_IDENTIFIER_IGNORABLE</b>
2364 <a name="IDX684"></a>
2366 <dd><p>This return value (only for Java) means that the given character is ignorable.
2369 <p>The following function determine whether a given character can be a constituent
2370 of an identifier in the given programming language.
2372 <a name="IDX685"></a>
2374 <dt><u>Function:</u> int <b>uc_c_ident_category</b><i> (ucs4_t <var>uc</var>)</i>
2375 <a name="IDX686"></a>
2377 <dd><p>Returns the categorization of a Unicode character with respect to the ISO C 99
2381 <a name="IDX687"></a>
2383 <dt><u>Function:</u> int <b>uc_java_ident_category</b><i> (ucs4_t <var>uc</var>)</i>
2384 <a name="IDX688"></a>
2386 <dd><p>Returns the categorization of a Unicode character with respect to the Java
2391 <a name="Classifications-like-in-ISO-C"></a>
2392 <a name="SEC39"></a>
2393 <h2 class="section"> <a href="libunistring.html#TOC39">8.13 Classifications like in ISO C</a> </h2>
2395 <p>The following character classifications mimic those declared in the ISO C
2396 header files <code><ctype.h></code> and <code><wctype.h></code>. These functions are
2397 deprecated, because this set of functions was designed with ASCII in mind and
2398 cannot reflect the more diverse reality of the Unicode character set. But
2399 they can be a quick-and-dirty porting aid when migrating from <code>wchar_t</code>
2400 APIs to Unicode strings.
2403 <dt><u>Function:</u> bool <b>uc_is_alnum</b><i> (ucs4_t <var>uc</var>)</i>
2404 <a name="IDX689"></a>
2406 <dd><p>Tests for any character for which <code>uc_is_alpha</code> or <code>uc_is_digit</code> is
2411 <dt><u>Function:</u> bool <b>uc_is_alpha</b><i> (ucs4_t <var>uc</var>)</i>
2412 <a name="IDX690"></a>
2414 <dd><p>Tests for any character for which <code>uc_is_upper</code> or <code>uc_is_lower</code> is
2415 true, or any character that is one of a locale-specific set of characters for
2416 which none of <code>uc_is_cntrl</code>, <code>uc_is_digit</code>, <code>uc_is_punct</code>, or
2417 <code>uc_is_space</code> is true.
2421 <dt><u>Function:</u> bool <b>uc_is_cntrl</b><i> (ucs4_t <var>uc</var>)</i>
2422 <a name="IDX691"></a>
2424 <dd><p>Tests for any control character.
2428 <dt><u>Function:</u> bool <b>uc_is_digit</b><i> (ucs4_t <var>uc</var>)</i>
2429 <a name="IDX692"></a>
2431 <dd><p>Tests for any character that corresponds to a decimal-digit character.
2435 <dt><u>Function:</u> bool <b>uc_is_graph</b><i> (ucs4_t <var>uc</var>)</i>
2436 <a name="IDX693"></a>
2438 <dd><p>Tests for any character for which <code>uc_is_print</code> is true and
2439 <code>uc_is_space</code> is false.
2443 <dt><u>Function:</u> bool <b>uc_is_lower</b><i> (ucs4_t <var>uc</var>)</i>
2444 <a name="IDX694"></a>
2446 <dd><p>Tests for any character that corresponds to a lowercase letter or is one
2447 of a locale-specific set of characters for which none of <code>uc_is_cntrl</code>,
2448 <code>uc_is_digit</code>, <code>uc_is_punct</code>, or <code>uc_is_space</code> is true.
2452 <dt><u>Function:</u> bool <b>uc_is_print</b><i> (ucs4_t <var>uc</var>)</i>
2453 <a name="IDX695"></a>
2455 <dd><p>Tests for any printing character.
2459 <dt><u>Function:</u> bool <b>uc_is_punct</b><i> (ucs4_t <var>uc</var>)</i>
2460 <a name="IDX696"></a>
2462 <dd><p>Tests for any printing character that is one of a locale-specific set of
2463 characters for which neither <code>uc_is_space</code> nor <code>uc_is_alnum</code> is true.
2467 <dt><u>Function:</u> bool <b>uc_is_space</b><i> (ucs4_t <var>uc</var>)</i>
2468 <a name="IDX697"></a>
2470 <dd><p>Test for any character that corresponds to a locale-specific set of characters
2471 for which none of <code>uc_is_alnum</code>, <code>uc_is_graph</code>, or <code>uc_is_punct</code>
2476 <dt><u>Function:</u> bool <b>uc_is_upper</b><i> (ucs4_t <var>uc</var>)</i>
2477 <a name="IDX698"></a>
2479 <dd><p>Tests for any character that corresponds to an uppercase letter or is one
2480 of a locale-specific set of characters for which none of <code>uc_is_cntrl</code>,
2481 <code>uc_is_digit</code>, <code>uc_is_punct</code>, or <code>uc_is_space</code> is true.
2485 <dt><u>Function:</u> bool <b>uc_is_xdigit</b><i> (ucs4_t <var>uc</var>)</i>
2486 <a name="IDX699"></a>
2488 <dd><p>Tests for any character that corresponds to a hexadecimal-digit character.
2492 <dt><u>Function:</u> bool <b>uc_is_blank</b><i> (ucs4_t <var>uc</var>)</i>
2493 <a name="IDX700"></a>
2495 <dd><p>Tests for any character that corresponds to a standard blank character or
2496 a locale-specific set of characters for which <code>uc_is_alnum</code> is false.
2499 <table cellpadding="1" cellspacing="1" border="0">
2500 <tr><td valign="middle" align="left">[<a href="#SEC20" title="Beginning of this chapter or previous chapter"> << </a>]</td>
2501 <td valign="middle" align="left">[<a href="libunistring_9.html#SEC40" title="Next chapter"> >> </a>]</td>
2502 <td valign="middle" align="left"> </td>
2503 <td valign="middle" align="left"> </td>
2504 <td valign="middle" align="left"> </td>
2505 <td valign="middle" align="left"> </td>
2506 <td valign="middle" align="left"> </td>
2507 <td valign="middle" align="left">[<a href="libunistring.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
2508 <td valign="middle" align="left">[<a href="libunistring.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
2509 <td valign="middle" align="left">[<a href="libunistring_19.html#SEC77" title="Index">Index</a>]</td>
2510 <td valign="middle" align="left">[<a href="libunistring_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
2514 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>.