diff --git a/build/showprogress.sh b/build/showprogress.sh index de6f5c2c..3ae05a3c 100755 --- a/build/showprogress.sh +++ b/build/showprogress.sh @@ -16,8 +16,9 @@ C_API_HEADER_NAMES=( "uformattable" "ulistformatter" "uloc" - "upluralrules" "umsg" + "unum" + "upluralrules" "ustring" "utext" ) diff --git a/coverage/report.md b/coverage/report.md index 965a2a20..22b419a6 100644 --- a/coverage/report.md +++ b/coverage/report.md @@ -10,8 +10,9 @@ | `uformattable.h` | 7 / 13 | | `ulistformatter.h` | 2 / 8 | | `uloc.h` | 19 / 42 | -| `upluralrules.h` | 3 / 7 | | `umsg.h` | 6 / 20 | +| `unum.h` | 17 / 31 | +| `upluralrules.h` | 3 / 7 | | `ustring.h` | 3 / 61 | | `utext.h` | 3 / 28 | # Unimplemented functions per header @@ -282,18 +283,6 @@ | `uloc_setKeywordValue` | | | `uloc_toLegacyType` | | -# Header: `upluralrules.h` - -| Unimplemented | Implemented | -| ------------- | ----------- | -| | `uplrules_getKeywords` | -| | `uplrules_openForType` | -| | `uplrules_select` | -| `uplrules_close` | | -| `uplrules_open` | | -| `uplrules_selectFormatted` | | -| `uplrules_selectWithFormat` | | - # Header: `umsg.h` | Unimplemented | Implemented | @@ -320,6 +309,55 @@ | `u_vparseMessage` | | | `u_vparseMessageWithError` | | +# Header: `unum.h` + +| Unimplemented | Implemented | +| ------------- | ----------- | +| | `$function_name` | +| | `unum_clone` | +| | `unum_close` | +| | `unum_formatDecimal` | +| | `unum_formatDoubleCurrency` | +| | `unum_formatDoubleForFields` | +| | `unum_formatUFormattable` | +| | `unum_getAttribute` | +| | `unum_getAvailable` | +| | `unum_getSymbol` | +| | `unum_getTextAttribute` | +| | `unum_open` | +| | `unum_parseToUFormattable` | +| | `unum_setAttribute` | +| | `unum_setSymbol` | +| | `unum_setTextAttribute` | +| | `unum_toPattern` | +| `unum_applyPattern` | | +| `unum_countAvailable` | | +| `unum_format` | | +| `unum_formatDouble` | | +| `unum_formatInt64` | | +| `unum_getContext` | | +| `unum_getDoubleAttribute` | | +| `unum_getLocaleByType` | | +| `unum_parse` | | +| `unum_parseDecimal` | | +| `unum_parseDouble` | | +| `unum_parseDoubleCurrency` | | +| `unum_parseInt64` | | +| `unum_setContext` | | +| `unum_setDoubleAttribute` | | + +# Header: `upluralrules.h` + +| Unimplemented | Implemented | +| ------------- | ----------- | +| | `uplrules_getKeywords` | +| | `uplrules_openForType` | +| | `uplrules_select` | +| `uplrules_close` | | +| `uplrules_open` | | +| `uplrules_selectFormatted` | | +| `uplrules_selectWithFormat` | | + # Header: `ustring.h` | Unimplemented | Implemented | diff --git a/coverage/unum_all.txt b/coverage/unum_all.txt new file mode 100644 index 00000000..890b1b7d --- /dev/null +++ b/coverage/unum_all.txt @@ -0,0 +1,31 @@ +unum_applyPattern +unum_clone +unum_close +unum_countAvailable +unum_format +unum_formatDecimal +unum_formatDouble +unum_formatDoubleCurrency +unum_formatDoubleForFields +unum_formatInt64 +unum_formatUFormattable +unum_getAttribute +unum_getAvailable +unum_getContext +unum_getDoubleAttribute +unum_getLocaleByType +unum_getSymbol +unum_getTextAttribute +unum_open +unum_parse +unum_parseDecimal +unum_parseDouble +unum_parseDoubleCurrency +unum_parseInt64 +unum_parseToUFormattable +unum_setAttribute +unum_setContext +unum_setDoubleAttribute +unum_setSymbol +unum_setTextAttribute +unum_toPattern diff --git a/coverage/unum_implemented.txt b/coverage/unum_implemented.txt new file mode 100644 index 00000000..62ec9f56 --- /dev/null +++ b/coverage/unum_implemented.txt @@ -0,0 +1,17 @@ +$function_name +unum_clone +unum_close +unum_formatDecimal +unum_formatDoubleCurrency +unum_formatDoubleForFields +unum_formatUFormattable +unum_getAttribute +unum_getAvailable +unum_getSymbol +unum_getTextAttribute +unum_open +unum_parseToUFormattable +unum_setAttribute +unum_setSymbol +unum_setTextAttribute +unum_toPattern diff --git a/rust_icu_sys/bindgen/lib_63.rs b/rust_icu_sys/bindgen/lib_63.rs index d5900bb7..79ce50b4 100644 --- a/rust_icu_sys/bindgen/lib_63.rs +++ b/rust_icu_sys/bindgen/lib_63.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen */ +/* automatically generated by rust-bindgen 0.54.1 */ pub type size_t = ::std::os::raw::c_ulong; pub type wchar_t = ::std::os::raw::c_int; diff --git a/rust_icu_sys/bindgen/lib_64.rs b/rust_icu_sys/bindgen/lib_64.rs index 650896a7..39caadb4 100644 --- a/rust_icu_sys/bindgen/lib_64.rs +++ b/rust_icu_sys/bindgen/lib_64.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen */ +/* automatically generated by rust-bindgen 0.54.1 */ pub type size_t = ::std::os::raw::c_ulong; pub type wchar_t = ::std::os::raw::c_int; diff --git a/rust_icu_sys/bindgen/lib_65.rs b/rust_icu_sys/bindgen/lib_65.rs index 272f22c7..0af0c4b3 100644 --- a/rust_icu_sys/bindgen/lib_65.rs +++ b/rust_icu_sys/bindgen/lib_65.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen */ +/* automatically generated by rust-bindgen 0.54.1 */ pub type size_t = ::std::os::raw::c_ulong; pub type wchar_t = ::std::os::raw::c_int; diff --git a/rust_icu_sys/bindgen/lib_66.rs b/rust_icu_sys/bindgen/lib_66.rs index 07e00b48..77ab4d10 100644 --- a/rust_icu_sys/bindgen/lib_66.rs +++ b/rust_icu_sys/bindgen/lib_66.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen */ +/* automatically generated by rust-bindgen 0.54.1 */ pub type size_t = ::std::os::raw::c_ulong; pub type wchar_t = ::std::os::raw::c_int; diff --git a/rust_icu_sys/bindgen/lib_67.rs b/rust_icu_sys/bindgen/lib_67.rs index 153198bc..3694d160 100644 --- a/rust_icu_sys/bindgen/lib_67.rs +++ b/rust_icu_sys/bindgen/lib_67.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen */ +/* automatically generated by rust-bindgen 0.54.1 */ pub type size_t = ::std::os::raw::c_ulong; pub type wchar_t = ::std::os::raw::c_int; diff --git a/rust_icu_sys/bindgen/run_bindgen.sh b/rust_icu_sys/bindgen/run_bindgen.sh index 433447f5..a1d5013c 100755 --- a/rust_icu_sys/bindgen/run_bindgen.sh +++ b/rust_icu_sys/bindgen/run_bindgen.sh @@ -71,7 +71,9 @@ readonly BINDGEN_ALLOWLIST_TYPES=( "UField.*" "UFormat.*" "UFormattedList.*" + "ULOC.*" "UListFormatter.*" + "ULoc.*" "UMessageFormat" "UNUM.*" "UNumber.*", diff --git a/rust_icu_sys/build.rs b/rust_icu_sys/build.rs index 5a148696..8557c6a3 100644 --- a/rust_icu_sys/build.rs +++ b/rust_icu_sys/build.rs @@ -95,6 +95,8 @@ mod inner { "UFormat.*", "UFormattedList.*", "UListFormatter.*", + "ULoc.*", + "ULOC.*", "UMessageFormat", "UNUM.*", "UNumber.*",