diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-17 17:48:55 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-17 17:48:55 +0100 |
commit | 0aab7743436424170d3d3d421e85e7f066d351e9 (patch) | |
tree | fc6bbe146b92a0194978d5cb25095a6018dd660a /Userland/Libraries/LibGfx | |
parent | bebbeda7262d9139ac249387672e567fe3d3791f (diff) | |
download | serenity-0aab7743436424170d3d3d421e85e7f066d351e9.zip |
Everywhere: Fix a bunch of typos
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r-- | Userland/Libraries/LibGfx/TextDirection.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/TextDirection.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGfx/TextDirection.cpp b/Userland/Libraries/LibGfx/TextDirection.cpp index c29e1baf61..0f546fe1a5 100644 --- a/Userland/Libraries/LibGfx/TextDirection.cpp +++ b/Userland/Libraries/LibGfx/TextDirection.cpp @@ -9,7 +9,7 @@ namespace Gfx { -// FIXME: These should be parsed from the official UnicodeData.txt that specifies the class for each character (this function doesnt take into account a large amount of characters) +// FIXME: These should be parsed from the official UnicodeData.txt that specifies the class for each character (this function doesn't take into account a large amount of characters) static consteval Array<BidirectionalClass, 0x1F000> generate_char_bidi_class_lookup_table() { Array<BidirectionalClass, 0x1F000> lookup_table {}; @@ -22,7 +22,7 @@ static consteval Array<BidirectionalClass, 0x1F000> generate_char_bidi_class_loo if ((ch >= 0x30 && ch <= 0x39) || (ch >= 0x660 && ch <= 0x669) || (ch >= 0x10D30 && ch <= 0x10E7E)) char_class = BidirectionalClass::WEAK_NUMBERS; // Numerals if ((ch >= 0x23 && ch <= 0x25) || (ch >= 0x2B && ch <= 0x2F) || (ch == 0x3A)) - char_class = BidirectionalClass::WEAK_SEPARATORS; // Seperators + char_class = BidirectionalClass::WEAK_SEPARATORS; // Separators if ((ch >= 0x9 && ch <= 0xD) || (ch >= 0x1C && ch <= 0x22) || (ch >= 0x26 && ch <= 0x2A) || (ch >= 0x3B && ch <= 0x40) || (ch >= 0x5B && ch <= 0x60) || (ch >= 0x7B && ch <= 0x7E)) char_class = BidirectionalClass::NEUTRAL; lookup_table[ch] = char_class; diff --git a/Userland/Libraries/LibGfx/TextDirection.h b/Userland/Libraries/LibGfx/TextDirection.h index 87075a832e..c128d38d03 100644 --- a/Userland/Libraries/LibGfx/TextDirection.h +++ b/Userland/Libraries/LibGfx/TextDirection.h @@ -28,7 +28,7 @@ constexpr BidirectionalClass get_char_bidi_class(u32 ch) return char_bidi_class_lookup_table[ch]; } -// FIXME: These should be parsed from the official BidiMirroring.txt that specifies the mirroring character for each character (this function doesnt take into account a large amount of characters) +// FIXME: These should be parsed from the official BidiMirroring.txt that specifies the mirroring character for each character (this function doesn't take into account a large amount of characters) constexpr u32 get_mirror_char(u32 ch) { if (ch == 0x28) |