Skip to content

Commit

Permalink
glib: Bind g_unichar APIs
Browse files Browse the repository at this point in the history
Some notes:
* names were made "rustier", e.g.:` g_unichar_istitle` became
`is_titlecase`
* I did not include APIs that were already availabe through Rust's char
  • Loading branch information
RealKC committed Aug 11, 2023
1 parent 751e1dd commit 84173f4
Show file tree
Hide file tree
Showing 5 changed files with 726 additions and 0 deletions.
11 changes: 11 additions & 0 deletions glib/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ generate = [
"GLib.SpawnFlags",
"GLib.Time",
"GLib.TimeType",
"GLib.UnicodeType",
"GLib.UriError",
"GLib.UriFlags",
"GLib.UriHideFlags",
Expand Down Expand Up @@ -513,6 +514,9 @@ status = "generate"
name = "variant_get_gtype"
# get_type() function that should be used in StaticType impl instead
ignore = true
[[object.function]]
pattern = "unichar_((break_)?type|get_(script|mirror_char)|combining_class|is(mark|graph|punct|title|defined|wide(_cjk)?|zerowidth)|totitle|(fully_)?decompose|compose)"
manual = true # defined as extension methods on char

[[object]]
name = "GLib.Checksum"
Expand Down Expand Up @@ -771,6 +775,13 @@ concurrency = "send+sync"
# in-out parameter
manual = true

[[object]]
name = "GLib.UnicodeBreakType"
status = "generate"
[[object.member]]
name = "close_paranthesis"

Check warning on line 782 in glib/Gir.toml

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"paranthesis" should be "parenthesis".
ignore = true

[[object]]
name = "GLib.UnicodeScript"
status = "generate"
Expand Down

0 comments on commit 84173f4

Please sign in to comment.