Expand description
String utility functions for text processing
Constants§
- HASH_
BASIS - HASH_
PRIME - FNV-1a hash constants
Functions§
- build_
dir_ entry_ path - Constructs a full path for a directory entry with appropriate separators
- build_
file_ entry_ path - Constructs a full path for a file entry with appropriate separators
- ends_
with - Check if a string ends with a specific suffix
- find_
str - Find the position of a substring in a string
- hash
- Hash a string using FNV-1a algorithm
- hash_
compile_ time - Alias for hash_const to match C++ naming pattern
- hash_
const - Compile-time version of the hash function
- join
- Join a slice of strings with a separator
- join_
path - Joins two path segments with a proper separator. Makes sure there’s exactly one ‘/’ between segments.
- md5
- Calculate MD5 hash for a string
- normalize_
dir_ path - Normalize a directory path to ensure it ends with a slash
- normalize_
file_ path - Normalize a file path to ensure it starts with a slash when needed
- remove_
emoji - Removes emoji characters from a string using a regular expression.
- replace_
all_ distinct - Replace all occurrences of a string with another
- starts_
with - Check if a string starts with a specific prefix
- to_
lower - Convert a string to lowercase
- trim
- Trim whitespace from the beginning and end of a string
- trim_of
- Trim a specific character from the beginning and/or end of a string
- trim_
whitespace