icu-74.patch 890 B

1234567891011121314151617181920
  1. See ICU change https://github.com/unicode-org/icu/commit/2e45e6ec0e84a1c01812015a254ea31b286316fb
  2. Similar has happened in the past. See:
  3. https://chromium.googlesource.com/chromium/src/+/e60b571faa3f14dd9119a6792dccf12f8bf80192
  4. diff --git a/third_party/blink/renderer/platform/text/text_break_iterator.cc b/third_party/blink/renderer/platform/text/text_break_iterator.cc
  5. index ddfbd51..247da06 100644
  6. --- a/third_party/blink/renderer/platform/text/text_break_iterator.cc
  7. +++ b/third_party/blink/renderer/platform/text/text_break_iterator.cc
  8. @@ -161,7 +161,9 @@ static const unsigned char kAsciiLineBreakTable[][(kAsciiLineBreakTableLastChar
  9. };
  10. // clang-format on
  11. -#if U_ICU_VERSION_MAJOR_NUM >= 58
  12. +#if U_ICU_VERSION_MAJOR_NUM >= 74
  13. +#define BA_LB_COUNT (U_LB_COUNT - 8)
  14. +#elif U_ICU_VERSION_MAJOR_NUM >= 58
  15. #define BA_LB_COUNT (U_LB_COUNT - 3)
  16. #else
  17. #define BA_LB_COUNT U_LB_COUNT