Expand description
Line ending detection, universal line splitting, and format conversion.
Structs§
- Line
Ending Format - Full specification of line ending style and termination mode.
Enums§
- Char
Encoding - Structured single-byte character encoding settings.
- Line
Ending Kind - Line ending delimiter pattern.
- Line
Ending Option - Option controlling line ending conversion during encoding, decoding, and transcoding.
- Termination
Mode - Mode defining whether newlines terminate every line or only separate lines.
Constants§
Functions§
- apply_
line_ ending_ option - Converts line endings in a string according to a
LineEndingOptionand target encoding. - convert_
line_ endings - Converts all line endings in a string to the specified
LineEndingFormat. - detect_
line_ ending - Detects the predominant line ending delimiter in a string.
- normalize_
to_ lf - Normalizes all line endings in the string to standard POSIX LF (
\n). - split_
lines_ universal - Splits a string into lines, recognizing all supported line ending variants:
\r\n,\n\r,\r,\n,\x1E, and\u{0085}(NEL).