Crates.io | text-utils |
lib.rs | text-utils |
version | 0.4.3 |
source | src |
created_at | 2020-03-10 11:35:54.94936 |
updated_at | 2021-12-26 12:18:34.848606 |
description | Text utils for unescaping and align |
homepage | |
repository | https://github.com/notedge/notedown-rs/tree/master/projects/text-utils |
max_upload_size | |
id | 217231 |
size | 11,153 |
All designs only consider spaces and carriage returns, so sorry for Tab
and CRLF
.
All interfaces are function calls instead of traits.
Most interfaces return String
instead of Cow<str>
unescape
:
unescape_utf8
:
unescape_only
:
url_encode
: encoding strings with %
url_decode
: decoding strings of %
indent
: adds spaces to each non-empty lineindent_with
: adds prefix to each non-empty lineindent_count
:dedent
: removes leading whitespace from each linededent_less_than
: removes at most n leading whitespace from each line