We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CommonStringBuilderFunctions.kt
1 parent 8eeb581 commit d38e2b1Copy full SHA for d38e2b1
src/commonImplementation/kotlin/internal/CommonStringBuilderFunctions.kt
@@ -1,12 +1,10 @@
1
package de.cketti.codepoints.internal
2
3
-import de.cketti.codepoints.CodePoints
4
-
5
internal fun appendCodePoint(builder: StringBuilder, codePoint: Int) {
6
- if (CodePoints.isBmpCodePoint(codePoint)) {
+ if (isBmpCodePoint(codePoint)) {
7
builder.append(codePoint.toChar())
8
} else {
9
- builder.append(CodePoints.highSurrogate(codePoint))
10
- builder.append(CodePoints.lowSurrogate(codePoint))
+ builder.append(highSurrogate(codePoint))
+ builder.append(lowSurrogate(codePoint))
11
}
12
0 commit comments