text

object text

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

Source:
text.scala
class Object
trait Matchable
class Any
text.type

Type members

Classlikes

class LineTooLongException(val length: Int, val max: Int) extends RuntimeException
Source:
text.scala
object base64

Functions for working with base 64.

Functions for working with base 64.

Source:
text.scala
object hex

Functions for working with base 64.

Functions for working with base 64.

Source:
text.scala
object utf8
Source:
text.scala

Value members

Concrete methods

def decodeCWithCharset[F[_] : RaiseThrowable](charset: Charset): (F, Chunk[Byte]) => String
Source:
text.scala
def decodeWithCharset[F[_] : RaiseThrowable](charset: Charset): (F, Byte) => String
Source:
text.scala
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.

Source:
text.scala
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.

Source:
text.scala
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.

Source:
text.scala
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

Source:
text.scala

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
Source:
text.scala
@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
Source:
text.scala
@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
Source:
text.scala
@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
Source:
text.scala