Merge branch 'unicode-typo-fix' into 'main'

Fix a Unicode typo

See merge request GNOME/glib!2201
This commit is contained in:
Philip Withnall 2021-08-02 13:44:20 +00:00
commit 92bdc92d6d
5 changed files with 16 additions and 5 deletions

View File

@ -119,7 +119,7 @@ $FOLDING_MAPPING = 2;
'CJ' => "G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER",
'CL' => "G_UNICODE_BREAK_CLOSE_PUNCTUATION",
'CM' => "G_UNICODE_BREAK_COMBINING_MARK",
'CP' => "G_UNICODE_BREAK_CLOSE_PARANTHESIS",
'CP' => "G_UNICODE_BREAK_CLOSE_PARENTHESIS",
'CR' => "G_UNICODE_BREAK_CARRIAGE_RETURN",
'EB' => "G_UNICODE_BREAK_EMOJI_BASE",
'EM' => "G_UNICODE_BREAK_EMOJI_MODIFIER",

View File

@ -38,7 +38,7 @@ static const gint8 break_property_data[][256] = {
G_UNICODE_BREAK_QUOTATION, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_PREFIX, G_UNICODE_BREAK_POSTFIX,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_QUOTATION,
G_UNICODE_BREAK_OPEN_PUNCTUATION, G_UNICODE_BREAK_CLOSE_PARANTHESIS,
G_UNICODE_BREAK_OPEN_PUNCTUATION, G_UNICODE_BREAK_CLOSE_PARENTHESIS,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_PREFIX,
G_UNICODE_BREAK_INFIX_SEPARATOR, G_UNICODE_BREAK_HYPHEN,
G_UNICODE_BREAK_INFIX_SEPARATOR, G_UNICODE_BREAK_SYMBOL,
@ -64,7 +64,7 @@ static const gint8 break_property_data[][256] = {
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_OPEN_PUNCTUATION,
G_UNICODE_BREAK_PREFIX, G_UNICODE_BREAK_CLOSE_PARANTHESIS,
G_UNICODE_BREAK_PREFIX, G_UNICODE_BREAK_CLOSE_PARENTHESIS,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_ALPHABETIC, G_UNICODE_BREAK_ALPHABETIC,

View File

@ -194,7 +194,8 @@ typedef enum
* @G_UNICODE_BREAK_HANGUL_T_JAMO: Hangul T Jamo (JT)
* @G_UNICODE_BREAK_HANGUL_LV_SYLLABLE: Hangul LV Syllable (H2)
* @G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE: Hangul LVT Syllable (H3)
* @G_UNICODE_BREAK_CLOSE_PARANTHESIS: Closing Parenthesis (CP). Since 2.28
* @G_UNICODE_BREAK_CLOSE_PARANTHESIS: Closing Parenthesis (CP). Since 2.28. Deprecated: 2.70: Use %G_UNICODE_BREAK_CLOSE_PARENTHESIS instead.
* @G_UNICODE_BREAK_CLOSE_PARENTHESIS: Closing Parenthesis (CP). Since 2.70
* @G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: Conditional Japanese Starter (CJ). Since: 2.32
* @G_UNICODE_BREAK_HEBREW_LETTER: Hebrew Letter (HL). Since: 2.32
* @G_UNICODE_BREAK_REGIONAL_INDICATOR: Regional Indicator (RI). Since: 2.36
@ -248,6 +249,7 @@ typedef enum
G_UNICODE_BREAK_HANGUL_LV_SYLLABLE,
G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE,
G_UNICODE_BREAK_CLOSE_PARANTHESIS,
G_UNICODE_BREAK_CLOSE_PARENTHESIS GLIB_AVAILABLE_ENUMERATOR_IN_2_70 = G_UNICODE_BREAK_CLOSE_PARANTHESIS,
G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER,
G_UNICODE_BREAK_HEBREW_LETTER,
G_UNICODE_BREAK_REGIONAL_INDICATOR,

View File

@ -131,7 +131,7 @@ test_unichar_break_type (void)
{ G_UNICODE_BREAK_HYPHEN, 0x002D },
{ G_UNICODE_BREAK_NON_STARTER, 0x17D6 },
{ G_UNICODE_BREAK_OPEN_PUNCTUATION, 0x0028 },
{ G_UNICODE_BREAK_CLOSE_PARANTHESIS, 0x0029 },
{ G_UNICODE_BREAK_CLOSE_PARENTHESIS, 0x0029 },
{ G_UNICODE_BREAK_CLOSE_PUNCTUATION, 0x007D },
{ G_UNICODE_BREAK_QUOTATION, 0x0022 },
{ G_UNICODE_BREAK_EXCLAMATION, 0x0021 },

View File

@ -3,10 +3,19 @@
#include "glib-enumtypes.h"
#include <glib-object.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/*** END file-header ***/
/*** BEGIN file-tail ***/
G_GNUC_END_IGNORE_DEPRECATIONS
/*** END file-tail ***/
/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/