nu.validator.htmlparser.impl
Class Portability

java.lang.Object
  extended by nu.validator.htmlparser.impl.Portability

public final class Portability
extends java.lang.Object


Constructor Summary
Portability()
           
 
Method Summary
static void delete(java.lang.Object o)
           
static void deleteArray(java.lang.Object o)
           
static boolean literalEqualsString(java.lang.String literal, java.lang.String string)
           
static boolean localEqualsBuffer(java.lang.String local, char[] buf, int offset, int length)
           
static boolean lowerCaseLiteralEqualsIgnoreAsciiCaseString(java.lang.String lowerCaseLiteral, java.lang.String string)
           
static boolean lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString(java.lang.String lowerCaseLiteral, java.lang.String string)
           
static char[] newCharArrayFromLocal(java.lang.String local)
           
static char[] newCharArrayFromString(java.lang.String string)
           
static java.lang.String newEmptyString()
           
static java.lang.String newLocalFromLocal(java.lang.String local, Interner interner)
           
static java.lang.String newLocalNameFromBuffer(char[] buf, int offset, int length, Interner interner)
          Allocates a new local name object.
static java.lang.String newStringFromBuffer(char[] buf, int offset, int length)
           
static java.lang.String newStringFromLiteral(java.lang.String literal)
           
static java.lang.String newStringFromString(java.lang.String string)
           
static void releaseString(java.lang.String str)
           
static boolean stringEqualsString(java.lang.String one, java.lang.String other)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Portability

public Portability()
Method Detail

newLocalNameFromBuffer

public static java.lang.String newLocalNameFromBuffer(char[] buf,
                                                      int offset,
                                                      int length,
                                                      Interner interner)
Allocates a new local name object. In C++, the refcount must be set up in such a way that calling releaseLocal on the return value balances the refcount set by this method.


newStringFromBuffer

public static java.lang.String newStringFromBuffer(char[] buf,
                                                   int offset,
                                                   int length)

newEmptyString

public static java.lang.String newEmptyString()

newStringFromLiteral

public static java.lang.String newStringFromLiteral(java.lang.String literal)

newStringFromString

public static java.lang.String newStringFromString(java.lang.String string)

newCharArrayFromLocal

public static char[] newCharArrayFromLocal(java.lang.String local)

newCharArrayFromString

public static char[] newCharArrayFromString(java.lang.String string)

newLocalFromLocal

public static java.lang.String newLocalFromLocal(java.lang.String local,
                                                 Interner interner)

releaseString

public static void releaseString(java.lang.String str)

localEqualsBuffer

public static boolean localEqualsBuffer(java.lang.String local,
                                        char[] buf,
                                        int offset,
                                        int length)

lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString

public static boolean lowerCaseLiteralIsPrefixOfIgnoreAsciiCaseString(java.lang.String lowerCaseLiteral,
                                                                      java.lang.String string)

lowerCaseLiteralEqualsIgnoreAsciiCaseString

public static boolean lowerCaseLiteralEqualsIgnoreAsciiCaseString(java.lang.String lowerCaseLiteral,
                                                                  java.lang.String string)

literalEqualsString

public static boolean literalEqualsString(java.lang.String literal,
                                          java.lang.String string)

stringEqualsString

public static boolean stringEqualsString(java.lang.String one,
                                         java.lang.String other)

delete

public static void delete(java.lang.Object o)

deleteArray

public static void deleteArray(java.lang.Object o)