Skip to content

Commit 3b6290b

Browse files
authored
Merge pull request #111 from contour-terminal/unicode-query/show-emoji-presentation
unicode-query: Show emoji presentation in Unicode properties query tool
2 parents 4872435 + 126e2cf commit 3b6290b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.0 (unreleased)
2+
3+
- Show emoji presentation in Unicode properties query tool.
4+
15
## 0.4.0 (2023-11-27)
26

37
- Fix UTF-8 decoding of incomplete UTF-8 multibyte sequences to properly report `Invalid`.

src/tools/unicode-query.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ void showCodepointProperties(char32_t codepoint)
155155
cout << "East Asian Width : " << properties.east_asian_width << '\n';
156156
cout << "Character width : " << unsigned(properties.char_width) << '\n';
157157
cout << "Emoji Segmentation Category : " << properties.emoji_segmentation_category << '\n';
158+
cout << "Emoji Presentation : " << (properties.emoji_presentation() ? "emoji" : "text") << '\n';
158159
cout << "Grapheme Cluster Break : " << properties.grapheme_cluster_break << '\n';
159160
cout << "\n";
160161
// clang-format on

0 commit comments

Comments
 (0)