From a923cfd2d0c5380e60de1e6bd46cef1fc41a1ce1 Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 5 Mar 2023 21:02:23 +0100 Subject: [PATCH] Version 0.6.0 --- CHANGELOG.md | 7 +++++++ README.md | 16 ++++++++-------- gradle.properties | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be41d62..98ec28e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.6.0] - 2023-03-05 +### Changed +- Use `CharSequence` extension functions instead of `String` extension functions in both `kotlin-codepoints` and + `kotlin-codepoints-deluxe`. +- Change `StringBuilder.appendCodePoint()` to `Appendable.appendCodePoint()` in both `kotlin-codepoints` and + `kotlin-codepoints-deluxe`. + ## [0.5.0] - 2023-02-19 ### Changed - Added support for iterating over parts of a string when using `CodePointIterator` diff --git a/README.md b/README.md index 633128c..3edbea5 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ kotlin-codepoints is distributed through Maven Central. ```kotlin dependencies { // Basic API - implementation("de.cketti.unicode:kotlin-codepoints:0.5.0") + implementation("de.cketti.unicode:kotlin-codepoints:0.6.0") // or // Nice API - implementation("de.cketti.unicode:kotlin-codepoints-deluxe:0.5.0") + implementation("de.cketti.unicode:kotlin-codepoints-deluxe:0.6.0") } ``` @@ -27,13 +27,13 @@ dependencies { This library aims to make some methods of the Java standard library available to Kotlin multiplatform projects. Methods found in `java.lang.String`: -* `String.codePointAt(index)` -* `String.codePointBefore(index)` -* `String.codePointCount(beginIndex, endIndex)` -* `String.offsetByCodePoints(index, codePointOffset)` +* `CharSequence.codePointAt(index)` +* `CharSequence.codePointBefore(index)` +* `CharSequence.codePointCount(beginIndex, endIndex)` +* `CharSequence.offsetByCodePoints(index, codePointOffset)` Methods found in `java.lang.StringBuilder`: -* `StringBuilder.appendCodePoint(codePoint)` +* `Appendable.appendCodePoint(codePoint)` Methods found in `java.lang.Character`: * `CodePoints.isValidCodePoint(codePoint)` @@ -47,7 +47,7 @@ Methods found in `java.lang.Character`: * `CodePoints.toChars(codePoint)` * `CodePoints.toChars(codePoint, destination, offset)` -On the JVM the platform implementation is used. On all other platforms the +On the JVM the platform implementation (`java.lang.Character.*`) is used. On all other platforms the [implementation in this library](src/commonImplementation/kotlin) is used. ### kotlin-codepoints-deluxe diff --git a/gradle.properties b/gradle.properties index ed74735..67705f2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=de.cketti.unicode -VERSION_NAME=0.6.0-SNAPSHOT +VERSION_NAME=0.6.0 POM_INCEPTION_YEAR=2023