money.parse
Parse "£1,234.50" or "1.234,50 €" into integer minor units, strictly: no guessing, no rounding.
parse_money in Rust
1.0.0
py rs ts
37 tests
text.initials
Initials from a personal name for avatars and signatures: "Jean-Paul Sartre" is "JPS".
initials in Rust
1.0.0
py rs ts
17 tests
text.mask
Mask all but the last n characters of a card, account or phone number, optionally keeping separators.
mask in Rust
1.0.0
py rs ts
16 tests
text.normalise-name
Tidy a personal name: trim, collapse whitespace and title-case, with Mc, Mac, O', hyphen and van/de rules.
normalise_name in Rust
1.0.0
py rs ts
23 tests
encoding.utf8
Text to UTF-8 bytes and strictly back (RFC 3629), so hashing and signing see the same bytes in every language.
A group of 2: utf8_encode, utf8_decode
1.0.0
py rs ts
25 tests
text.format-decimal
Format a float as plain decimal text with fixed or trimmed places and optional grouping, identically in every language.
format_decimal in Rust
1.0.0
py rs ts
19 tests
text.integer-to-words
Spell out a whole number in British English words, with "and" the way a cheque writes it.
integer_to_words in Rust
1.0.0
py rs ts
25 tests
text.slugify
Turn a title into a lowercase ASCII URL slug, transliterating common accented Latin letters.
slugify in Rust
1.0.0
py rs ts
21 tests
collections.search-text
Filter records by a case-insensitive substring match across named fields, in input order.
search_text in Rust
1.0.0
py rs ts
20 tests
text.number-to-words
Write a money amount in words for a cheque: "one thousand two hundred and thirty-four pounds and fifty-six pence".
amount_in_words in Rust
1.0.0
py rs ts
16 tests
text.truncate
Shorten text to a maximum length on a word boundary and add an ellipsis, counting Unicode code points.
truncate in Rust
1.0.0
py rs ts
18 tests