Top Fields Constructors Methods
org.python.modules

public Class ucnhash

extends Object
implements ucnhashAPI
Class Inheritance
All Implemented Interfaces
org.python.core.ucnhashAPI
Imports
java.io.InputStream, .DataInputStream, .BufferedInputStream, .IOException, org.python.core.ucnhashAPI

Field Summary

Modifier and TypeField and Description
public static String[]
private static int
private static final char[]
private static String
private static int
private static int[]
private static short[]
G

private static boolean
private static boolean
private static int
m

private static int
private static int
private static int
private static int
private static int
n

private static final int
private static byte[]
private static int[]
private static short[]
private static short[]
private static short[]
private static short
private static byte[]
private static short[]
private static short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
binarysearch(byte[] rawlist, int start, int end)

private static int
compare(byte[] a1, int off1, int len1, byte[] a2, int off2, int len2)

public int
public int
getValue(String s, int start, int end)

Implements org.python.core.ucnhashAPI.getValue.

private static String
getWord(int idx)

public static int
hash(String key)

public static int
hash(String key, int start, int end)

private synchronized boolean
public static void
public static int
lookup(String name)

private static int
lookup(String name, int start, int end)

private static boolean
match(int idx, byte[] raw, int begin, int end)

private static byte[]
private static char[]
private static int[]
private static short[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

__depends__back to summary
public static String[] __depends__
alphaszback to summary
private static int alphasz
charmapback to summary
private static final char[] charmap
cjkPrefixback to summary
private static String cjkPrefix
cjkPrefixLenback to summary
private static int cjkPrefixLen
codepointback to summary
private static int[] codepoint
Gback to summary
private static short[] G
initializedback to summary
private static boolean initialized
loadedback to summary
private static boolean loaded
mback to summary
private static int m
maxidxback to summary
private static int maxidx
maxklenback to summary
private static int maxklen
maxlenback to summary
private static int maxlen
mincharback to summary
private static int minchar
nback to summary
private static int n
raw_blockback to summary
private static final int raw_block
rawdataback to summary
private static byte[] rawdata
rawindexback to summary
private static int[] rawindex
T0back to summary
private static short[] T0
T1back to summary
private static short[] T1
T2back to summary
private static short[] T2
wordcutoffback to summary
private static short wordcutoff
worddataback to summary
private static byte[] worddata
wordoffsback to summary
private static short[] wordoffs
wordstartback to summary
private static short wordstart

Constructor Detail

ucnhashback to summary
public ucnhash()

Method Detail

binarysearchback to summary
private static int binarysearch(byte[] rawlist, int start, int end)
compareback to summary
private static int compare(byte[] a1, int off1, int len1, byte[] a2, int off2, int len2)
getCchMaxback to summary
public int getCchMax()

Implements org.python.core.ucnhashAPI.getCchMax.

getValueback to summary
public int getValue(String s, int start, int end)

Implements org.python.core.ucnhashAPI.getValue.

getWordback to summary
private static String getWord(int idx)
hashback to summary
public static int hash(String key)
hashback to summary
public static int hash(String key, int start, int end)
initializedback to summary
private synchronized boolean initialized()
loadTablesback to summary
public static void loadTables() throws Exception
lookupback to summary
public static int lookup(String name)
lookupback to summary
private static int lookup(String name, int start, int end)
matchback to summary
private static boolean match(int idx, byte[] raw, int begin, int end)
readByteTableback to summary
private static byte[] readByteTable(DataInputStream in) throws IOException
readCharTableback to summary
private static char[] readCharTable(DataInputStream in) throws IOException
readIntTableback to summary
private static int[] readIntTable(DataInputStream in) throws IOException
readShortTableback to summary
private static short[] readShortTable(DataInputStream in) throws IOException