1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:45:08 +00:00
serenity/Userland/Libraries/LibUnicode
Timothy Flynn 9413c3a0d1 LibUnicode: Generate a map of code points to their Unicode table index
The current strategy of searching for a code point within the generated
table is slow for code points > U+0377 (the last code point whose index
is the same value as the code point itself). For larger code points, we
are doing a linear search through the table.

Instead, generate a HashMap of each code point to its entry in the table
for faster runtime lookups.

This had the added benefit of being able to remove a fair amount of code
from the generator. We no longer need to track that last contiguous code
point (U+0377) nor each code point's index in the generated table.
2021-08-04 11:18:24 +02:00
..
CodeGenerators LibUnicode: Generate a map of code points to their Unicode table index 2021-08-04 11:18:24 +02:00
CharacterTypes.cpp LibUnicode: Add public methods to compare and lookup General Categories 2021-08-02 21:02:09 +04:30
CharacterTypes.h LibUnicode: Add public methods to compare and lookup General Categories 2021-08-02 21:02:09 +04:30
CMakeLists.txt LibUnicode: Introduce a Unicode library for interacting with UCD files 2021-07-26 17:03:55 +01:00
Forward.h LibUnicode: Generate General Category unions and aliases 2021-08-02 21:02:09 +04:30
unicode_data.cmake LibUnicode: Generate General Category unions and aliases 2021-08-02 21:02:09 +04:30