Expand description
Operations to transform strings,
including the map function.
Contains unicode normalization functionality.
Modules§
- advanced
- The “advanced” interface to transformations, producing potentially non-UTF8 data.
- buffer
- Implements the
MaybeUninitSliceExtextension type.
Structs§
- Composition
Options - Controls Unicode composition and decomposition.
- Decomposed
Char - An array of codepoints, resulting from the
decompose_charfunction. - Insufficient
Space Error - Indicates that there was insufficient space in the destination buffer, and indicates the amount of space that would be necessary.
- Transform
Options - Options for the
map,decompose_buffer, anddecompose_charfunctions.
Enums§
- Composition
Direction - Controls whether composition or decomposition is being performed.
- NlfConversion
Mode - Indicates how NLF-sequences (LF, CRLF, CR, NEL) should be converted.
- Unassigned
Codepoint Handling - Indicates how to handle unassigned codepoints.
- Unicode
Normalization Form - The type of [unicode normalization form].
Functions§
- decompose_
buffer - Decompose a UTF8 string into an array of codepoints,
applying the specified
TransformOptions. - decompose_
char - Decompose a codepoint into an array of codepoints,
applying the specified
TransformOptions. - map
- Apply a transformation to a string, indicated by the
TransformOptions. - map_
into - Apply a transformation to a string, indicated by the
TransformOptions, writing the result into the specified destination string. - normalize
- Apply normalization to the specified string.
- normalize_
utf32 - Normalize a buffer of
MaybeMarkerCodepointin-place, respecting theTransformOptions
Type Aliases§
- Transform
Callback - A callback to a transform function, allowing the user to change codepoints before utf8proc starts processing them.