text-utils

Crates.iotext-utils
lib.rstext-utils
version0.4.3
sourcesrc
created_at2020-03-10 11:35:54.94936
updated_at2021-12-26 12:18:34.848606
descriptionText utils for unescaping and align
homepage
repositoryhttps://github.com/notedge/notedown-rs/tree/master/projects/text-utils
max_upload_size
id217231
size11,153
SasakiSaki (oovm)

documentation

https://docs.rs/text-utils

README

Text Toolbox

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>

Functions

Escaping

  • unescape:

  • unescape_utf8:

  • unescape_only:

  • url_encode: encoding strings with %

  • url_decode: decoding strings of %

Align

  • indent: adds spaces to each non-empty line
  • indent_with: adds prefix to each non-empty line
  • indent_count:
  • dedent: removes leading whitespace from each line
  • dedent_less_than: removes at most n leading whitespace from each line

Table

Commit count: 261

cargo fmt