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 Sep 2, 2023
1 parent 8986eb9 commit df05d03
Show file tree
Hide file tree
Showing 6 changed files with 704 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .typos.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[files]
extend-exclude = ["auto", "sys", "gobject-sys", "*.svg"]
extend-exclude = ["auto", "sys", "gobject-sys", "*.svg", "glib/Gir.toml"]

[default.extend-words]
# Ignore false-positives
Expand Down
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"
ignore = true

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

0 comments on commit df05d03

Please sign in to comment.