summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibUnicode
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-18 08:29:47 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-18 15:13:25 +0000
commit701b7810ba0ab6efc3b990e77509e3e8a1de2006 (patch)
tree42471035e92dd291d43bc7aa3cde89f7e786aa84 /Userland/Libraries/LibUnicode
parent444b2d9ec2e962235e2ea7c15c8457c8627d7ca2 (diff)
downloadserenity-701b7810ba0ab6efc3b990e77509e3e8a1de2006.zip
LibUnicode: Generate code point abbreviations
Diffstat (limited to 'Userland/Libraries/LibUnicode')
-rw-r--r--Userland/Libraries/LibUnicode/CharacterTypes.cpp1
-rw-r--r--Userland/Libraries/LibUnicode/CharacterTypes.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibUnicode/CharacterTypes.cpp b/Userland/Libraries/LibUnicode/CharacterTypes.cpp
index 901d7f606a..72344f11b3 100644
--- a/Userland/Libraries/LibUnicode/CharacterTypes.cpp
+++ b/Userland/Libraries/LibUnicode/CharacterTypes.cpp
@@ -22,6 +22,7 @@
namespace Unicode {
Optional<String> __attribute__((weak)) code_point_display_name(u32) { return {}; }
+Optional<StringView> __attribute__((weak)) code_point_abbreviation(u32) { return {}; }
u32 __attribute__((weak)) canonical_combining_class(u32) { return {}; }
Span<SpecialCasing const* const> __attribute__((weak)) special_case_mapping(u32) { return {}; }
diff --git a/Userland/Libraries/LibUnicode/CharacterTypes.h b/Userland/Libraries/LibUnicode/CharacterTypes.h
index 246f7b69b1..484fa35bd6 100644
--- a/Userland/Libraries/LibUnicode/CharacterTypes.h
+++ b/Userland/Libraries/LibUnicode/CharacterTypes.h
@@ -16,6 +16,8 @@
namespace Unicode {
Optional<String> code_point_display_name(u32 code_point);
+Optional<StringView> code_point_abbreviation(u32 code_point);
+
u32 canonical_combining_class(u32 code_point);
Span<SpecialCasing const* const> special_case_mapping(u32 code_point);