Expand description
String formatting helpers: byte counts, plurals, path conversion.
Functionsยง
- format_
bytes - Format a byte count as a human-readable string with one decimal place.
Examples:
"0 B","512 B","1.0 KB","3.5 MB","1.2 GB". - path_
to_ string - Convert a
Pathto aStringviadisplay(). - plural
- Returns
""whenn == 1, otherwise"s".