Viewing version 0.5.0. Open the latest package page.
characters
0.5.0String replacement with operations that are Unicode/grapheme cluster aware.
Readme
NOTE: This package is in technical preview, and breaking API changes are to be expected.
Characters are strings viewed as sequences of user-perceived characters,
also know as Unicode (extended) grapheme clusters.
The Characters class allows access to the individual characters of a string,
and a way to navigate back and forth between them using a CharacterRange.
Changelog
Changelog
0.5.0
- 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.
0.4.0
-
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
0.3.1
- Added small example in
example/main.dart - Enabled pedantic lints and updated code to resolve issues.
0.3.0
- Updated API which does not expose the underlying string indices.
0.1.0
- Initial release
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'characters:0.5.0'pubspec.yaml
name: characters
version: 0.5.0
description: String replacement with operations that are Unicode/grapheme cluster aware.
homepage: https://www.github.com/dart-lang/characters
environment:
sdk: ">=2.6.0 <3.0.0"
dev_dependencies:
test: "^1.6.0"
pedantic:
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.3.0 | Cached · Upstream SHA-256 matched | Download | 6c10f161…426667 |
| 0.3.1 | Cached · Upstream SHA-256 matched | Download | fdb489af…762972 |
| 0.4.0 | Cached · Upstream SHA-256 matched | Download | e1e28342…7177f2 |
| 0.5.0 | Cached · Upstream SHA-256 matched | Download | 3f95b545…524863 |
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 8df5ffb5…8f5077 |
| 1.1.0-nullsafety | Cached · Upstream SHA-256 matched | Download | 44dadb83…07d0ba |
| 1.1.0-nullsafety.1 | Cached · Upstream SHA-256 matched | Download | d4c5e8e8…a278ac |
| 1.1.0-nullsafety.2 | Cached · Upstream SHA-256 matched | Download | 0732c770…8adf16 |
| 1.1.0-nullsafety.3 | Cached · Upstream SHA-256 matched | Download | 43012c25…8cb4a7 |
| 1.1.0-nullsafety.4 | Cached · Upstream SHA-256 matched | Download | d97fe005…8f2933 |
| 1.1.0-nullsafety.5 | Cached · Upstream SHA-256 matched | Download | 1bfe74de…76cdd6 |
| 1.1.0 | Cached · Upstream SHA-256 matched | Download | 9a462645…e04bb7 |
| 1.2.0 | Cached · Upstream SHA-256 matched | Download | d5be1994…6b65cc |
| 1.2.1 | Cached · Upstream SHA-256 matched | Download | e6a326c8…67975c |
| 1.3.0 | Cached · Upstream SHA-256 matched | Download | 04a92576…69a605 |
| 1.3.1 | Cached · Upstream SHA-256 matched | Download | 81269c8d…94e1c1 |
| 1.4.0 | Cached · Upstream SHA-256 matched | Download | f71061c6…670803 |
| 1.4.1 | Cached · Upstream SHA-256 matched | Download | faf38497…b5716b |
Dependencies
No direct dependencies declared.