01: /**
02: * Copyright (c) 2001, Sergey A. Samokhodkin
03: * All rights reserved.
04: *
05: * Redistribution and use in source and binary forms, with or without modification,
06: * are permitted provided that the following conditions are met:
07: *
08: * - Redistributions of source code must retain the above copyright notice,
09: * this list of conditions and the following disclaimer.
10: * - Redistributions in binary form
11: * must reproduce the above copyright notice, this list of conditions and the following
12: * disclaimer in the documentation and/or other materials provided with the distribution.
13: * - Neither the name of jregex nor the names of its contributors may be used
14: * to endorse or promote products derived from this software without specific prior
15: * written permission.
16: *
17: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
18: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20: * IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21: * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23: * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
25: * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26: *
27: * @version 1.2_01
28: */package jregex;
29:
30: interface UnicodeConstants {
31: int CATEGORY_COUNT = 32;
32: int Cc = Character.CONTROL;
33: int Cf = Character.FORMAT;
34: int Co = Character.PRIVATE_USE;
35: int Cn = Character.UNASSIGNED;
36: int Lu = Character.UPPERCASE_LETTER;
37: int Ll = Character.LOWERCASE_LETTER;
38: int Lt = Character.TITLECASE_LETTER;
39: int Lm = Character.MODIFIER_LETTER;
40: int Lo = Character.OTHER_LETTER;
41: int Mn = Character.NON_SPACING_MARK;
42: int Me = Character.ENCLOSING_MARK;
43: int Mc = Character.COMBINING_SPACING_MARK;
44: int Nd = Character.DECIMAL_DIGIT_NUMBER;
45: int Nl = Character.LETTER_NUMBER;
46: int No = Character.OTHER_NUMBER;
47: int Zs = Character.SPACE_SEPARATOR;
48: int Zl = Character.LINE_SEPARATOR;
49: int Zp = Character.PARAGRAPH_SEPARATOR;
50: int Cs = Character.SURROGATE;
51: int Pd = Character.DASH_PUNCTUATION;
52: int Ps = Character.START_PUNCTUATION;
53: int Pi = Character.START_PUNCTUATION;
54: int Pe = Character.END_PUNCTUATION;
55: int Pf = Character.END_PUNCTUATION;
56: int Pc = Character.CONNECTOR_PUNCTUATION;
57: int Po = Character.OTHER_PUNCTUATION;
58: int Sm = Character.MATH_SYMBOL;
59: int Sc = Character.CURRENCY_SYMBOL;
60: int Sk = Character.MODIFIER_SYMBOL;
61: int So = Character.OTHER_SYMBOL;
62:
63: int BLOCK_COUNT = 256;
64: int BLOCK_SIZE = 256;
65:
66: int MAX_WEIGHT = Character.MAX_VALUE + 1;
67: int[] CATEGORY_WEIGHTS = new int[CATEGORY_COUNT];
68: }
|