adjustCasing
Adjusts the casing of the target text based on the matched text.The text that was matched in the original text.
The target replacement text.
The target text with adjusted casing.
findFirstAlphaIndex
Finds the index of the first alphabetic letter in a string.The string to search.
The index of the first alphabetic letter, or -1 if none found.
generateCaseVariants
Generates case variants for a given source string by toggling the case of the first alphabetic character.The source string.
An array containing the original string and its case variants.
isAlphabeticLetter
Determines if a character is an alphabetic letter (excluding apostrophe-like characters).The character to check.
True if the character is an alphabetic letter, false otherwise.
isLetter
Checks if the given character is a letter.The character to check.
True if the character is a letter, false otherwise.
isLowerCase
Checks if the given character is lowercase.The character to check.
True if the character is lowercase, false otherwise.
isUpperCase
Checks if the given character is uppercase.The character to check.
True if the character is uppercase, false otherwise.
isWordCharacterAt
Determines if a character at a given position is considered a word character. An apostrophe is considered a word character only if it’s between letters.The text containing the character.
The position of the character in the text.
True if the character is a word character, false otherwise.