# characters 0.5.0

String replacement with operations that are Unicode/grapheme cluster aware.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'characters:0.5.0'
```
Published: 2019-12-05T13:35:18.391622Z
Expected archive SHA-256: 3f95b5451198500c0290de5906f46d8789c79d7d171d9ffc8d529dd76e524863

Available in cache; verification: upstream_checksum
## Direct dependencies

## Package README (untrusted upstream documentation)
[![pub package](https://img.shields.io/pub/v/characters.svg)](https://pub.dev/packages/characters)
[![Build Status](https://travis-ci.org/dart-lang/characters.svg?branch=master)](https://travis-ci.org/dart-lang/characters)

**NOTE**: This package is in technical preview, and breaking API changes are to be expected.

`Characters` are strings viewed as sequences of *user-perceived character*s,
also know as [Unicode (extended) grapheme clusters](https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries).

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 `String` to allow easy access to the `Characters`
  of the string:

  ```dart
  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







 
