Skip to content

Commit

Permalink
Exposed fieldpositer.h
Browse files Browse the repository at this point in the history
This header file and its methods are needed in the implementation
of iteration functions from `unum.h`, for example
`unum_formatDoubleForFields`.

See issue google#141 for some background.
  • Loading branch information
filmil committed Jun 25, 2020
1 parent e77bde9 commit a590763
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 0 deletions.
13 changes: 13 additions & 0 deletions rust_icu_sys/bindgen/lib_63.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2365,6 +2365,19 @@ pub enum UDisplayContext {
pub struct UFieldPositionIterator {
_unused: [u8; 0],
}
extern "C" {
pub fn ufieldpositer_open_63(status: *mut UErrorCode) -> *mut UFieldPositionIterator;
}
extern "C" {
pub fn ufieldpositer_close_63(fpositer: *mut UFieldPositionIterator);
}
extern "C" {
pub fn ufieldpositer_next_63(
fpositer: *mut UFieldPositionIterator,
beginIndex: *mut i32,
endIndex: *mut i32,
) -> i32;
}
pub type UNumberFormat = *mut ::std::os::raw::c_void;
impl UNumberFormatStyle {
pub const UNUM_DEFAULT: UNumberFormatStyle = UNumberFormatStyle::UNUM_DECIMAL;
Expand Down
13 changes: 13 additions & 0 deletions rust_icu_sys/bindgen/lib_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2365,6 +2365,19 @@ pub enum UDisplayContext {
pub struct UFieldPositionIterator {
_unused: [u8; 0],
}
extern "C" {
pub fn ufieldpositer_open_64(status: *mut UErrorCode) -> *mut UFieldPositionIterator;
}
extern "C" {
pub fn ufieldpositer_close_64(fpositer: *mut UFieldPositionIterator);
}
extern "C" {
pub fn ufieldpositer_next_64(
fpositer: *mut UFieldPositionIterator,
beginIndex: *mut i32,
endIndex: *mut i32,
) -> i32;
}
pub type UNumberFormat = *mut ::std::os::raw::c_void;
impl UNumberFormatStyle {
pub const UNUM_DEFAULT: UNumberFormatStyle = UNumberFormatStyle::UNUM_DECIMAL;
Expand Down
13 changes: 13 additions & 0 deletions rust_icu_sys/bindgen/lib_65.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,19 @@ pub enum UDisplayContext {
pub struct UFieldPositionIterator {
_unused: [u8; 0],
}
extern "C" {
pub fn ufieldpositer_open_65(status: *mut UErrorCode) -> *mut UFieldPositionIterator;
}
extern "C" {
pub fn ufieldpositer_close_65(fpositer: *mut UFieldPositionIterator);
}
extern "C" {
pub fn ufieldpositer_next_65(
fpositer: *mut UFieldPositionIterator,
beginIndex: *mut i32,
endIndex: *mut i32,
) -> i32;
}
pub type UNumberFormat = *mut ::std::os::raw::c_void;
impl UNumberFormatStyle {
pub const UNUM_DEFAULT: UNumberFormatStyle = UNumberFormatStyle::UNUM_DECIMAL;
Expand Down
13 changes: 13 additions & 0 deletions rust_icu_sys/bindgen/lib_66.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,19 @@ pub enum UDisplayContext {
pub struct UFieldPositionIterator {
_unused: [u8; 0],
}
extern "C" {
pub fn ufieldpositer_open_66(status: *mut UErrorCode) -> *mut UFieldPositionIterator;
}
extern "C" {
pub fn ufieldpositer_close_66(fpositer: *mut UFieldPositionIterator);
}
extern "C" {
pub fn ufieldpositer_next_66(
fpositer: *mut UFieldPositionIterator,
beginIndex: *mut i32,
endIndex: *mut i32,
) -> i32;
}
pub type UNumberFormat = *mut ::std::os::raw::c_void;
impl UNumberFormatStyle {
pub const UNUM_DEFAULT: UNumberFormatStyle = UNumberFormatStyle::UNUM_DECIMAL;
Expand Down
13 changes: 13 additions & 0 deletions rust_icu_sys/bindgen/lib_67.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,19 @@ pub enum UDisplayContext {
pub struct UFieldPositionIterator {
_unused: [u8; 0],
}
extern "C" {
pub fn ufieldpositer_open_67(status: *mut UErrorCode) -> *mut UFieldPositionIterator;
}
extern "C" {
pub fn ufieldpositer_close_67(fpositer: *mut UFieldPositionIterator);
}
extern "C" {
pub fn ufieldpositer_next_67(
fpositer: *mut UFieldPositionIterator,
beginIndex: *mut i32,
endIndex: *mut i32,
) -> i32;
}
pub type UNumberFormat = *mut ::std::os::raw::c_void;
impl UNumberFormatStyle {
pub const UNUM_DEFAULT: UNumberFormatStyle = UNumberFormatStyle::UNUM_DECIMAL;
Expand Down
2 changes: 2 additions & 0 deletions rust_icu_sys/bindgen/run_bindgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ readonly BINDGEN_SOURCE_MODULES=(
"udat"
"udata"
"uenum"
"ufieldpositer"
"uformattable"
"ulistformatter"
"umisc"
Expand Down Expand Up @@ -90,6 +91,7 @@ readonly BINDGEN_ALLOWLIST_FUNCTIONS=(
"udat_.*"
"udata_.*"
"uenum_.*"
"ufieldpositer_.*"
"ufmt_.*"
"ulistfmt_.*"
"uloc_.*"
Expand Down
2 changes: 2 additions & 0 deletions rust_icu_sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ mod inner {
"udat",
"udata",
"uenum",
"ufieldpositer",
"uformattable",
"ulistformatter",
"umisc",
Expand All @@ -64,6 +65,7 @@ mod inner {
"udat_.*",
"udata_.*",
"uenum_.*",
"ufieldpositer_.*",
"ufmt_.*",
"ulistfmt_.*",
"uloc_.*",
Expand Down

0 comments on commit a590763

Please sign in to comment.