voca_rs 0.1.0

Voca_rs is inspired by Voca.js and string.py
Documentation

voca_rs Build Status GitHub version codecov license

Voca_rs is a Rust library for manipulating strings.

Voca_rs is inspired by Voca.js and string.py

TL;DR

use voca_rs::*;

let input_string = "LazyLoad with XMLHttpRequest and snake_case";
let string_in_words = split::words(&input_string);
// => ["Lazy", "Load", "with", "XML", "Http", "Request", "and", "snake", "case"]
let snake_string = case::snake_case(&string_in_words[3..6].join(" "));
// => "xml_http_request"

Documentation

See the complete documentation at https://e1r0nd.github.io/voca_rs/

Run test: cargo test Build docs: cargo doc -> ./target/doc/voca_rs/index.html Build project: cargo build -> ./target/debug Publish project: git push

Roadmap

Case

Chop

  • charAt
  • codePointAt
  • first
  • graphemeAt
  • last
  • prune
  • slice
  • substr
  • substring
  • truncate

Count

  • count
  • countGraphemes
  • countSubstrings
  • countWhere
  • countWords

Escape

  • escapeHtml
  • escapeRegExp
  • unescapeHtml

Format

Index

  • indexOf
  • lastIndexOf
  • search

Manipulate

  • insert
  • latinise
  • pad
  • padLeft
  • padRight
  • repeat
  • replace
  • replaceAll
  • reverse
  • reverseGrapheme
  • slugify
  • splice
  • tr
  • trim
  • trimLeft
  • trimRight
  • wordWrap

Query

  • endsWith
  • includes
  • isAlpha
  • isAlphaDigit
  • isBlank
  • isDigit
  • isEmpty
  • isLowerCase
  • isNumeric
  • isString
  • isUpperCase
  • matches
  • startsWith

Split

  • chars
  • codePoints
  • graphemes
  • split
  • words

Strip

  • stripBom
  • stripTags

Template

  • substitute - link
  • safe_substitute - link

Util

Copyright

coded by Anatol Marezhanyi @e1r0nd_crg

https://linkedin.com/in/merezhany/ https://www.youtube.com/c/AnatolMerezhanyi

License

Licensed under MIT License