#[repr(transparent)]pub struct utf8proc_option_t(pub c_uint);Expand description
Option flags used by several functions in the library.
Tuple Fields§
§0: c_uintImplementations§
Source§impl utf8proc_option_t
impl utf8proc_option_t
Sourcepub const UTF8PROC_NULLTERM: utf8proc_option_t
pub const UTF8PROC_NULLTERM: utf8proc_option_t
The given UTF-8 input is NULL terminated.
Sourcepub const UTF8PROC_STABLE: utf8proc_option_t
pub const UTF8PROC_STABLE: utf8proc_option_t
Unicode Versioning Stability has to be respected.
Sourcepub const UTF8PROC_COMPAT: utf8proc_option_t
pub const UTF8PROC_COMPAT: utf8proc_option_t
Compatibility decomposition (i.e. formatting information is lost).
Sourcepub const UTF8PROC_COMPOSE: utf8proc_option_t
pub const UTF8PROC_COMPOSE: utf8proc_option_t
Return a result with decomposed characters.
Sourcepub const UTF8PROC_DECOMPOSE: utf8proc_option_t
pub const UTF8PROC_DECOMPOSE: utf8proc_option_t
Return a result with decomposed characters.
Sourcepub const UTF8PROC_IGNORE: utf8proc_option_t
pub const UTF8PROC_IGNORE: utf8proc_option_t
Strip “default ignorable characters” such as SOFT-HYPHEN or ZERO-WIDTH-SPACE.
Sourcepub const UTF8PROC_REJECTNA: utf8proc_option_t
pub const UTF8PROC_REJECTNA: utf8proc_option_t
Return an error, if the input contains unassigned codepoints.
Sourcepub const UTF8PROC_NLF2LS: utf8proc_option_t
pub const UTF8PROC_NLF2LS: utf8proc_option_t
Indicating that NLF-sequences (LF, CRLF, CR, NEL) are representing a line break, and should be converted to the codepoint for line separation (LS).
Sourcepub const UTF8PROC_NLF2PS: utf8proc_option_t
pub const UTF8PROC_NLF2PS: utf8proc_option_t
Indicating that NLF-sequences are representing a paragraph break, and should be converted to the codepoint for paragraph separation (PS).
Sourcepub const UTF8PROC_NLF2LF: utf8proc_option_t
pub const UTF8PROC_NLF2LF: utf8proc_option_t
Indicating that the meaning of NLF-sequences is unknown.
Sourcepub const UTF8PROC_STRIPCC: utf8proc_option_t
pub const UTF8PROC_STRIPCC: utf8proc_option_t
Strips and/or convers control characters.
NLF-sequences are transformed into space, except if one of the NLF2LS/PS/LF options is given. HorizontalTab (HT) and FormFeed (FF) are treated as a NLF-sequence in this case. All other control characters are simply removed.
Sourcepub const UTF8PROC_CASEFOLD: utf8proc_option_t
pub const UTF8PROC_CASEFOLD: utf8proc_option_t
Performs unicode case folding, to be able to do a case-insensitive string comparison.
Sourcepub const UTF8PROC_CHARBOUND: utf8proc_option_t
pub const UTF8PROC_CHARBOUND: utf8proc_option_t
Inserts 0xFF bytes at the beginning of each sequence which is representing a single grapheme cluster (see UAX#29).
Sourcepub const UTF8PROC_LUMP: utf8proc_option_t
pub const UTF8PROC_LUMP: utf8proc_option_t
Lumps certain characters together.
E.g. HYPHEN U+2010 and MINUS U+2212 to ASCII “-”. See lump.md for details.
If NLF2LF is set, this includes a transformation of paragraph and line separators to ASCII line-feed (LF).
Sourcepub const UTF8PROC_STRIPMARK: utf8proc_option_t
pub const UTF8PROC_STRIPMARK: utf8proc_option_t
Strips all character markings.
This includes non-spacing, spacing and enclosing (i.e. accents). @note This option works only with @ref UTF8PROC_COMPOSE or @ref UTF8PROC_DECOMPOSE
Sourcepub const UTF8PROC_STRIPNA: utf8proc_option_t
pub const UTF8PROC_STRIPNA: utf8proc_option_t
Strip unassigned codepoints.
Source§impl utf8proc_option_t
impl utf8proc_option_t
Sourcepub const NONE: utf8proc_option_t
pub const NONE: utf8proc_option_t
Indicates no options are set.
Trait Implementations§
Source§impl BitAnd for utf8proc_option_t
impl BitAnd for utf8proc_option_t
Source§impl BitAndAssign for utf8proc_option_t
impl BitAndAssign for utf8proc_option_t
Source§fn bitand_assign(&mut self, rhs: utf8proc_option_t)
fn bitand_assign(&mut self, rhs: utf8proc_option_t)
&= operation. Read moreSource§impl BitOr for utf8proc_option_t
impl BitOr for utf8proc_option_t
Source§impl BitOrAssign for utf8proc_option_t
impl BitOrAssign for utf8proc_option_t
Source§fn bitor_assign(&mut self, rhs: utf8proc_option_t)
fn bitor_assign(&mut self, rhs: utf8proc_option_t)
|= operation. Read moreSource§impl Clone for utf8proc_option_t
impl Clone for utf8proc_option_t
Source§fn clone(&self) -> utf8proc_option_t
fn clone(&self) -> utf8proc_option_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more