From 398c52e1b9a5c91cd99277463080819ebdedfe1d Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 2 Jan 2025 14:22:41 +0100 Subject: Work around pango bug See https://gitlab.gnome.org/GNOME/pango/-/issues/798 and https://gitlab.gnome.org/GNOME/pango/-/issues/832 --- main/vapi/icu-uc.vapi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'main/vapi') diff --git a/main/vapi/icu-uc.vapi b/main/vapi/icu-uc.vapi index db1609ad..9eb3d274 100644 --- a/main/vapi/icu-uc.vapi +++ b/main/vapi/icu-uc.vapi @@ -1,14 +1,23 @@ namespace ICU { -[CCode (cprefix = "UCHAR_", cheader_filename = "unicode/uchar.h")] +[CCode (cname = "UProperty", cprefix = "UCHAR_", has_type_id = false, cheader_filename = "unicode/uchar.h")] public enum Property { EMOJI, EMOJI_PRESENTATION, EMOJI_MODIFIER, EMOJI_MODIFIER_BASE, + BIDI_CLASS, +} + +[CCode (cname = "UCharDirection", cprefix = "U_", has_type_id = false, cheader_filename = "unicode/uchar.h")] +public enum CharDirection { + DIR_NON_SPACING_MARK, } [CCode (cname = "u_hasBinaryProperty", cheader_filename = "unicode/uchar.h")] public bool has_binary_property(unichar c, Property p); +[CCode (cname = "u_getIntPropertyValue", cheader_filename = "unicode/uchar.h")] +public int32 get_int_property_value(unichar c, Property p); + } -- cgit v1.2.3-70-g09d2