CharPreProcessor

A helper for calculating the exact output byte-size of a text to UTF-8 byte transformation.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@JvmField
protected var checkNext: Boolean
Link copied to clipboard
@get:JvmName(name = "currentSize")
var currentSize: Long

The current would-be UTF-8 byte size of all accumulated input. This value does not include any potential final calculations performed by doFinal.

Link copied to clipboard

Functions

Link copied to clipboard
fun doFinal(): Long

Resets the CharPreProcessor and returns the final UTF-8 byte size of all accumulated input.

Link copied to clipboard
operator fun plus(input: Char)

Add input.

Link copied to clipboard
protected open fun replacementSize(): Int