- Fixed
capitalize()to normalize already-capitalized and all-uppercase inputs likeHELLOandHeLLotoHello - Preserved acronym tokens in
camelCase()while fixingcapitalize()behavior
- Added regression coverage for uppercase and mixed-case
capitalize()inputs
- Revamped README with cleaner structure and API tables
- Added CONTRIBUTING.md for contributors
- Removed codemagic badge
- Code formatting improvements across source files
- Added
unescapeHtml()method to unescape HTML entities - Added
escapeHtml()as the new camelCase version ofescapeHTML() - Added
countOccurrences()with correct spelling - Added convenience getters:
toCamelCase,toSnakeCase,toKebabCase,toTitleCase,toPascalCase
- Fixed malformed regex patterns in
const_regex.dart(JS-style delimiters removed) - Fixed performance bug in
latinize()- maps are now lazily initialized instead of rebuilt on every call - Fixed
prune()to handle tabs and other whitespace, not just spaces - Fixed nullable return types in
words(),chars(),codePoints(),graphemes()
escapeHTML()- useescapeHtml()insteadunEscapeRegExp()- useunescapeRegExp()insteadcountOccurences()- usecountOccurrences()instead (typo fix)count()- use.lengthinsteadchars()- use.split('')insteadcodePoints()- use.codeUnitsinsteadcharAt()- usestring[index]insteadlowerCase()- use.toLowerCase()insteadupperCase()- use.toUpperCase()instead
- Optimized
swapCase()usingStringBufferfor O(n) performance - Made escape character maps
constfor compile-time optimization - Added modern Dart 3.0+ switch expressions in case methods
- Improved code documentation
- Updated to Dart 3.0+ with modern SDK constraints (>=3.0.0 <4.0.0)
- Added
unescapeRegExp()method to unescape regex strings - Code refactoring and improved maintainability
- Updated dependencies to latest compatible versions
- First stable release
- All string manipulation features from prerelease now stable
- Added functionalities either missing from String class.
- Functionalities are inspired from Voca JS.
- escapeRegEx() is not working for certain RegEx strings.
- Trying to get full pub score