Skip to main content

Module functions

Module functions 

Source
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 pattern in text (non-overlapping).
fuzzy_search
Find all interned strings within max_distance of query.
is_palindrome
Check if s is a palindrome (bytes-level).
is_rotation
Check if b is a rotation of a (i.e., b appears as a substring within the string formed by concatenating a with 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_chars characters, appending ellipsis if truncated.
validate_checksum
Validate a snapshot’s checksum against an expected value.