scala.io

object UTF8Codec

[source: scala/io/UTF8Codec.scala]

object UTF8Codec
extends AnyRef
Author
Martin Odersky
Version
1.0, 04/10/2004
Value Summary
final val UNI_REPLACEMENT_CHAR : Int
Method Summary
def decode (src : Array[Byte], from : Int, len : Int) : String
def decode (src : Array[Byte], from : Int, dst : Array[Char], to : Int, len : Int) : Int
def encode (src : Array[Char], from : Int, dst : Array[Byte], to : Int, len : Int) : Int
def encode (s : String, dst : Array[Byte], to : Int) : Int
def encode (s : String) : Array[Byte]
def encode (ch1 : Int) : Array[Byte]
convert a codepoint to utf-8 bytes
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
final val UNI_REPLACEMENT_CHAR : Int

Method Details
def encode(ch1 : Int) : Array[Byte]
convert a codepoint to utf-8 bytes
Author
buraq
Parameters
ch - codepoint

def encode(src : Array[Char], from : Int, dst : Array[Byte], to : Int, len : Int) : Int

def encode(s : String, dst : Array[Byte], to : Int) : Int

def encode(s : String) : Array[Byte]

def decode(src : Array[Byte], from : Int, dst : Array[Char], to : Int, len : Int) : Int

def decode(src : Array[Byte], from : Int, len : Int) : String