voca_rs
Voca_rs is a Rust library for manipulating strings.
Voca_rs is inspired by Voca.js and string.py
TL;DR
use *;
let input_string = "LazyLoad with XMLHttpRequest and snake_case";
let string_in_words = words;
// => ["Lazy", "Load", "with", "XML", "Http", "Request", "and", "snake", "case"]
let snake_string = snake_case;
// => "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
- camel_case
- capitalize
- decapitalize
- kebab_case
- lower_case
- pascal_case
- shouty_kebab_case
- shouty_snake_case
- snake_case
- swap_case
- title_case
- upper_case
Chop
- charAt
- codePointAt
- first
- graphemeAt
- last
- prune
- slice
- substr
- substring
- truncate
Count
- count
- countGraphemes
- countSubstrings
- countWhere
- countWords
Escape
- escapeHtml
- escapeRegExp
- unescapeHtml
Format
- format - link
- vformat - link
- parse - link
- get_field - link
- get_value - link
- check_unused_args - link
- format_field - link
- convert_field - link
- sprintf - link
- vprintf - link
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
Util
- ASCII_LETTERS
- ASCII_LOWERCASE
- ASCII_UPPERCASE
- DIGITS
- HEXDIGITS
- OCTDIGITS
- PUNCTUATION
- printable - link
- WHITESPACE
- noConflict
- VERSION
Copyright
coded by Anatol Marezhanyi @e1r0nd_crg
https://linkedin.com/in/merezhany/ https://www.youtube.com/c/AnatolMerezhanyi
License
Licensed under MIT License