diff --git a/CHANGELOG.md b/CHANGELOG.md index f9f0e341bbf36f3601b9f67ab4958c693c260e45..e8c11b08e5fc34237deda7a74897ae702c9d6398 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,10 @@ current (development) See the [OSC 8 page](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda). FTXUI support proposed by @aaleino in [#662](https://github.com/ArthurSonzogni/FTXUI/issues/662). +### Screen +- Breaking: `WordBreakProperty` becomes a uint8_t enum. This yields a 0.8% + performance improvement. + ### Build - Check version compatibility when using cmake find_package() diff --git a/src/ftxui/screen/string_internal.hpp b/src/ftxui/screen/string_internal.hpp index 1d85b3e692f9a6b945e72f190cc0a558dcb4184c..7015d3bf4436d6c3e102f051f5630abdc68b2a1c 100644 --- a/src/ftxui/screen/string_internal.hpp +++ b/src/ftxui/screen/string_internal.hpp @@ -32,7 +32,7 @@ int GlyphCount(const std::string& input); // Properties from: // https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/WordBreakProperty.txt -enum class WordBreakProperty { +enum class WordBreakProperty : int8_t { ALetter, CR, Double_Quote,