Skip to content

Commit

Permalink
Improve writeCodePointValue KDoc (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhinkin authored May 7, 2024
1 parent 8d87350 commit f36dd27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/common/src/Utf8.kt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ internal fun String.utf8Size(startIndex: Int = 0, endIndex: Int = length): Long
* Without such a conversion, data written to a [Sink] can not be converted back
* to a string from which a surrogate pair was retrieved.
*
* More specifically, all code points mapping to UTF-16 surrogates (`U+d800`..`U+dfff`)
* will be written as `?` characters (`U+0063`).
*
* @param codePoint the codePoint to be written.
*
* @throws IllegalStateException when the sink is closed.
Expand Down

0 comments on commit f36dd27

Please sign in to comment.