Struct machinery_api::foundation::UnicodeApi [−][src]
#[repr(C)]pub struct UnicodeApi {}Show 16 fields
pub is_valid: Option<unsafe extern "C" fn(utf8: *const c_char) -> bool>, pub truncate: Option<unsafe extern "C" fn(utf8: *mut c_char)>, pub utf8_encode: Option<unsafe extern "C" fn(utf8: *mut c_char, codepoint: u32) -> *mut c_char>, pub utf8_decode: Option<unsafe extern "C" fn(utf8: *mut *const c_char) -> u32>, pub utf8_num_codepoints: Option<unsafe extern "C" fn(utf8: *const c_char) -> u32>, pub utf8_decode_n: Option<unsafe extern "C" fn(codepoints: *mut u32, n: u32, utf8: *const c_char) -> u32>, pub utf8_to_utf32: Option<unsafe extern "C" fn(utf8: *const c_char, ta: *mut TempAllocatorI) -> *mut u32>, pub utf8_to_utf32_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u32>, pub utf32_to_utf8: Option<unsafe extern "C" fn(utf32: *const u32, ta: *mut TempAllocatorI) -> *mut c_char>, pub utf32_to_utf8_n: Option<unsafe extern "C" fn(utf32: *const u32, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>, pub utf16_encode: Option<unsafe extern "C" fn(utf16: *mut u16, codepoint: u32) -> *mut u16>, pub utf16_decode: Option<unsafe extern "C" fn(utf16: *mut *const u16) -> u32>, pub utf8_to_utf16: Option<unsafe extern "C" fn(utf8: *const c_char, ta: *mut TempAllocatorI) -> *mut u16>, pub utf8_to_utf16_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u16>, pub utf16_to_utf8: Option<unsafe extern "C" fn(utf16: *const u16, ta: *mut TempAllocatorI) -> *mut c_char>, pub utf16_to_utf8_n: Option<unsafe extern "C" fn(utf16: *const u16, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>,
Fields
is_valid: Option<unsafe extern "C" fn(utf8: *const c_char) -> bool>truncate: Option<unsafe extern "C" fn(utf8: *mut c_char)>utf8_encode: Option<unsafe extern "C" fn(utf8: *mut c_char, codepoint: u32) -> *mut c_char>utf8_decode: Option<unsafe extern "C" fn(utf8: *mut *const c_char) -> u32>utf8_num_codepoints: Option<unsafe extern "C" fn(utf8: *const c_char) -> u32>utf8_decode_n: Option<unsafe extern "C" fn(codepoints: *mut u32, n: u32, utf8: *const c_char) -> u32>utf8_to_utf32: Option<unsafe extern "C" fn(utf8: *const c_char, ta: *mut TempAllocatorI) -> *mut u32>utf8_to_utf32_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u32>utf32_to_utf8: Option<unsafe extern "C" fn(utf32: *const u32, ta: *mut TempAllocatorI) -> *mut c_char>utf32_to_utf8_n: Option<unsafe extern "C" fn(utf32: *const u32, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>utf16_encode: Option<unsafe extern "C" fn(utf16: *mut u16, codepoint: u32) -> *mut u16>utf16_decode: Option<unsafe extern "C" fn(utf16: *mut *const u16) -> u32>utf8_to_utf16: Option<unsafe extern "C" fn(utf8: *const c_char, ta: *mut TempAllocatorI) -> *mut u16>utf8_to_utf16_n: Option<unsafe extern "C" fn(utf8: *const c_char, n: u32, ta: *mut TempAllocatorI) -> *mut u16>utf16_to_utf8: Option<unsafe extern "C" fn(utf16: *const u16, ta: *mut TempAllocatorI) -> *mut c_char>utf16_to_utf8_n: Option<unsafe extern "C" fn(utf16: *const u16, n: u32, ta: *mut TempAllocatorI) -> *mut c_char>Implementations
pub unsafe fn utf8_to_utf32_n(
&self,
utf8: *const c_char,
n: u32,
ta: *mut TempAllocatorI
) -> *mut u32
pub unsafe fn utf32_to_utf8_n(
&self,
utf32: *const u32,
n: u32,
ta: *mut TempAllocatorI
) -> *mut c_char
pub unsafe fn utf8_to_utf16_n(
&self,
utf8: *const c_char,
n: u32,
ta: *mut TempAllocatorI
) -> *mut u16
pub unsafe fn utf16_to_utf8_n(
&self,
utf16: *const u16,
n: u32,
ta: *mut TempAllocatorI
) -> *mut c_char
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for UnicodeApi
impl Send for UnicodeApi
impl Sync for UnicodeApi
impl Unpin for UnicodeApi
impl UnwindSafe for UnicodeApi
Blanket Implementations
Mutably borrows from an owned value. Read more