Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gunicode.h
Go to the documentation of this file.
1/* gunicode.h - Unicode manipulation functions
2 *
3 * Copyright (C) 1999, 2000 Tom Tromey
4 * Copyright 2000, 2005 Red Hat, Inc.
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef __G_UNICODE_H__
23#define __G_UNICODE_H__
24
25#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
26#error "Only <glib.h> can be included directly."
27#endif
28
29#include <glib/gerror.h>
30#include <glib/gtypes.h>
31
33
34/**
35 * gunichar:
36 *
37 * A type which can hold any UTF-32 or UCS-4 character code,
38 * also known as a Unicode code point.
39 *
40 * If you want to produce the UTF-8 representation of a #gunichar,
41 * use g_ucs4_to_utf8(). See also g_utf8_to_ucs4() for the reverse
42 * process.
43 *
44 * To print/scan values of this type as integer, use
45 * %G_GINT32_MODIFIER and/or %G_GUINT32_FORMAT.
46 *
47 * The notation to express a Unicode code point in running text is
48 * as a hexadecimal number with four to six digits and uppercase
49 * letters, prefixed by the string "U+". Leading zeros are omitted,
50 * unless the code point would have fewer than four hexadecimal digits.
51 * For example, "U+0041 LATIN CAPITAL LETTER A". To print a code point
52 * in the U+-notation, use the format string "U+\%04"G_GINT32_FORMAT"X".
53 * To scan, use the format string "U+\%06"G_GINT32_FORMAT"X".
54 *
55 * |[
56 * gunichar c;
57 * sscanf ("U+0041", "U+%06"G_GINT32_FORMAT"X", &amp;c)
58 * g_print ("Read U+%04"G_GINT32_FORMAT"X", c);
59 * ]|
60 */
62
63/**
64 * gunichar2:
65 *
66 * A type which can hold any UTF-16 code
67 * point<footnote id="utf16_surrogate_pairs">UTF-16 also has so called
68 * <firstterm>surrogate pairs</firstterm> to encode characters beyond
69 * the BMP as pairs of 16bit numbers. Surrogate pairs cannot be stored
70 * in a single gunichar2 field, but all GLib functions accepting gunichar2
71 * arrays will correctly interpret surrogate pairs.</footnote>.
72 *
73 * To print/scan values of this type to/from text you need to convert
74 * to/from UTF-8, using g_utf16_to_utf8()/g_utf8_to_utf16().
75 *
76 * To print/scan values of this type as integer, use
77 * %G_GINT16_MODIFIER and/or %G_GUINT16_FORMAT.
78 */
80
81/**
82 * GUnicodeType:
83 * @G_UNICODE_CONTROL: General category "Other, Control" (Cc)
84 * @G_UNICODE_FORMAT: General category "Other, Format" (Cf)
85 * @G_UNICODE_UNASSIGNED: General category "Other, Not Assigned" (Cn)
86 * @G_UNICODE_PRIVATE_USE: General category "Other, Private Use" (Co)
87 * @G_UNICODE_SURROGATE: General category "Other, Surrogate" (Cs)
88 * @G_UNICODE_LOWERCASE_LETTER: General category "Letter, Lowercase" (Ll)
89 * @G_UNICODE_MODIFIER_LETTER: General category "Letter, Modifier" (Lm)
90 * @G_UNICODE_OTHER_LETTER: General category "Letter, Other" (Lo)
91 * @G_UNICODE_TITLECASE_LETTER: General category "Letter, Titlecase" (Lt)
92 * @G_UNICODE_UPPERCASE_LETTER: General category "Letter, Uppercase" (Lu)
93 * @G_UNICODE_SPACING_MARK: General category "Mark, Spacing" (Mc)
94 * @G_UNICODE_ENCLOSING_MARK: General category "Mark, Enclosing" (Me)
95 * @G_UNICODE_NON_SPACING_MARK: General category "Mark, Nonspacing" (Mn)
96 * @G_UNICODE_DECIMAL_NUMBER: General category "Number, Decimal Digit" (Nd)
97 * @G_UNICODE_LETTER_NUMBER: General category "Number, Letter" (Nl)
98 * @G_UNICODE_OTHER_NUMBER: General category "Number, Other" (No)
99 * @G_UNICODE_CONNECT_PUNCTUATION: General category "Punctuation, Connector" (Pc)
100 * @G_UNICODE_DASH_PUNCTUATION: General category "Punctuation, Dash" (Pd)
101 * @G_UNICODE_CLOSE_PUNCTUATION: General category "Punctuation, Close" (Pe)
102 * @G_UNICODE_FINAL_PUNCTUATION: General category "Punctuation, Final quote" (Pf)
103 * @G_UNICODE_INITIAL_PUNCTUATION: General category "Punctuation, Initial quote" (Pi)
104 * @G_UNICODE_OTHER_PUNCTUATION: General category "Punctuation, Other" (Po)
105 * @G_UNICODE_OPEN_PUNCTUATION: General category "Punctuation, Open" (Ps)
106 * @G_UNICODE_CURRENCY_SYMBOL: General category "Symbol, Currency" (Sc)
107 * @G_UNICODE_MODIFIER_SYMBOL: General category "Symbol, Modifier" (Sk)
108 * @G_UNICODE_MATH_SYMBOL: General category "Symbol, Math" (Sm)
109 * @G_UNICODE_OTHER_SYMBOL: General category "Symbol, Other" (So)
110 * @G_UNICODE_LINE_SEPARATOR: General category "Separator, Line" (Zl)
111 * @G_UNICODE_PARAGRAPH_SEPARATOR: General category "Separator, Paragraph" (Zp)
112 * @G_UNICODE_SPACE_SEPARATOR: General category "Separator, Space" (Zs)
113 *
114 * These are the possible character classifications from the
115 * Unicode specification.
116 * See [Unicode Character Database](http://www.unicode.org/reports/tr44/#General_Category_Values).
117 */
151
152/**
153 * G_UNICODE_COMBINING_MARK:
154 *
155 * Older name for %G_UNICODE_SPACING_MARK.
156 *
157 * Deprecated: 2.30: Use %G_UNICODE_SPACING_MARK.
158 */
159#define G_UNICODE_COMBINING_MARK G_UNICODE_SPACING_MARK GLIB_DEPRECATED_MACRO_IN_2_30_FOR(G_UNICODE_SPACING_MARK)
160
161/**
162 * GUnicodeBreakType:
163 * @G_UNICODE_BREAK_MANDATORY: Mandatory Break (BK)
164 * @G_UNICODE_BREAK_CARRIAGE_RETURN: Carriage Return (CR)
165 * @G_UNICODE_BREAK_LINE_FEED: Line Feed (LF)
166 * @G_UNICODE_BREAK_COMBINING_MARK: Attached Characters and Combining Marks (CM)
167 * @G_UNICODE_BREAK_SURROGATE: Surrogates (SG)
168 * @G_UNICODE_BREAK_ZERO_WIDTH_SPACE: Zero Width Space (ZW)
169 * @G_UNICODE_BREAK_INSEPARABLE: Inseparable (IN)
170 * @G_UNICODE_BREAK_NON_BREAKING_GLUE: Non-breaking ("Glue") (GL)
171 * @G_UNICODE_BREAK_CONTINGENT: Contingent Break Opportunity (CB)
172 * @G_UNICODE_BREAK_SPACE: Space (SP)
173 * @G_UNICODE_BREAK_AFTER: Break Opportunity After (BA)
174 * @G_UNICODE_BREAK_BEFORE: Break Opportunity Before (BB)
175 * @G_UNICODE_BREAK_BEFORE_AND_AFTER: Break Opportunity Before and After (B2)
176 * @G_UNICODE_BREAK_HYPHEN: Hyphen (HY)
177 * @G_UNICODE_BREAK_NON_STARTER: Nonstarter (NS)
178 * @G_UNICODE_BREAK_OPEN_PUNCTUATION: Opening Punctuation (OP)
179 * @G_UNICODE_BREAK_CLOSE_PUNCTUATION: Closing Punctuation (CL)
180 * @G_UNICODE_BREAK_QUOTATION: Ambiguous Quotation (QU)
181 * @G_UNICODE_BREAK_EXCLAMATION: Exclamation/Interrogation (EX)
182 * @G_UNICODE_BREAK_IDEOGRAPHIC: Ideographic (ID)
183 * @G_UNICODE_BREAK_NUMERIC: Numeric (NU)
184 * @G_UNICODE_BREAK_INFIX_SEPARATOR: Infix Separator (Numeric) (IS)
185 * @G_UNICODE_BREAK_SYMBOL: Symbols Allowing Break After (SY)
186 * @G_UNICODE_BREAK_ALPHABETIC: Ordinary Alphabetic and Symbol Characters (AL)
187 * @G_UNICODE_BREAK_PREFIX: Prefix (Numeric) (PR)
188 * @G_UNICODE_BREAK_POSTFIX: Postfix (Numeric) (PO)
189 * @G_UNICODE_BREAK_COMPLEX_CONTEXT: Complex Content Dependent (South East Asian) (SA)
190 * @G_UNICODE_BREAK_AMBIGUOUS: Ambiguous (Alphabetic or Ideographic) (AI)
191 * @G_UNICODE_BREAK_UNKNOWN: Unknown (XX)
192 * @G_UNICODE_BREAK_NEXT_LINE: Next Line (NL)
193 * @G_UNICODE_BREAK_WORD_JOINER: Word Joiner (WJ)
194 * @G_UNICODE_BREAK_HANGUL_L_JAMO: Hangul L Jamo (JL)
195 * @G_UNICODE_BREAK_HANGUL_V_JAMO: Hangul V Jamo (JV)
196 * @G_UNICODE_BREAK_HANGUL_T_JAMO: Hangul T Jamo (JT)
197 * @G_UNICODE_BREAK_HANGUL_LV_SYLLABLE: Hangul LV Syllable (H2)
198 * @G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE: Hangul LVT Syllable (H3)
199 * @G_UNICODE_BREAK_CLOSE_PARANTHESIS: Closing Parenthesis (CP). Since 2.28. Deprecated: 2.70: Use %G_UNICODE_BREAK_CLOSE_PARENTHESIS instead.
200 * @G_UNICODE_BREAK_CLOSE_PARENTHESIS: Closing Parenthesis (CP). Since 2.70
201 * @G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: Conditional Japanese Starter (CJ). Since: 2.32
202 * @G_UNICODE_BREAK_HEBREW_LETTER: Hebrew Letter (HL). Since: 2.32
203 * @G_UNICODE_BREAK_REGIONAL_INDICATOR: Regional Indicator (RI). Since: 2.36
204 * @G_UNICODE_BREAK_EMOJI_BASE: Emoji Base (EB). Since: 2.50
205 * @G_UNICODE_BREAK_EMOJI_MODIFIER: Emoji Modifier (EM). Since: 2.50
206 * @G_UNICODE_BREAK_ZERO_WIDTH_JOINER: Zero Width Joiner (ZWJ). Since: 2.50
207 * @G_UNICODE_BREAK_AKSARA: Aksara (AK). Since: 2.80
208 * @G_UNICODE_BREAK_AKSARA_PRE_BASE (AP). Since: 2.80
209 * @G_UNICODE_BREAK_AKSARA_START (AS). Since: 2.80
210 * @G_UNICODE_BREAK_VIRAMA_FINAL (VF). Since: 2.80
211 * @G_UNICODE_BREAK_VIRAMA (VI). Since: 2.80
212 *
213 * These are the possible line break classifications.
214 *
215 * Since new Unicode versions may add new types here, applications should be ready
216 * to handle unknown values. They may be regarded as %G_UNICODE_BREAK_UNKNOWN.
217 *
218 * See [Unicode Line Breaking Algorithm](https://www.unicode.org/reports/tr14/).
219 */
220typedef enum
221{
272
273/**
274 * GUnicodeScript:
275 * @G_UNICODE_SCRIPT_INVALID_CODE:
276 * a value never returned from g_unichar_get_script()
277 * @G_UNICODE_SCRIPT_COMMON: a character used by multiple different scripts
278 * @G_UNICODE_SCRIPT_INHERITED: a mark glyph that takes its script from the
279 * base glyph to which it is attached
280 * @G_UNICODE_SCRIPT_ARABIC: Arabic
281 * @G_UNICODE_SCRIPT_ARMENIAN: Armenian
282 * @G_UNICODE_SCRIPT_BENGALI: Bengali
283 * @G_UNICODE_SCRIPT_BOPOMOFO: Bopomofo
284 * @G_UNICODE_SCRIPT_CHEROKEE: Cherokee
285 * @G_UNICODE_SCRIPT_COPTIC: Coptic
286 * @G_UNICODE_SCRIPT_CYRILLIC: Cyrillic
287 * @G_UNICODE_SCRIPT_DESERET: Deseret
288 * @G_UNICODE_SCRIPT_DEVANAGARI: Devanagari
289 * @G_UNICODE_SCRIPT_ETHIOPIC: Ethiopic
290 * @G_UNICODE_SCRIPT_GEORGIAN: Georgian
291 * @G_UNICODE_SCRIPT_GOTHIC: Gothic
292 * @G_UNICODE_SCRIPT_GREEK: Greek
293 * @G_UNICODE_SCRIPT_GUJARATI: Gujarati
294 * @G_UNICODE_SCRIPT_GURMUKHI: Gurmukhi
295 * @G_UNICODE_SCRIPT_HAN: Han
296 * @G_UNICODE_SCRIPT_HANGUL: Hangul
297 * @G_UNICODE_SCRIPT_HEBREW: Hebrew
298 * @G_UNICODE_SCRIPT_HIRAGANA: Hiragana
299 * @G_UNICODE_SCRIPT_KANNADA: Kannada
300 * @G_UNICODE_SCRIPT_KATAKANA: Katakana
301 * @G_UNICODE_SCRIPT_KHMER: Khmer
302 * @G_UNICODE_SCRIPT_LAO: Lao
303 * @G_UNICODE_SCRIPT_LATIN: Latin
304 * @G_UNICODE_SCRIPT_MALAYALAM: Malayalam
305 * @G_UNICODE_SCRIPT_MONGOLIAN: Mongolian
306 * @G_UNICODE_SCRIPT_MYANMAR: Myanmar
307 * @G_UNICODE_SCRIPT_OGHAM: Ogham
308 * @G_UNICODE_SCRIPT_OLD_ITALIC: Old Italic
309 * @G_UNICODE_SCRIPT_ORIYA: Oriya
310 * @G_UNICODE_SCRIPT_RUNIC: Runic
311 * @G_UNICODE_SCRIPT_SINHALA: Sinhala
312 * @G_UNICODE_SCRIPT_SYRIAC: Syriac
313 * @G_UNICODE_SCRIPT_TAMIL: Tamil
314 * @G_UNICODE_SCRIPT_TELUGU: Telugu
315 * @G_UNICODE_SCRIPT_THAANA: Thaana
316 * @G_UNICODE_SCRIPT_THAI: Thai
317 * @G_UNICODE_SCRIPT_TIBETAN: Tibetan
318 * @G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL:
319 * Canadian Aboriginal
320 * @G_UNICODE_SCRIPT_YI: Yi
321 * @G_UNICODE_SCRIPT_TAGALOG: Tagalog
322 * @G_UNICODE_SCRIPT_HANUNOO: Hanunoo
323 * @G_UNICODE_SCRIPT_BUHID: Buhid
324 * @G_UNICODE_SCRIPT_TAGBANWA: Tagbanwa
325 * @G_UNICODE_SCRIPT_BRAILLE: Braille
326 * @G_UNICODE_SCRIPT_CYPRIOT: Cypriot
327 * @G_UNICODE_SCRIPT_LIMBU: Limbu
328 * @G_UNICODE_SCRIPT_OSMANYA: Osmanya
329 * @G_UNICODE_SCRIPT_SHAVIAN: Shavian
330 * @G_UNICODE_SCRIPT_LINEAR_B: Linear B
331 * @G_UNICODE_SCRIPT_TAI_LE: Tai Le
332 * @G_UNICODE_SCRIPT_UGARITIC: Ugaritic
333 * @G_UNICODE_SCRIPT_NEW_TAI_LUE:
334 * New Tai Lue
335 * @G_UNICODE_SCRIPT_BUGINESE: Buginese
336 * @G_UNICODE_SCRIPT_GLAGOLITIC: Glagolitic
337 * @G_UNICODE_SCRIPT_TIFINAGH: Tifinagh
338 * @G_UNICODE_SCRIPT_SYLOTI_NAGRI:
339 * Syloti Nagri
340 * @G_UNICODE_SCRIPT_OLD_PERSIAN:
341 * Old Persian
342 * @G_UNICODE_SCRIPT_KHAROSHTHI: Kharoshthi
343 * @G_UNICODE_SCRIPT_UNKNOWN: an unassigned code point
344 * @G_UNICODE_SCRIPT_BALINESE: Balinese
345 * @G_UNICODE_SCRIPT_CUNEIFORM: Cuneiform
346 * @G_UNICODE_SCRIPT_PHOENICIAN: Phoenician
347 * @G_UNICODE_SCRIPT_PHAGS_PA: Phags-pa
348 * @G_UNICODE_SCRIPT_NKO: N'Ko
349 * @G_UNICODE_SCRIPT_KAYAH_LI: Kayah Li. Since 2.16.3
350 * @G_UNICODE_SCRIPT_LEPCHA: Lepcha. Since 2.16.3
351 * @G_UNICODE_SCRIPT_REJANG: Rejang. Since 2.16.3
352 * @G_UNICODE_SCRIPT_SUNDANESE: Sundanese. Since 2.16.3
353 * @G_UNICODE_SCRIPT_SAURASHTRA: Saurashtra. Since 2.16.3
354 * @G_UNICODE_SCRIPT_CHAM: Cham. Since 2.16.3
355 * @G_UNICODE_SCRIPT_OL_CHIKI: Ol Chiki. Since 2.16.3
356 * @G_UNICODE_SCRIPT_VAI: Vai. Since 2.16.3
357 * @G_UNICODE_SCRIPT_CARIAN: Carian. Since 2.16.3
358 * @G_UNICODE_SCRIPT_LYCIAN: Lycian. Since 2.16.3
359 * @G_UNICODE_SCRIPT_LYDIAN: Lydian. Since 2.16.3
360 * @G_UNICODE_SCRIPT_AVESTAN: Avestan. Since 2.26
361 * @G_UNICODE_SCRIPT_BAMUM: Bamum. Since 2.26
362 * @G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS:
363 * Egyptian Hieroglpyhs. Since 2.26
364 * @G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC:
365 * Imperial Aramaic. Since 2.26
366 * @G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI:
367 * Inscriptional Pahlavi. Since 2.26
368 * @G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN:
369 * Inscriptional Parthian. Since 2.26
370 * @G_UNICODE_SCRIPT_JAVANESE: Javanese. Since 2.26
371 * @G_UNICODE_SCRIPT_KAITHI: Kaithi. Since 2.26
372 * @G_UNICODE_SCRIPT_LISU: Lisu. Since 2.26
373 * @G_UNICODE_SCRIPT_MEETEI_MAYEK:
374 * Meetei Mayek. Since 2.26
375 * @G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN:
376 * Old South Arabian. Since 2.26
377 * @G_UNICODE_SCRIPT_OLD_TURKIC: Old Turkic. Since 2.28
378 * @G_UNICODE_SCRIPT_SAMARITAN: Samaritan. Since 2.26
379 * @G_UNICODE_SCRIPT_TAI_THAM: Tai Tham. Since 2.26
380 * @G_UNICODE_SCRIPT_TAI_VIET: Tai Viet. Since 2.26
381 * @G_UNICODE_SCRIPT_BATAK: Batak. Since 2.28
382 * @G_UNICODE_SCRIPT_BRAHMI: Brahmi. Since 2.28
383 * @G_UNICODE_SCRIPT_MANDAIC: Mandaic. Since 2.28
384 * @G_UNICODE_SCRIPT_CHAKMA: Chakma. Since: 2.32
385 * @G_UNICODE_SCRIPT_MEROITIC_CURSIVE: Meroitic Cursive. Since: 2.32
386 * @G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS: Meroitic Hieroglyphs. Since: 2.32
387 * @G_UNICODE_SCRIPT_MIAO: Miao. Since: 2.32
388 * @G_UNICODE_SCRIPT_SHARADA: Sharada. Since: 2.32
389 * @G_UNICODE_SCRIPT_SORA_SOMPENG: Sora Sompeng. Since: 2.32
390 * @G_UNICODE_SCRIPT_TAKRI: Takri. Since: 2.32
391 * @G_UNICODE_SCRIPT_BASSA_VAH: Bassa. Since: 2.42
392 * @G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN: Caucasian Albanian. Since: 2.42
393 * @G_UNICODE_SCRIPT_DUPLOYAN: Duployan. Since: 2.42
394 * @G_UNICODE_SCRIPT_ELBASAN: Elbasan. Since: 2.42
395 * @G_UNICODE_SCRIPT_GRANTHA: Grantha. Since: 2.42
396 * @G_UNICODE_SCRIPT_KHOJKI: Kjohki. Since: 2.42
397 * @G_UNICODE_SCRIPT_KHUDAWADI: Khudawadi, Sindhi. Since: 2.42
398 * @G_UNICODE_SCRIPT_LINEAR_A: Linear A. Since: 2.42
399 * @G_UNICODE_SCRIPT_MAHAJANI: Mahajani. Since: 2.42
400 * @G_UNICODE_SCRIPT_MANICHAEAN: Manichaean. Since: 2.42
401 * @G_UNICODE_SCRIPT_MENDE_KIKAKUI: Mende Kikakui. Since: 2.42
402 * @G_UNICODE_SCRIPT_MODI: Modi. Since: 2.42
403 * @G_UNICODE_SCRIPT_MRO: Mro. Since: 2.42
404 * @G_UNICODE_SCRIPT_NABATAEAN: Nabataean. Since: 2.42
405 * @G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN: Old North Arabian. Since: 2.42
406 * @G_UNICODE_SCRIPT_OLD_PERMIC: Old Permic. Since: 2.42
407 * @G_UNICODE_SCRIPT_PAHAWH_HMONG: Pahawh Hmong. Since: 2.42
408 * @G_UNICODE_SCRIPT_PALMYRENE: Palmyrene. Since: 2.42
409 * @G_UNICODE_SCRIPT_PAU_CIN_HAU: Pau Cin Hau. Since: 2.42
410 * @G_UNICODE_SCRIPT_PSALTER_PAHLAVI: Psalter Pahlavi. Since: 2.42
411 * @G_UNICODE_SCRIPT_SIDDHAM: Siddham. Since: 2.42
412 * @G_UNICODE_SCRIPT_TIRHUTA: Tirhuta. Since: 2.42
413 * @G_UNICODE_SCRIPT_WARANG_CITI: Warang Citi. Since: 2.42
414 * @G_UNICODE_SCRIPT_AHOM: Ahom. Since: 2.48
415 * @G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS: Anatolian Hieroglyphs. Since: 2.48
416 * @G_UNICODE_SCRIPT_HATRAN: Hatran. Since: 2.48
417 * @G_UNICODE_SCRIPT_MULTANI: Multani. Since: 2.48
418 * @G_UNICODE_SCRIPT_OLD_HUNGARIAN: Old Hungarian. Since: 2.48
419 * @G_UNICODE_SCRIPT_SIGNWRITING: Signwriting. Since: 2.48
420 * @G_UNICODE_SCRIPT_ADLAM: Adlam. Since: 2.50
421 * @G_UNICODE_SCRIPT_BHAIKSUKI: Bhaiksuki. Since: 2.50
422 * @G_UNICODE_SCRIPT_MARCHEN: Marchen. Since: 2.50
423 * @G_UNICODE_SCRIPT_NEWA: Newa. Since: 2.50
424 * @G_UNICODE_SCRIPT_OSAGE: Osage. Since: 2.50
425 * @G_UNICODE_SCRIPT_TANGUT: Tangut. Since: 2.50
426 * @G_UNICODE_SCRIPT_MASARAM_GONDI: Masaram Gondi. Since: 2.54
427 * @G_UNICODE_SCRIPT_NUSHU: Nushu. Since: 2.54
428 * @G_UNICODE_SCRIPT_SOYOMBO: Soyombo. Since: 2.54
429 * @G_UNICODE_SCRIPT_ZANABAZAR_SQUARE: Zanabazar Square. Since: 2.54
430 * @G_UNICODE_SCRIPT_DOGRA: Dogra. Since: 2.58
431 * @G_UNICODE_SCRIPT_GUNJALA_GONDI: Gunjala Gondi. Since: 2.58
432 * @G_UNICODE_SCRIPT_HANIFI_ROHINGYA: Hanifi Rohingya. Since: 2.58
433 * @G_UNICODE_SCRIPT_MAKASAR: Makasar. Since: 2.58
434 * @G_UNICODE_SCRIPT_MEDEFAIDRIN: Medefaidrin. Since: 2.58
435 * @G_UNICODE_SCRIPT_OLD_SOGDIAN: Old Sogdian. Since: 2.58
436 * @G_UNICODE_SCRIPT_SOGDIAN: Sogdian. Since: 2.58
437 * @G_UNICODE_SCRIPT_ELYMAIC: Elym. Since: 2.62
438 * @G_UNICODE_SCRIPT_NANDINAGARI: Nand. Since: 2.62
439 * @G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG: Rohg. Since: 2.62
440 * @G_UNICODE_SCRIPT_WANCHO: Wcho. Since: 2.62
441 * @G_UNICODE_SCRIPT_CHORASMIAN: Chorasmian. Since: 2.66
442 * @G_UNICODE_SCRIPT_DIVES_AKURU: Dives Akuru. Since: 2.66
443 * @G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT: Khitan small script. Since: 2.66
444 * @G_UNICODE_SCRIPT_YEZIDI: Yezidi. Since: 2.66
445 * @G_UNICODE_SCRIPT_CYPRO_MINOAN: Cypro-Minoan. Since: 2.72
446 * @G_UNICODE_SCRIPT_OLD_UYGHUR: Old Uyghur. Since: 2.72
447 * @G_UNICODE_SCRIPT_TANGSA: Tangsa. Since: 2.72
448 * @G_UNICODE_SCRIPT_TOTO: Toto. Since: 2.72
449 * @G_UNICODE_SCRIPT_VITHKUQI: Vithkuqi. Since: 2.72
450 * @G_UNICODE_SCRIPT_MATH: Mathematical notation. Since: 2.72
451 * @G_UNICODE_SCRIPT_KAWI: Kawi. Since 2.74
452 * @G_UNICODE_SCRIPT_NAG_MUNDARI: Nag Mundari. Since 2.74
453 *
454 * The #GUnicodeScript enumeration identifies different writing
455 * systems. The values correspond to the names as defined in the
456 * Unicode standard. The enumeration has been added in GLib 2.14,
457 * and is interchangeable with #PangoScript.
458 *
459 * Note that new types may be added in the future. Applications
460 * should be ready to handle unknown values.
461 * See [Unicode Standard Annex #24: Script names](http://www.unicode.org/reports/tr24/).
462 */
463typedef enum
464{ /* ISO 15924 code */
467 G_UNICODE_SCRIPT_INHERITED, /* Zinh (Qaai) */
473 G_UNICODE_SCRIPT_COPTIC, /* Copt (Qaac) */
474 G_UNICODE_SCRIPT_CYRILLIC, /* Cyrl (Cyrs) */
478 G_UNICODE_SCRIPT_GEORGIAN, /* Geor (Geon, Geoa) */
491 G_UNICODE_SCRIPT_LATIN, /* Latn (Latf, Latg) */
500 G_UNICODE_SCRIPT_SYRIAC, /* Syrc (Syrj, Syrn, Syre) */
512
513 /* Unicode-4.0 additions */
522
523 /* Unicode-4.1 additions */
531
532 /* Unicode-5.0 additions */
539
540 /* Unicode-5.1 additions */
552
553 /* Unicode-5.2 additions */
569
570 /* Unicode-6.0 additions */
574
575 /* Unicode-6.1 additions */
583
584 /* Unicode 7.0 additions */
608
609 /* Unicode 8.0 additions */
616
617 /* Unicode 9.0 additions */
624
625 /* Unicode 10.0 additions */
630
631 /* Unicode 11.0 additions */
639
640 /* Unicode 12.0 additions */
645
646 /* Unicode 13.0 additions */
651
652 /* Unicode 14.0 additions */
658
659 /* not really a Unicode script, but part of ISO 15924 */
661
662 /* Unicode 15.0 additions */
663 G_UNICODE_SCRIPT_KAWI GLIB_AVAILABLE_ENUMERATOR_IN_2_74, /* Kawi */
664 G_UNICODE_SCRIPT_NAG_MUNDARI GLIB_AVAILABLE_ENUMERATOR_IN_2_74, /* Nag Mundari */
666
671
672/* These are all analogs of the <ctype.h> functions.
673 */
708
709/* More <ctype.h> functions. These convert between the three cases.
710 * See the Unicode book to understand title case. */
717
718/* If C is a digit (according to 'g_unichar_isdigit'), then return its
719 numeric value. Otherwise return -1. */
722
725
726/* Return the Unicode character type of a given character. */
729
730/* Return the line break property for a given character */
733
734/* Returns the combining class for a given character */
737
740 gunichar *mirrored_ch);
741
744
745/* Validate a Unicode character */
748
749/* Pairwise canonical compose/decompose */
752 gunichar b,
753 gunichar *ch);
756 gunichar *a,
757 gunichar *b);
758
761 gboolean compat,
762 gunichar *result,
763 gsize result_len);
764
765/**
766 * G_UNICHAR_MAX_DECOMPOSITION_LENGTH:
767 *
768 * The maximum length (in codepoints) of a compatibility or canonical
769 * decomposition of a single Unicode character.
770 *
771 * This is as defined by Unicode 6.1.
772 *
773 * Since: 2.32
774 */
775#define G_UNICHAR_MAX_DECOMPOSITION_LENGTH 18 /* codepoints */
776
777/* Compute canonical ordering of a string in-place. This rearranges
778 decomposed characters in the string according to their combining
779 classes. See the Unicode manual for more information. */
782 gsize len);
783
784
787 gsize *result_len) G_GNUC_MALLOC;
788
789/* Array of skip-bytes-per-initial character.
790 */
792
793/**
794 * g_utf8_next_char:
795 * @p: Pointer to the start of a valid UTF-8 character
796 *
797 * Skips to the next character in a UTF-8 string.
798 *
799 * The string must be valid; this macro is as fast as possible, and has
800 * no error-checking.
801 *
802 * You would use this macro to iterate over a string character by character.
803 *
804 * The macro returns the start of the next UTF-8 character.
805 *
806 * Before using this macro, use g_utf8_validate() to validate strings
807 * that may contain invalid UTF-8.
808 */
809#define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
810
815 gssize max_len) G_GNUC_PURE;
816
819 glong offset) G_GNUC_PURE;
822 const gchar *pos) G_GNUC_PURE;
827 const gchar *end) G_GNUC_PURE;
830 const gchar *p) G_GNUC_PURE;
831
834 gssize max) G_GNUC_PURE;
835
838 glong start_pos,
839 glong end_pos) G_GNUC_MALLOC;
840
843 const gchar *src,
844 gsize n);
845
848 gsize truncate_length);
849
850/* Find the UTF-8 character corresponding to ch, in string p. These
851 functions are equivalants to strchr and strrchr */
854 gssize len,
855 gunichar c);
858 gssize len,
859 gunichar c);
862 gssize len);
863
866 glong len,
867 glong *items_read,
868 glong *items_written,
869 GError **error) G_GNUC_MALLOC;
872 glong len,
873 glong *items_read,
874 glong *items_written,
875 GError **error) G_GNUC_MALLOC;
878 glong len,
879 glong *items_written) G_GNUC_MALLOC;
882 glong len,
883 glong *items_read,
884 glong *items_written,
885 GError **error) G_GNUC_MALLOC;
888 glong len,
889 glong *items_read,
890 glong *items_written,
891 GError **error) G_GNUC_MALLOC;
894 glong len,
895 glong *items_read,
896 glong *items_written,
897 GError **error) G_GNUC_MALLOC;
900 glong len,
901 glong *items_read,
902 glong *items_written,
903 GError **error) G_GNUC_MALLOC;
904
907 gchar *outbuf);
908
911 gssize max_len,
912 const gchar **end);
915 gsize max_len,
916 const gchar **end);
917
927
928/**
929 * GNormalizeMode:
930 * @G_NORMALIZE_DEFAULT: standardize differences that do not affect the
931 * text content, such as the above-mentioned accent representation
932 * @G_NORMALIZE_NFD: another name for %G_NORMALIZE_DEFAULT
933 * @G_NORMALIZE_DEFAULT_COMPOSE: like %G_NORMALIZE_DEFAULT, but with
934 * composed forms rather than a maximally decomposed form
935 * @G_NORMALIZE_NFC: another name for %G_NORMALIZE_DEFAULT_COMPOSE
936 * @G_NORMALIZE_ALL: beyond %G_NORMALIZE_DEFAULT also standardize the
937 * "compatibility" characters in Unicode, such as SUPERSCRIPT THREE
938 * to the standard forms (in this case DIGIT THREE). Formatting
939 * information may be lost but for most text operations such
940 * characters should be considered the same
941 * @G_NORMALIZE_NFKD: another name for %G_NORMALIZE_ALL
942 * @G_NORMALIZE_ALL_COMPOSE: like %G_NORMALIZE_ALL, but with composed
943 * forms rather than a maximally decomposed form
944 * @G_NORMALIZE_NFKC: another name for %G_NORMALIZE_ALL_COMPOSE
945 *
946 * Defines how a Unicode string is transformed in a canonical
947 * form, standardizing such issues as whether a character with
948 * an accent is represented as a base character and combining
949 * accent or as a single precomposed character. Unicode strings
950 * should generally be normalized before comparing them.
951 */
962
965 gssize len,
967
970 const gchar *str2) G_GNUC_PURE;
977
981
983
984#endif /* __G_UNICODE_H__ */
#define GLIB_AVAILABLE_IN_2_60
#define GLIB_AVAILABLE_IN_2_30
#define GLIB_AVAILABLE_IN_ALL
#define GLIB_VAR
#define GLIB_AVAILABLE_IN_2_78
#define GLIB_DEPRECATED_IN_2_30
#define GLIB_AVAILABLE_IN_2_52
unsigned int guint32
Definition glibconfig.h:57
unsigned short guint16
Definition glibconfig.h:49
signed long gssize
Definition glibconfig.h:82
unsigned long gsize
Definition glibconfig.h:83
#define G_GNUC_PURE
Definition gmacros.h:287
#define G_GNUC_MALLOC
Definition gmacros.h:293
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gint gboolean
Definition gtypes.h:56
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
int gint
Definition gtypes.h:55
long glong
Definition gtypes.h:54
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isgraph(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL void g_unicode_canonical_ordering(gunichar *string, gsize len)
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_islower(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_strrchr(const gchar *p, gssize len, gunichar c)
GLIB_AVAILABLE_IN_ALL gunichar2 * g_utf8_to_utf16(const gchar *str, glong len, glong *items_read, glong *items_written, GError **error) G_GNUC_MALLOC
G_BEGIN_DECLS typedef guint32 gunichar
Definition gunicode.h:61
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_compose(gunichar a, gunichar b, gunichar *ch)
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_decompose(gunichar ch, gunichar *a, gunichar *b)
GLIB_AVAILABLE_IN_ALL gint g_unichar_digit_value(gunichar c) G_GNUC_CONST
guint16 gunichar2
Definition gunicode.h:79
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_find_prev_char(const gchar *str, const gchar *p) G_GNUC_PURE
GUnicodeType
Definition gunicode.h:119
@ G_UNICODE_CLOSE_PUNCTUATION
Definition gunicode.h:138
@ G_UNICODE_PARAGRAPH_SEPARATOR
Definition gunicode.h:148
@ G_UNICODE_LOWERCASE_LETTER
Definition gunicode.h:125
@ G_UNICODE_UPPERCASE_LETTER
Definition gunicode.h:129
@ G_UNICODE_ENCLOSING_MARK
Definition gunicode.h:131
@ G_UNICODE_LETTER_NUMBER
Definition gunicode.h:134
@ G_UNICODE_CURRENCY_SYMBOL
Definition gunicode.h:143
@ G_UNICODE_OTHER_LETTER
Definition gunicode.h:127
@ G_UNICODE_OTHER_SYMBOL
Definition gunicode.h:146
@ G_UNICODE_CONTROL
Definition gunicode.h:120
@ G_UNICODE_DASH_PUNCTUATION
Definition gunicode.h:137
@ G_UNICODE_DECIMAL_NUMBER
Definition gunicode.h:133
@ G_UNICODE_CONNECT_PUNCTUATION
Definition gunicode.h:136
@ G_UNICODE_TITLECASE_LETTER
Definition gunicode.h:128
@ G_UNICODE_FINAL_PUNCTUATION
Definition gunicode.h:139
@ G_UNICODE_MODIFIER_LETTER
Definition gunicode.h:126
@ G_UNICODE_MATH_SYMBOL
Definition gunicode.h:145
@ G_UNICODE_FORMAT
Definition gunicode.h:121
@ G_UNICODE_OTHER_PUNCTUATION
Definition gunicode.h:141
@ G_UNICODE_LINE_SEPARATOR
Definition gunicode.h:147
@ G_UNICODE_SPACE_SEPARATOR
Definition gunicode.h:149
@ G_UNICODE_INITIAL_PUNCTUATION
Definition gunicode.h:140
@ G_UNICODE_OTHER_NUMBER
Definition gunicode.h:135
@ G_UNICODE_NON_SPACING_MARK
Definition gunicode.h:132
@ G_UNICODE_PRIVATE_USE
Definition gunicode.h:123
@ G_UNICODE_OPEN_PUNCTUATION
Definition gunicode.h:142
@ G_UNICODE_MODIFIER_SYMBOL
Definition gunicode.h:144
@ G_UNICODE_SPACING_MARK
Definition gunicode.h:130
@ G_UNICODE_SURROGATE
Definition gunicode.h:124
@ G_UNICODE_UNASSIGNED
Definition gunicode.h:122
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_ispunct(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gunichar * g_utf8_to_ucs4(const gchar *str, glong len, glong *items_read, glong *items_written, GError **error) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_iszerowidth(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_validate(gunichar ch) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_strchr(const gchar *p, gssize len, gunichar c)
GLIB_AVAILABLE_IN_ALL gchar * g_utf16_to_utf8(const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_2_30 gchar * g_utf8_substring(const gchar *str, glong start_pos, glong end_pos) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isprint(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_find_next_char(const gchar *p, const gchar *end) G_GNUC_PURE
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_normalize(const gchar *str, gssize len, GNormalizeMode mode) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_strdown(const gchar *str, gssize len) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL guint32 g_unicode_script_to_iso15924(GUnicodeScript script)
GLIB_AVAILABLE_IN_ALL gunichar g_unichar_totitle(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gint g_unichar_to_utf8(gunichar c, gchar *outbuf)
GLIB_AVAILABLE_IN_2_60 gboolean g_utf8_validate_len(const gchar *str, gsize max_len, const gchar **end)
GLIB_AVAILABLE_IN_ALL GUnicodeType g_unichar_type(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_prev_char(const gchar *p) G_GNUC_PURE
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_strncpy(gchar *dest, const gchar *src, gsize n)
GLIB_AVAILABLE_IN_2_52 gchar * g_utf8_make_valid(const gchar *str, gssize len) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isxdigit(gunichar c) G_GNUC_CONST
GLIB_DEPRECATED_IN_2_30 gunichar * g_unicode_canonical_decomposition(gunichar ch, gsize *result_len) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gunichar g_utf8_get_char(const gchar *p) G_GNUC_PURE
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_istitle(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_get_mirror_char(gunichar ch, gunichar *mirrored_ch)
GLIB_AVAILABLE_IN_ALL gunichar g_utf8_get_char_validated(const gchar *p, gssize max_len) G_GNUC_PURE
GLIB_AVAILABLE_IN_ALL GUnicodeScript g_unichar_get_script(gunichar ch) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_collate_key(const gchar *str, gssize len) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gint g_unichar_combining_class(gunichar uc) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_iscntrl(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isdefined(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_2_78 gchar * g_utf8_truncate_middle(const gchar *string, gsize truncate_length)
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_strup(const gchar *str, gssize len) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL GUnicodeScript g_unicode_script_from_iso15924(guint32 iso15924)
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_ismark(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL glong g_utf8_pointer_to_offset(const gchar *str, const gchar *pos) G_GNUC_PURE
GLIB_AVAILABLE_IN_ALL gchar * g_ucs4_to_utf8(const gunichar *str, glong len, glong *items_read, glong *items_written, GError **error) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_collate_key_for_filename(const gchar *str, gssize len) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL GUnicodeBreakType g_unichar_break_type(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gint g_unichar_xdigit_value(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_iswide_cjk(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gunichar2 * g_ucs4_to_utf16(const gunichar *str, glong len, glong *items_read, glong *items_written, GError **error) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gint g_utf8_collate(const gchar *str1, const gchar *str2) G_GNUC_PURE
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isalpha(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gunichar g_unichar_tolower(gunichar c) G_GNUC_CONST
GNormalizeMode
Definition gunicode.h:952
@ G_NORMALIZE_DEFAULT_COMPOSE
Definition gunicode.h:955
@ G_NORMALIZE_NFKC
Definition gunicode.h:960
@ G_NORMALIZE_NFKD
Definition gunicode.h:958
@ G_NORMALIZE_ALL
Definition gunicode.h:957
@ G_NORMALIZE_NFD
Definition gunicode.h:954
@ G_NORMALIZE_DEFAULT
Definition gunicode.h:953
@ G_NORMALIZE_ALL_COMPOSE
Definition gunicode.h:959
@ G_NORMALIZE_NFC
Definition gunicode.h:956
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_casefold(const gchar *str, gssize len) G_GNUC_MALLOC
GLIB_AVAILABLE_IN_ALL gsize g_unichar_fully_decompose(gunichar ch, gboolean compat, gunichar *result, gsize result_len)
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_strreverse(const gchar *str, gssize len)
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isalnum(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_iswide(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gchar * g_utf8_offset_to_pointer(const gchar *str, glong offset) G_GNUC_PURE
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isupper(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gunichar * g_utf8_to_ucs4_fast(const gchar *str, glong len, glong *items_written) G_GNUC_MALLOC
GUnicodeBreakType
Definition gunicode.h:221
@ G_UNICODE_BREAK_SPACE
Definition gunicode.h:231
@ G_UNICODE_BREAK_QUOTATION
Definition gunicode.h:239
@ G_UNICODE_BREAK_EXCLAMATION
Definition gunicode.h:240
@ G_UNICODE_BREAK_CLOSE_PUNCTUATION
Definition gunicode.h:238
@ G_UNICODE_BREAK_NEXT_LINE
Definition gunicode.h:251
@ G_UNICODE_BREAK_NON_BREAKING_GLUE
Definition gunicode.h:229
@ G_UNICODE_BREAK_HANGUL_T_JAMO
Definition gunicode.h:255
@ G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE
Definition gunicode.h:257
@ G_UNICODE_BREAK_BEFORE
Definition gunicode.h:233
@ G_UNICODE_BREAK_AKSARA_START
Definition gunicode.h:268
@ G_UNICODE_BREAK_HEBREW_LETTER
Definition gunicode.h:261
@ G_UNICODE_BREAK_IDEOGRAPHIC
Definition gunicode.h:241
@ G_UNICODE_BREAK_NON_STARTER
Definition gunicode.h:236
@ G_UNICODE_BREAK_AKSARA
Definition gunicode.h:266
@ G_UNICODE_BREAK_REGIONAL_INDICATOR
Definition gunicode.h:262
@ G_UNICODE_BREAK_PREFIX
Definition gunicode.h:246
@ G_UNICODE_BREAK_MANDATORY
Definition gunicode.h:222
@ G_UNICODE_BREAK_EMOJI_BASE
Definition gunicode.h:263
@ G_UNICODE_BREAK_HANGUL_LV_SYLLABLE
Definition gunicode.h:256
@ G_UNICODE_BREAK_INSEPARABLE
Definition gunicode.h:228
@ G_UNICODE_BREAK_OPEN_PUNCTUATION
Definition gunicode.h:237
@ G_UNICODE_BREAK_POSTFIX
Definition gunicode.h:247
@ G_UNICODE_BREAK_ZERO_WIDTH_JOINER
Definition gunicode.h:265
@ G_UNICODE_BREAK_CARRIAGE_RETURN
Definition gunicode.h:223
@ G_UNICODE_BREAK_ALPHABETIC
Definition gunicode.h:245
@ G_UNICODE_BREAK_SYMBOL
Definition gunicode.h:244
@ G_UNICODE_BREAK_AKSARA_PRE_BASE
Definition gunicode.h:267
@ G_UNICODE_BREAK_EMOJI_MODIFIER
Definition gunicode.h:264
@ G_UNICODE_BREAK_AFTER
Definition gunicode.h:232
@ G_UNICODE_BREAK_AMBIGUOUS
Definition gunicode.h:249
@ GLIB_AVAILABLE_ENUMERATOR_IN_2_70
Definition gunicode.h:259
@ G_UNICODE_BREAK_UNKNOWN
Definition gunicode.h:250
@ G_UNICODE_BREAK_CONTINGENT
Definition gunicode.h:230
@ G_UNICODE_BREAK_BEFORE_AND_AFTER
Definition gunicode.h:234
@ G_UNICODE_BREAK_WORD_JOINER
Definition gunicode.h:252
@ G_UNICODE_BREAK_COMBINING_MARK
Definition gunicode.h:225
@ G_UNICODE_BREAK_COMPLEX_CONTEXT
Definition gunicode.h:248
@ G_UNICODE_BREAK_VIRAMA_FINAL
Definition gunicode.h:269
@ G_UNICODE_BREAK_SURROGATE
Definition gunicode.h:226
@ G_UNICODE_BREAK_ZERO_WIDTH_SPACE
Definition gunicode.h:227
@ G_UNICODE_BREAK_INFIX_SEPARATOR
Definition gunicode.h:243
@ G_UNICODE_BREAK_CLOSE_PARANTHESIS
Definition gunicode.h:258
@ G_UNICODE_BREAK_VIRAMA
Definition gunicode.h:270
@ G_UNICODE_BREAK_LINE_FEED
Definition gunicode.h:224
@ G_UNICODE_BREAK_HYPHEN
Definition gunicode.h:235
@ G_UNICODE_BREAK_NUMERIC
Definition gunicode.h:242
@ G_UNICODE_BREAK_HANGUL_L_JAMO
Definition gunicode.h:253
@ G_UNICODE_BREAK_HANGUL_V_JAMO
Definition gunicode.h:254
@ G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER
Definition gunicode.h:260
GLIB_AVAILABLE_IN_ALL gboolean g_utf8_validate(const gchar *str, gssize max_len, const gchar **end)
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isspace(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gunichar g_unichar_toupper(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL gunichar * g_utf16_to_ucs4(const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error) G_GNUC_MALLOC
GLIB_VAR const gchar *const g_utf8_skip
Definition gunicode.h:791
GUnicodeScript
Definition gunicode.h:464
@ G_UNICODE_SCRIPT_TAKRI
Definition gunicode.h:582
@ G_UNICODE_SCRIPT_BRAILLE
Definition gunicode.h:514
@ G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN
Definition gunicode.h:599
@ G_UNICODE_SCRIPT_OLD_SOGDIAN
Definition gunicode.h:637
@ G_UNICODE_SCRIPT_NUSHU
Definition gunicode.h:627
@ G_UNICODE_SCRIPT_VITHKUQI
Definition gunicode.h:657
@ G_UNICODE_SCRIPT_HANIFI_ROHINGYA
Definition gunicode.h:634
@ G_UNICODE_SCRIPT_RUNIC
Definition gunicode.h:498
@ G_UNICODE_SCRIPT_TIBETAN
Definition gunicode.h:505
@ G_UNICODE_SCRIPT_KHOJKI
Definition gunicode.h:590
@ G_UNICODE_SCRIPT_YI
Definition gunicode.h:507
@ G_UNICODE_SCRIPT_NEWA
Definition gunicode.h:621
@ G_UNICODE_SCRIPT_WANCHO
Definition gunicode.h:644
@ G_UNICODE_SCRIPT_ARABIC
Definition gunicode.h:468
@ G_UNICODE_SCRIPT_BALINESE
Definition gunicode.h:534
@ G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS
Definition gunicode.h:556
@ G_UNICODE_SCRIPT_MEDEFAIDRIN
Definition gunicode.h:636
@ G_UNICODE_SCRIPT_OLD_PERSIAN
Definition gunicode.h:529
@ G_UNICODE_SCRIPT_JAVANESE
Definition gunicode.h:560
@ G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS
Definition gunicode.h:578
@ G_UNICODE_SCRIPT_MONGOLIAN
Definition gunicode.h:493
@ G_UNICODE_SCRIPT_ADLAM
Definition gunicode.h:618
@ G_UNICODE_SCRIPT_TANGUT
Definition gunicode.h:623
@ G_UNICODE_SCRIPT_HIRAGANA
Definition gunicode.h:486
@ G_UNICODE_SCRIPT_MULTANI
Definition gunicode.h:613
@ G_UNICODE_SCRIPT_CHAM
Definition gunicode.h:546
@ G_UNICODE_SCRIPT_MENDE_KIKAKUI
Definition gunicode.h:595
@ G_UNICODE_SCRIPT_HANUNOO
Definition gunicode.h:509
@ G_UNICODE_SCRIPT_GLAGOLITIC
Definition gunicode.h:526
@ G_UNICODE_SCRIPT_MAHAJANI
Definition gunicode.h:593
@ G_UNICODE_SCRIPT_SOGDIAN
Definition gunicode.h:638
@ G_UNICODE_SCRIPT_GOTHIC
Definition gunicode.h:479
@ G_UNICODE_SCRIPT_TAI_LE
Definition gunicode.h:520
@ G_UNICODE_SCRIPT_TIRHUTA
Definition gunicode.h:606
@ G_UNICODE_SCRIPT_TAGALOG
Definition gunicode.h:508
@ G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN
Definition gunicode.h:559
@ G_UNICODE_SCRIPT_PALMYRENE
Definition gunicode.h:602
@ G_UNICODE_SCRIPT_GEORGIAN
Definition gunicode.h:478
@ G_UNICODE_SCRIPT_SIGNWRITING
Definition gunicode.h:615
@ G_UNICODE_SCRIPT_MEROITIC_CURSIVE
Definition gunicode.h:577
@ G_UNICODE_SCRIPT_DESERET
Definition gunicode.h:475
@ G_UNICODE_SCRIPT_CYPRO_MINOAN
Definition gunicode.h:653
@ G_UNICODE_SCRIPT_INVALID_CODE
Definition gunicode.h:465
@ G_UNICODE_SCRIPT_CYPRIOT
Definition gunicode.h:515
@ G_UNICODE_SCRIPT_MATH
Definition gunicode.h:660
@ G_UNICODE_SCRIPT_MALAYALAM
Definition gunicode.h:492
@ G_UNICODE_SCRIPT_SYRIAC
Definition gunicode.h:500
@ G_UNICODE_SCRIPT_AVESTAN
Definition gunicode.h:554
@ G_UNICODE_SCRIPT_MANDAIC
Definition gunicode.h:573
@ G_UNICODE_SCRIPT_SORA_SOMPENG
Definition gunicode.h:581
@ G_UNICODE_SCRIPT_CHAKMA
Definition gunicode.h:576
@ G_UNICODE_SCRIPT_ETHIOPIC
Definition gunicode.h:477
@ G_UNICODE_SCRIPT_MODI
Definition gunicode.h:596
@ G_UNICODE_SCRIPT_CHEROKEE
Definition gunicode.h:472
@ G_UNICODE_SCRIPT_KAYAH_LI
Definition gunicode.h:541
@ G_UNICODE_SCRIPT_ZANABAZAR_SQUARE
Definition gunicode.h:629
@ G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN
Definition gunicode.h:586
@ G_UNICODE_SCRIPT_GREEK
Definition gunicode.h:480
@ G_UNICODE_SCRIPT_NABATAEAN
Definition gunicode.h:598
@ G_UNICODE_SCRIPT_DOGRA
Definition gunicode.h:632
@ G_UNICODE_SCRIPT_MAKASAR
Definition gunicode.h:635
@ G_UNICODE_SCRIPT_SAURASHTRA
Definition gunicode.h:545
@ G_UNICODE_SCRIPT_KHAROSHTHI
Definition gunicode.h:530
@ G_UNICODE_SCRIPT_LATIN
Definition gunicode.h:491
@ G_UNICODE_SCRIPT_BENGALI
Definition gunicode.h:470
@ G_UNICODE_SCRIPT_UGARITIC
Definition gunicode.h:521
@ G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC
Definition gunicode.h:557
@ G_UNICODE_SCRIPT_HAN
Definition gunicode.h:483
@ G_UNICODE_SCRIPT_OGHAM
Definition gunicode.h:495
@ G_UNICODE_SCRIPT_SYLOTI_NAGRI
Definition gunicode.h:528
@ G_UNICODE_SCRIPT_HANGUL
Definition gunicode.h:484
@ G_UNICODE_SCRIPT_TAGBANWA
Definition gunicode.h:511
@ G_UNICODE_SCRIPT_SAMARITAN
Definition gunicode.h:566
@ G_UNICODE_SCRIPT_MARCHEN
Definition gunicode.h:620
@ G_UNICODE_SCRIPT_OSMANYA
Definition gunicode.h:517
@ G_UNICODE_SCRIPT_GUNJALA_GONDI
Definition gunicode.h:633
@ G_UNICODE_SCRIPT_BUHID
Definition gunicode.h:510
@ G_UNICODE_SCRIPT_CARIAN
Definition gunicode.h:549
@ G_UNICODE_SCRIPT_TAI_VIET
Definition gunicode.h:568
@ G_UNICODE_SCRIPT_PAHAWH_HMONG
Definition gunicode.h:601
@ GLIB_AVAILABLE_ENUMERATOR_IN_2_74
Definition gunicode.h:663
@ G_UNICODE_SCRIPT_OLD_TURKIC
Definition gunicode.h:565
@ G_UNICODE_SCRIPT_CUNEIFORM
Definition gunicode.h:535
@ G_UNICODE_SCRIPT_BOPOMOFO
Definition gunicode.h:471
@ G_UNICODE_SCRIPT_ELBASAN
Definition gunicode.h:588
@ G_UNICODE_SCRIPT_LEPCHA
Definition gunicode.h:542
@ G_UNICODE_SCRIPT_BASSA_VAH
Definition gunicode.h:585
@ G_UNICODE_SCRIPT_LIMBU
Definition gunicode.h:516
@ G_UNICODE_SCRIPT_CYRILLIC
Definition gunicode.h:474
@ G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS
Definition gunicode.h:611
@ G_UNICODE_SCRIPT_YEZIDI
Definition gunicode.h:650
@ G_UNICODE_SCRIPT_NKO
Definition gunicode.h:538
@ G_UNICODE_SCRIPT_PSALTER_PAHLAVI
Definition gunicode.h:604
@ G_UNICODE_SCRIPT_TAI_THAM
Definition gunicode.h:567
@ G_UNICODE_SCRIPT_TELUGU
Definition gunicode.h:502
@ G_UNICODE_SCRIPT_DIVES_AKURU
Definition gunicode.h:648
@ G_UNICODE_SCRIPT_SOYOMBO
Definition gunicode.h:628
@ G_UNICODE_SCRIPT_LAO
Definition gunicode.h:490
@ G_UNICODE_SCRIPT_MASARAM_GONDI
Definition gunicode.h:626
@ G_UNICODE_SCRIPT_DUPLOYAN
Definition gunicode.h:587
@ G_UNICODE_SCRIPT_PAU_CIN_HAU
Definition gunicode.h:603
@ G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG
Definition gunicode.h:643
@ G_UNICODE_SCRIPT_SHARADA
Definition gunicode.h:580
@ G_UNICODE_SCRIPT_KATAKANA
Definition gunicode.h:488
@ G_UNICODE_SCRIPT_SUNDANESE
Definition gunicode.h:544
@ G_UNICODE_SCRIPT_LYDIAN
Definition gunicode.h:551
@ G_UNICODE_SCRIPT_PHOENICIAN
Definition gunicode.h:536
@ G_UNICODE_SCRIPT_BATAK
Definition gunicode.h:571
@ G_UNICODE_SCRIPT_THAANA
Definition gunicode.h:503
@ G_UNICODE_SCRIPT_LISU
Definition gunicode.h:562
@ G_UNICODE_SCRIPT_BRAHMI
Definition gunicode.h:572
@ G_UNICODE_SCRIPT_OLD_PERMIC
Definition gunicode.h:600
@ G_UNICODE_SCRIPT_THAI
Definition gunicode.h:504
@ G_UNICODE_SCRIPT_DEVANAGARI
Definition gunicode.h:476
@ G_UNICODE_SCRIPT_MIAO
Definition gunicode.h:579
@ G_UNICODE_SCRIPT_MYANMAR
Definition gunicode.h:494
@ G_UNICODE_SCRIPT_KHMER
Definition gunicode.h:489
@ G_UNICODE_SCRIPT_TOTO
Definition gunicode.h:656
@ G_UNICODE_SCRIPT_INHERITED
Definition gunicode.h:467
@ G_UNICODE_SCRIPT_OL_CHIKI
Definition gunicode.h:547
@ G_UNICODE_SCRIPT_ORIYA
Definition gunicode.h:497
@ G_UNICODE_SCRIPT_SINHALA
Definition gunicode.h:499
@ G_UNICODE_SCRIPT_GRANTHA
Definition gunicode.h:589
@ G_UNICODE_SCRIPT_OSAGE
Definition gunicode.h:622
@ G_UNICODE_SCRIPT_KAITHI
Definition gunicode.h:561
@ G_UNICODE_SCRIPT_KANNADA
Definition gunicode.h:487
@ G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN
Definition gunicode.h:564
@ G_UNICODE_SCRIPT_CHORASMIAN
Definition gunicode.h:647
@ G_UNICODE_SCRIPT_TIFINAGH
Definition gunicode.h:527
@ G_UNICODE_SCRIPT_KHUDAWADI
Definition gunicode.h:591
@ G_UNICODE_SCRIPT_OLD_HUNGARIAN
Definition gunicode.h:614
@ G_UNICODE_SCRIPT_ARMENIAN
Definition gunicode.h:469
@ G_UNICODE_SCRIPT_TANGSA
Definition gunicode.h:655
@ G_UNICODE_SCRIPT_VAI
Definition gunicode.h:548
@ G_UNICODE_SCRIPT_TAMIL
Definition gunicode.h:501
@ G_UNICODE_SCRIPT_AHOM
Definition gunicode.h:610
@ G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT
Definition gunicode.h:649
@ G_UNICODE_SCRIPT_REJANG
Definition gunicode.h:543
@ G_UNICODE_SCRIPT_UNKNOWN
Definition gunicode.h:533
@ G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI
Definition gunicode.h:558
@ G_UNICODE_SCRIPT_MANICHAEAN
Definition gunicode.h:594
@ G_UNICODE_SCRIPT_GURMUKHI
Definition gunicode.h:482
@ G_UNICODE_SCRIPT_MEETEI_MAYEK
Definition gunicode.h:563
@ G_UNICODE_SCRIPT_LINEAR_A
Definition gunicode.h:592
@ G_UNICODE_SCRIPT_SIDDHAM
Definition gunicode.h:605
@ G_UNICODE_SCRIPT_HEBREW
Definition gunicode.h:485
@ G_UNICODE_SCRIPT_LINEAR_B
Definition gunicode.h:519
@ G_UNICODE_SCRIPT_NEW_TAI_LUE
Definition gunicode.h:524
@ G_UNICODE_SCRIPT_COMMON
Definition gunicode.h:466
@ G_UNICODE_SCRIPT_GUJARATI
Definition gunicode.h:481
@ G_UNICODE_SCRIPT_ELYMAIC
Definition gunicode.h:641
@ G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL
Definition gunicode.h:506
@ G_UNICODE_SCRIPT_OLD_UYGHUR
Definition gunicode.h:654
@ G_UNICODE_SCRIPT_BUGINESE
Definition gunicode.h:525
@ G_UNICODE_SCRIPT_BAMUM
Definition gunicode.h:555
@ G_UNICODE_SCRIPT_PHAGS_PA
Definition gunicode.h:537
@ G_UNICODE_SCRIPT_BHAIKSUKI
Definition gunicode.h:619
@ G_UNICODE_SCRIPT_MRO
Definition gunicode.h:597
@ G_UNICODE_SCRIPT_LYCIAN
Definition gunicode.h:550
@ G_UNICODE_SCRIPT_SHAVIAN
Definition gunicode.h:518
@ G_UNICODE_SCRIPT_WARANG_CITI
Definition gunicode.h:607
@ G_UNICODE_SCRIPT_HATRAN
Definition gunicode.h:612
@ G_UNICODE_SCRIPT_NANDINAGARI
Definition gunicode.h:642
@ G_UNICODE_SCRIPT_COPTIC
Definition gunicode.h:473
@ G_UNICODE_SCRIPT_OLD_ITALIC
Definition gunicode.h:496
GLIB_AVAILABLE_IN_ALL gboolean g_unichar_isdigit(gunichar c) G_GNUC_CONST
GLIB_AVAILABLE_IN_ALL glong g_utf8_strlen(const gchar *p, gssize max) G_GNUC_PURE
static void error(LoadState *S, const char *why)