Module swiss_army_knife::strings
source · [−]Expand description
String utilities.
Modules
Into a line-feed terminated byte-string.
Conversions from numbers.
Conversions to numbers.
Structs
Represents a constant pointer to a C string.
Unescapes a Linux string escaped using the seq_file_path()
function.
An array of c strings (nul terminated byte arrays) with a final nul.
Enums
Use upper case (eg A
to F
) or lower case (eg a
to f
) for digits above 9.
Traits
CString extensions.
C string fragments.
From bytes.
An extension trait for OsStr
.
Functions
Converts a C string pointer.
Writes an escaped ASCII string.
Parse a set of ASCII strings each terminated by NUL, or, an empty (zero byte) value.
Path to CString.
replace.
To CString robustly.
Without suffix.