Skip to content

Commit d38e2b1

Browse files
committed
Directly use common implementation in CommonStringBuilderFunctions.kt
1 parent 8eeb581 commit d38e2b1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
package de.cketti.codepoints.internal
22

3-
import de.cketti.codepoints.CodePoints
4-
53
internal fun appendCodePoint(builder: StringBuilder, codePoint: Int) {
6-
if (CodePoints.isBmpCodePoint(codePoint)) {
4+
if (isBmpCodePoint(codePoint)) {
75
builder.append(codePoint.toChar())
86
} else {
9-
builder.append(CodePoints.highSurrogate(codePoint))
10-
builder.append(CodePoints.lowSurrogate(codePoint))
7+
builder.append(highSurrogate(codePoint))
8+
builder.append(lowSurrogate(codePoint))
119
}
1210
}

0 commit comments

Comments
 (0)