Package totalcross.ui.html
Class NamedEntitiesDereferencer
- java.lang.Object
-
- totalcross.ui.html.NamedEntitiesDereferencer
-
public class NamedEntitiesDereferencer extends java.lang.ObjectNamedEntitiesDereferencerprovides an extremely fast way to map Named Entities References to their corresponding Unicode value.Note: the Entity table described below comes from the official XHTML entity reference list. Also, notice that entity names are case sensitive.
-
-
Constructor Summary
Constructors Constructor Description NamedEntitiesDereferencer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static chartoCode(byte[] b, int offset, int count)Get the code associated to a key.
-
-
-
Method Detail
-
toCode
public static char toCode(byte[] b, int offset, int count)Get the code associated to a key.- Parameters:
b- byte array containing the keyoffset- position of the first byte of the key in the arraycount- number of bytes composing the key- Returns:
- the corresponding character value, or 0 if invalid
-
-