Type Alias ul_next_sys::ULFileSystemGetFileCharsetCallback
source · pub type ULFileSystemGetFileCharsetCallback = Option<unsafe extern "C" fn(path: ULString) -> ULString>;
Expand description
Get the charset / encoding of the file (eg “utf-8”).
This is only important for text-based files and is usually determined by analyzing the contents of the file.
If a charset cannot be determined, it’s usually safe to return “utf-8” for this value.
The library will consume the result and call ulDestroyString() after this call returns.
Aliased Type§
enum ULFileSystemGetFileCharsetCallback {
None,
Some(unsafe extern "C" fn(_: *mut C_String) -> *mut C_String),
}