Skip to content

Commit ccffdb4

Browse files
committed
More older ICU fixes
1 parent 82457fb commit ccffdb4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/inc/sys_string/impl/unicode/mappings_icu.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,15 @@ namespace sysstr::util::unicode
289289
hangul_lv = U_GCB_LV,
290290
hangul_lvt = U_GCB_LVT,
291291
extended_pictographic = U_GCB_REGIONAL_INDICATOR + 1,
292+
#if U_ICU_VERSION_MAJOR_NUM >= 76
292293
in_cb_consonant = (U_INCB_CONSONANT << 4),
293294
in_cb_extend = (U_INCB_EXTEND << 4),
294295
in_cb_linker = (U_INCB_LINKER << 4),
296+
#else
297+
in_cb_consonant = (1 << 4),
298+
in_cb_extend = (2 << 4),
299+
in_cb_linker = (3 << 4),
300+
#endif
295301

296302
basic_mask = 15,
297303
in_cb_mask = 48
@@ -316,7 +322,7 @@ namespace sysstr::util::unicode
316322
return extended_pictographic;
317323
}
318324

319-
#if U_ICU_VERSION_MAJOR_NUM >= 74
325+
#if U_ICU_VERSION_MAJOR_NUM >= 76
320326
auto icb = UIndicConjunctBreak(icu_prop_map<UCHAR_INDIC_CONJUNCT_BREAK>::lookup(c));
321327
ret |= uint8_t(icb << 4);
322328
#endif

0 commit comments

Comments
 (0)