Skip to content

Commit f36dd27

Browse files
authored
Improve writeCodePointValue KDoc (#314)
1 parent 8d87350 commit f36dd27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/common/src/Utf8.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ internal fun String.utf8Size(startIndex: Int = 0, endIndex: Int = length): Long
130130
* Without such a conversion, data written to a [Sink] can not be converted back
131131
* to a string from which a surrogate pair was retrieved.
132132
*
133+
* More specifically, all code points mapping to UTF-16 surrogates (`U+d800`..`U+dfff`)
134+
* will be written as `?` characters (`U+0063`).
135+
*
133136
* @param codePoint the codePoint to be written.
134137
*
135138
* @throws IllegalStateException when the sink is closed.

0 commit comments

Comments
 (0)