public final class Utf8Lib extends Object
This library provides basic support for UTF-8 encoding. It provides all its functions
inside the table utf8. This library does not provide any support for Unicode other
than the handling of the encoding. Any operation that needs the meaning of a character,
such as character classification, is outside its scope.
Unless stated otherwise, all functions that expect a byte position as a parameter assume that the given position is either the start of a byte sequence or one plus the length of the subject string. As in the string library, negative indices count from the end of the string.
| Modifier and Type | Method and Description |
|---|---|
static void |
installInto(org.classdump.luna.StateContext context,
org.classdump.luna.Table env)
Installs the UTF-8 library to the global environment
env in the state
context context. |
public static void installInto(org.classdump.luna.StateContext context,
org.classdump.luna.Table env)
env in the state
context context.
If env.package.loaded is a table, adds the library table
to it with the key "utf8", using raw access.
context - the state context, must not be nullenv - the global environment, must not be nullNullPointerException - if context or env is nullCopyright © 2016–2017. All rights reserved.