summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-29 18:08:19 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-03-29 18:08:19 +0000
commit5ccc0c7aa5de2667a5e0da8c35387eb662c3edff (patch)
tree649b79262f0906cd9bc3077c523960b5b9fe7c8e /pango/break.c
parent296317f2d0d628f2104168de3dc55458ed7f853a (diff)
parentf29436d34a8d22b3dd7dbfa2d3c5c2b52a50ee82 (diff)
downloadpango-5ccc0c7aa5de2667a5e0da8c35387eb662c3edff.tar.gz
Merge branch 'misc-speedups2' into 'master'
Misc speedups2 See merge request GNOME/pango!307
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/pango/break.c b/pango/break.c
index 35b947c0..fadf01d0 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -502,9 +502,7 @@ pango_default_break (const gchar *text,
else if (GB_type == GB_InHangulSyllable)
is_grapheme_boundary = FALSE; /* Rules GB6, GB7, GB8 */
else if (GB_type == GB_Extend)
- {
- is_grapheme_boundary = FALSE; /* Rule GB9 */
- }
+ is_grapheme_boundary = FALSE; /* Rule GB9 */
else if (GB_type == GB_ZWJ)
is_grapheme_boundary = FALSE; /* Rule GB9 */
else if (GB_type == GB_SpacingMark)
@@ -641,14 +639,12 @@ pango_default_break (const gchar *text,
if (wc >= 0x24B6 && wc <= 0x24E9) /* Other_Alphabetic */
goto Alphabetic;
- if (G_UNLIKELY(wc >=0x1F1E6 && wc <=0x1F1FF))
+ if (G_UNLIKELY(wc >= 0x1F1E6 && wc <= 0x1F1FF))
{
- if (prev_WB_type == WB_RI_Odd)
- WB_type = WB_RI_Even;
- else if (prev_WB_type == WB_RI_Even)
- WB_type = WB_RI_Odd;
- else
- WB_type = WB_RI_Odd;
+ if (prev_WB_type == WB_RI_Odd)
+ WB_type = WB_RI_Even;
+ else
+ WB_type = WB_RI_Odd;
}
break;
@@ -1563,7 +1559,6 @@ pango_default_break (const gchar *text,
attrs[i].is_line_break = TRUE; /* Rule LB3 */
attrs[0].is_line_break = FALSE; /* Rule LB2 */
-
}
static gboolean