- kotlin-codepoints-deluxe
CodePoint.toString()
now returns the string representation of a code point.
- kotlin-codepoints
- Added
CharSequence.codePointCount()
variant without parameters. - Added
CodePoints.toString(…)
that creates a string from the given code points. - Added
CharSequence.forEachCodePoint()
andCharSequence.forEachCodePointIndexed()
to iterate over code points in a character sequence.
- Added
- kotlin-codepoints-deluxe
CodePoint.toUnicodeNotation()
returns the standard Unicode notation of a code point, e.g.U+1F4E7
.- Added
CharSequence.forEachCodePoint()
andCharSequence.forEachCodePointIndexed()
to iterate over code points in a character sequence.
- Updated to Kotlin 2.0.0
- Added
StringBuilder.setCodePointAt()
,StringBuilder.insertCodePointAt()
, andStringBuilder.deleteCodePointAt()
to bothkotlin-codepoints
andkotlin-codepoints-deluxe
. - Added support for wasmJs and wasmWasi targets.
- Removed targets no longer supported by Kotlin 1.9.20+ (iosArm32, linuxArm32Hfp, linuxMips32, linuxMipsel32, mingwX86, wasm32, watchosX86).
CharSequence.codePointCount()
now returns the correct result for a zero-length range.
- Use
CharSequence
extension functions instead ofString
extension functions in bothkotlin-codepoints
andkotlin-codepoints-deluxe
. - Change
StringBuilder.appendCodePoint()
toAppendable.appendCodePoint()
in bothkotlin-codepoints
andkotlin-codepoints-deluxe
.
- Added support for iterating over parts of a string when using
CodePointIterator
- Added
StringBuilder.appendCodePoint()
tokotlin-codepoints-deluxe
CodePoints.toChars(Int, CharArray, Int)
is now bug-compatible withjava.lang.Character.toChars(int, char[], int)
. Using an offset of -1 will lead to an exception, but the first element of the destination might be modified.
- Support for MIPS targets
- Separate library
kotlin-codepoints-deluxe
that builds a nicer API on top ofkotlin-codepoints
- Changed JVM target version from 11 to 1.8
StringBuilder.appendCodePoint(codePoint)
CodePoints.toChars(codePoint)
CodePoints.toChars(codePoint, destination, offset)
CodePoints.isSurrogate(char)
. UseChar.isSurrogate()
instead.CodePoints.isHighSurrogate(char)
. UseChar.isHighSurrogate()
instead.CodePoints.isLowSurrogate(char)
. UseChar.isLowSurrogate()
instead.
- Build all possible targets (except for MIPS)
Initial release