Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tables to Unicode 16.0.0. #577

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/characters/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.0

* Updated to use Unicode 16.0.0.

## 1.3.1

* Fixed README rendering on pub.dev and API docs.
Expand Down
6 changes: 6 additions & 0 deletions pkgs/characters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ the individual characters of a string,
and a way to navigate back and forth between them
using a [`CharacterRange`][CharacterRange].

Based on Unicode <!-- unicode-version -->version 16.0.0<!-- /unicode-version -->.

This package is not script-aware, and does not currently support the rule for
Indic Conjunct Breaks introduced in Unicode 15.10.0
([GB9c](https://www.unicode.org/reports/tr29/tr29-43.html#GB9c)).

## Unicode characters and representations

There is no such thing as plain text.
Expand Down
20 changes: 10 additions & 10 deletions pkgs/characters/lib/src/characters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ abstract class Characters implements Iterable<String> {

/// Replaces the first occurrence of [pattern] with [replacement].
///
/// Returns a new [Characters] where the first occurence of the
/// Returns a new [Characters] where the first occurrence of the
/// [pattern] character sequence, if any, is replaced by [replacement].
///
/// Returns the current characters if there is no occurrence of [pattern].
Expand Down Expand Up @@ -304,7 +304,7 @@ abstract class Characters implements Iterable<String> {
/// The range may even be empty, but that will still correspond to a position
/// where both start and end happen to be the same position.
///
/// The source sequence can be separated into the *preceeding* characters,
/// The source sequence can be separated into the *preceding* characters,
/// those before the range, the range itself, and the *following* characters,
/// those after the range.
///
Expand All @@ -318,11 +318,11 @@ abstract class Characters implements Iterable<String> {
/// Operations starting with `collapse` reduces the current range to
/// a sub-range of itself.
/// Operations starting with `expand` increase the current range
/// by moving/ the end postion to a later position
/// by moving the end position to a later position
/// or the start position to an earlier position,
/// and operations starting with `drop` reduce the current range
/// by moving the start to a later position or the end to an earlier position,
/// therebyt dropping characters from one or both ends from the current range.
/// thereby dropping characters from one or both ends from the current range.
///
///
/// The character range implements [Iterator]
Expand Down Expand Up @@ -479,7 +479,7 @@ abstract class CharacterRange implements Iterator<String> {
/// Returns `true` if the range is modified and `false` if not.
bool moveBackTo(Characters target);

/// Moves to the range after the previous occurence of [target].
/// Moves to the range after the previous occurrence of [target].
///
/// If there is an occurrence of [target] in the characters preceding
/// the current range,
Expand All @@ -506,7 +506,7 @@ abstract class CharacterRange implements Iterator<String> {
/// the current range, and `false` if not.
bool expandNext([int count = 1]);

/// Expands the range to include the next occurence of [target].
/// Expands the range to include the next occurrence of [target].
///
/// If there is an occurrence of [target] in the characters following
/// the current range, the end of the the range is moved to just after
Expand Down Expand Up @@ -554,7 +554,7 @@ abstract class CharacterRange implements Iterator<String> {
/// the current range, and `false` if not.
bool expandBack([int count = 1]);

/// Expands the range to include the previous occurence of [target].
/// Expands the range to include the previous occurrence of [target].
///
/// If there is an occurrence of [target] in the characters preceding
/// the current range, the stat of the the range is moved to just before
Expand All @@ -579,7 +579,7 @@ abstract class CharacterRange implements Iterator<String> {
/// Returns `true` if there is an occurrence of [target] and `false` if not.
bool expandBackUntil(Characters target);

/// Expands the range with the preceding characters satisffying [test].
/// Expands the range with the preceding characters satisfying [test].
///
/// Iterates back through the characters preceding the current range
/// and includes them into the range until finding a character that
Expand Down Expand Up @@ -661,7 +661,7 @@ abstract class CharacterRange implements Iterator<String> {
/// first occurrence of [target].
///
/// If there are no occurrences of [target] in the range,
/// all characteres in the range are removed,
/// all characters in the range are removed,
/// which gives the same effect as [collapseToEnd].
///
/// Returns `true` if there is an occurrence of [target] and `false` if not.
Expand Down Expand Up @@ -713,7 +713,7 @@ abstract class CharacterRange implements Iterator<String> {
/// last occurrence of [target].
///
/// If there are no occurrences of [target] in the range,
/// all characteres in the range are removed,
/// all characters in the range are removed,
/// which gives the same effect as [collapseToStart].
///
/// Returns `true` if there is an occurrence of [target] and `false` if not.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/characters/lib/src/characters_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'grapheme_clusters/table.dart';
/// The grapheme clusters of a string.
///
/// Backed by a single string.
class StringCharacters extends Iterable<String> implements Characters {
final class StringCharacters extends Iterable<String> implements Characters {
@override
final String string;

Expand Down
Loading