- Run
dart formatwith the new style. - Performance improvement for non-BMP characters.
- Updated to use Unicode 16.0.0.
- Fixed README rendering on pub.dev and API docs.
- Require Dart
^3.4.0. - Move to
dart-lang/coremonorepo.
- Updated to use Unicode 15.0.0.
- Update the value of the pubspec
repositoryfield.
- Fix
Characters.wherewhich unnecessarily did the iteration and test twice. - Adds
Characters.emptyconstant and makesCharacters("")return it. - Changes the argument type of
Characters.containsto (covariant)String. The implementation still acceptsObject?, so it can be cast toIterable<Object?>, but you get warned if you try to call directly with a non-String.
- Stable release for null safety.
- Added
stringBeforeLengthandstringAfterLengthtoCharacterRange. - Added
CharacterRange.atconstructor. - Added
getRange(start, end)andcharacterAt(pos)toCharactersas alternative to.take(end).skip(start)andgetRange(pos, pos + 1). - Change some positional parameter names from
othertocharacters.
- Core APIs deemed stable; package version set to 1.0.0.
- Added
splitmethods onCharactersandCharacterRange.
- Change [codeUnits] getter to [utf16CodeUnits] which returns an iterable. This avoids leaking that the underlying string has efficient UTF-16 code unit access in the API, and allows the same interface to be just as efficiently implemented on top of UTF-8.
-
Added an extension method on
Stringto allow easy access to theCharactersof the string:print('The first character is: ' + myString.characters.first)
-
Updated Dart SDK dependency to Dart 2.6.0
- Added small example in
example/main.dart - Enabled pedantic lints and updated code to resolve issues.
- Updated API which does not expose the underlying string indices.
- Initial release