Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- capitalize
- Capitalize the first character of
s, leave the rest unchanged. - classify_
string - Classify a string.
- count_
occurrences - Count the occurrences of
patternintext(non-overlapping). - fuzzy_
search - Find all interned strings within
max_distanceofquery. - is_
palindrome - Check if
sis a palindrome (bytes-level). - is_
rotation - Check if
bis a rotation ofa(i.e.,bappears as a substring within the string formed by concatenatingawith itself). - join_
interned - Join interned strings from a pool using a separator.
- levenshtein_
distance - Compute the Levenshtein edit distance between two strings.
- normalized_
similarity - Normalized similarity in [0.0, 1.0] (1.0 = identical).
- pool_
checksum - Compute a simple checksum (sum of all bytes mod 2^32) over a pool snapshot.
- reverse_
str - Reverse a string character by character.
- to_
title_ case - Convert a string to title case (capitalize each word separated by whitespace).
- tokenize_
and_ intern - Split a string by a delimiter and intern each piece.
- truncate_
str - Truncate a string to
max_charscharacters, appendingellipsisif truncated. - validate_
checksum - Validate a snapshot’s checksum against an expected value.