text

object text

Provides utilities for working with streams of text (e.g., encoding byte streams to strings).

class Object
trait Matchable
class Any
text.type

Type members

Classlikes

class LineTooLongException(val length: Int, val max: Int) extends RuntimeException
object base64

Functions for working with base 64.

Functions for working with base 64.

object hex

Functions for working with base 64.

Functions for working with base 64.

object utf8

Value members

Concrete methods

def decodeCWithCharset[F[_] : RaiseThrowable](charset: Charset): (F, Chunk[Byte]) => String
def decodeWithCharset[F[_] : RaiseThrowable](charset: Charset): (F, Byte) => String
def encode[F[_]](charset: Charset): (F, String) => Byte

Encodes a stream of String in to a stream of bytes using the given charset.

Encodes a stream of String in to a stream of bytes using the given charset.

def encodeC[F[_]](charset: Charset): (F, String) => Chunk[Byte]

Encodes a stream of String in to a stream of Chunk[Byte] using the given charset.

Encodes a stream of String in to a stream of Chunk[Byte] using the given charset.

def lines[F[_]]: (F, String) => String

Transforms a stream of String such that each emitted String is a line from the input.

Transforms a stream of String such that each emitted String is a line from the input.

def linesLimited[F[_] : RaiseThrowable](maxLineLength: Int): (F, String) => String

Transforms a stream of String such that each emitted String is a line from the input

Transforms a stream of String such that each emitted String is a line from the input

Value parameters:
maxLineLength

maximum size to accumulate a line to; throw an error if a line is larger

Deprecated methods

@deprecated("Use text.utf8.decode", "3.1.0")
def utf8Decode[F[_]]: (F, Byte) => String

Converts UTF-8 encoded byte stream to a stream of String.

Converts UTF-8 encoded byte stream to a stream of String.

Deprecated
@deprecated("Use text.utf8.decodeC", "3.1.0")
def utf8DecodeC[F[_]]: (F, Chunk[Byte]) => String

Converts UTF-8 encoded Chunk[Byte] inputs to String.

Converts UTF-8 encoded Chunk[Byte] inputs to String.

Deprecated
@deprecated("Use text.utf8.encode", "3.1.0")
def utf8Encode[F[_]]: (F, String) => Byte

Encodes a stream of String in to a stream of bytes using the UTF-8 charset.

Encodes a stream of String in to a stream of bytes using the UTF-8 charset.

Deprecated
@deprecated("Use text.utf8.encodeC", "3.1.0")
def utf8EncodeC[F[_]]: (F, String) => Chunk[Byte]

Encodes a stream of String in to a stream of Chunk[Byte] using the UTF-8 charset.

Encodes a stream of String in to a stream of Chunk[Byte] using the UTF-8 charset.

Deprecated