is_emoji_presentation

This commit is contained in:
Jacob Sandlund
2025-08-17 21:33:37 -04:00
parent 0b7ab006e9
commit 8f0785e90a
3 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ pub const tables = [_]config.Table{
wcwidth.field("wcwidth"),
d.field("general_category"),
d.field("block"),
d.field("has_emoji_presentation"),
d.field("is_emoji_presentation"),
d.field("case_folding_full"),
// Alternative:
// d.field("case_folding_simple"),

View File

@@ -150,7 +150,7 @@ pub fn getIndex(
// we'll do this multiple times if we recurse, but this is a cached function
// call higher up (GroupCache) so this should be rare.
const p_mode: Collection.PresentationMode = if (p) |v| .{ .explicit = v } else .{
.default = if (uucode.get(.has_emoji_presentation, @intCast(cp)))
.default = if (uucode.get(.is_emoji_presentation, @intCast(cp)))
.emoji
else
.text,