Type Alias harfbuzz_sys::hb_unicode_decompose_compatibility_func_t
source · pub type hb_unicode_decompose_compatibility_func_t = Option<unsafe extern "C" fn(ufuncs: *mut hb_unicode_funcs_t, u: hb_codepoint_t, decomposed: *mut hb_codepoint_t, user_data: *mut c_void) -> c_uint>;
Expand description
hb_unicode_decompose_compatibility_func_t: @ufuncs: a Unicode function structure @u: codepoint to decompose @decomposed: address of codepoint array (of length %HB_UNICODE_MAX_DECOMPOSITION_LEN) to write decomposition into @user_data: user data pointer as passed to hb_unicode_funcs_set_decompose_compatibility_func()
Fully decompose @u to its Unicode compatibility decomposition. The codepoints of the decomposition will be written to @decomposed. The complete length of the decomposition will be returned.
If @u has no compatibility decomposition, zero should be returned.
The Unicode standard guarantees that a buffer of length %HB_UNICODE_MAX_DECOMPOSITION_LEN codepoints will always be sufficient for any compatibility decomposition plus an terminating value of 0. Consequently, @decompose must be allocated by the caller to be at least this length. Implementations of this function type must ensure that they do not write past the provided array.
Return value: number of codepoints in the full compatibility decomposition of @u, or 0 if no decomposition available.
Deprecated: 2.0.0
Aliased Type§
enum hb_unicode_decompose_compatibility_func_t {
None,
Some(unsafe extern "C" fn(_: *mut hb_unicode_funcs_t, _: u32, _: *mut u32, _: *mut c_void) -> u32),
}