- kotlin-codepoints-deluxe
- Removed deprecated
CharSequence.codePointIterator(startIndex, endIndex). - Removed deprecated
CodePointIteratorconstructor.
- Removed deprecated
- kotlin-codepoints-deluxe
- Deprecated
CharSequence.codePointIterator(startIndex, endIndex). UseCharSequence.subSequence()instead. - Deprecated
CodePointIteratorconstructor. UseCharSequence.codePointIterator()to create an instance instead.
- Deprecated
- Updated to Kotlin 2.1.20
- 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-codepointsandkotlin-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
CharSequenceextension functions instead ofStringextension functions in bothkotlin-codepointsandkotlin-codepoints-deluxe. - Change
StringBuilder.appendCodePoint()toAppendable.appendCodePoint()in bothkotlin-codepointsandkotlin-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-deluxethat 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