Companion

Functions

Link copied to clipboard
@JvmStatic
inline fun of(utf8: UTF8): UTF8.CharPreProcessor

Creates a new CharPreProcessor instance using the ReplacementStrategy of the given UTF8 encoder/decoder.

@JvmStatic
inline fun of(config: UTF8.Config): UTF8.CharPreProcessor

Creates a new CharPreProcessor instance using the ReplacementStrategy of the given UTF8.Config.

Creates a new CharPreProcessor instance for the given ReplacementStrategy.

Link copied to clipboard
@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharArray.sizeUTF8(utf8: UTF8): Long

Calculate the UTF-8 byte output size for the provided array and ReplacementStrategy for the UTF8 encoder/decoder.

@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharArray.sizeUTF8(config: UTF8.Config): Long

Calculate the UTF-8 byte output size for the provided array and ReplacementStrategy for the UTF8.Config.

@JvmStatic
@JvmName(name = "sizeOf")
fun CharArray.sizeUTF8(strategy: UTF8.ReplacementStrategy): Long

Calculate the UTF-8 byte output size for the provided array and ReplacementStrategy.

@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharSequence.sizeUTF8(utf8: UTF8): Long
@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharIterator.sizeUTF8(utf8: UTF8): Long

Calculate the UTF-8 byte output size for the provided characters and ReplacementStrategy for the UTF8 encoder/decoder.

@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharSequence.sizeUTF8(config: UTF8.Config): Long
@JvmStatic
@JvmName(name = "sizeOf")
inline fun CharIterator.sizeUTF8(config: UTF8.Config): Long

Calculate the UTF-8 byte output size for the provided characters and ReplacementStrategy for the UTF8.Config.

@JvmStatic
@JvmName(name = "sizeOf")
fun CharSequence.sizeUTF8(strategy: UTF8.ReplacementStrategy): Long
@JvmStatic
@JvmName(name = "sizeOf")
fun CharIterator.sizeUTF8(strategy: UTF8.ReplacementStrategy): Long

Calculate the UTF-8 byte output size for the provided characters and ReplacementStrategy.