Skip to content

Commit

Permalink
Add prop enums to FFI
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 19, 2024
1 parent 6c763a3 commit 147d5df
Show file tree
Hide file tree
Showing 83 changed files with 9,681 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/properties/src/props.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ impl From<GeneralCategoryGroup> for u32 {
#[repr(transparent)]
pub struct Script(pub u16);

create_const_array! {
#[allow(missing_docs)] // These constants don't need individual documentation.
#[allow(non_upper_case_globals)]
impl Script {
Expand Down Expand Up @@ -797,6 +798,7 @@ impl Script {
pub const Yi: Script = Script(41);
pub const ZanabazarSquare: Script = Script(177);
}
}

make_enumerated_property! {
name: "Script";
Expand Down Expand Up @@ -941,6 +943,7 @@ make_enumerated_property! {
#[repr(transparent)]
pub struct LineBreak(pub u8);

create_const_array! {
#[allow(missing_docs)] // These constants don't need individual documentation.
#[allow(non_upper_case_globals)]
impl LineBreak {
Expand Down Expand Up @@ -995,6 +998,7 @@ impl LineBreak {
pub const ViramaFinal: LineBreak = LineBreak(46); // name=VF"
pub const Virama: LineBreak = LineBreak(47); // name=VI"
}
}

make_enumerated_property! {
name: "Line_Break";
Expand Down Expand Up @@ -1034,6 +1038,7 @@ make_enumerated_property! {
#[repr(transparent)]
pub struct GraphemeClusterBreak(pub u8);

create_const_array! {
#[allow(missing_docs)] // These constants don't need individual documentation.
#[allow(non_upper_case_globals)]
impl GraphemeClusterBreak {
Expand All @@ -1060,6 +1065,7 @@ impl GraphemeClusterBreak {
pub const GlueAfterZwj: GraphemeClusterBreak = GraphemeClusterBreak(16); // name="GAZ"
pub const ZWJ: GraphemeClusterBreak = GraphemeClusterBreak(17); // name="ZWJ"
}
}

make_enumerated_property! {
name: "Grapheme_Cluster_Break";
Expand Down
44 changes: 44 additions & 0 deletions ffi/capi/bindings/c/BidiClass.d.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions ffi/capi/bindings/c/BidiClass.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions ffi/capi/bindings/c/CanonicalCombiningClass.d.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions ffi/capi/bindings/c/CanonicalCombiningClass.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions ffi/capi/bindings/c/EastAsianWidth.d.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions ffi/capi/bindings/c/EastAsianWidth.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions ffi/capi/bindings/c/GraphemeClusterBreak.d.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions ffi/capi/bindings/c/GraphemeClusterBreak.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions ffi/capi/bindings/c/HangulSyllableType.d.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 147d5df

Please sign in to comment.