java.lang.Object
org.htmlunit.corejs.javascript.regexp.UnicodeProperties
Unicode properties handler for Java 11 Character class. Handles binary properties from ECMA-262
and general category values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasProperty(int property, int codePoint) Tests if a code point has a specific Unicode property (direct check without case handling).static intLooks up a property name and optionally a value and returns an encoded int.
-
Field Details
-
ALPHABETIC
public static final byte ALPHABETIC- See Also:
-
ASCII
public static final byte ASCII- See Also:
-
CASE_IGNORABLE
public static final byte CASE_IGNORABLE- See Also:
-
ASCII_HEX_DIGIT
public static final byte ASCII_HEX_DIGIT- See Also:
-
HEX_DIGIT
public static final byte HEX_DIGIT- See Also:
-
ID_CONTINUE
public static final byte ID_CONTINUE- See Also:
-
ID_START
public static final byte ID_START- See Also:
-
LOWERCASE
public static final byte LOWERCASE- See Also:
-
UPPERCASE
public static final byte UPPERCASE- See Also:
-
WHITE_SPACE
public static final byte WHITE_SPACE- See Also:
-
GENERAL_CATEGORY
public static final byte GENERAL_CATEGORY- See Also:
-
SCRIPT
public static final byte SCRIPT- See Also:
-
OTHER
public static final byte OTHER- See Also:
-
CONTROL
public static final byte CONTROL- See Also:
-
FORMAT
public static final byte FORMAT- See Also:
-
UNASSIGNED
public static final byte UNASSIGNED- See Also:
-
PRIVATE_USE
public static final byte PRIVATE_USE- See Also:
-
SURROGATE
public static final byte SURROGATE- See Also:
-
LETTER
public static final byte LETTER- See Also:
-
LOWERCASE_LETTER
public static final byte LOWERCASE_LETTER- See Also:
-
MODIFIER_LETTER
public static final byte MODIFIER_LETTER- See Also:
-
OTHER_LETTER
public static final byte OTHER_LETTER- See Also:
-
TITLECASE_LETTER
public static final byte TITLECASE_LETTER- See Also:
-
UPPERCASE_LETTER
public static final byte UPPERCASE_LETTER- See Also:
-
MARK
public static final byte MARK- See Also:
-
SPACING_MARK
public static final byte SPACING_MARK- See Also:
-
ENCLOSING_MARK
public static final byte ENCLOSING_MARK- See Also:
-
NONSPACING_MARK
public static final byte NONSPACING_MARK- See Also:
-
NUMBER
public static final byte NUMBER- See Also:
-
DECIMAL_NUMBER
public static final byte DECIMAL_NUMBER- See Also:
-
LETTER_NUMBER
public static final byte LETTER_NUMBER- See Also:
-
OTHER_NUMBER
public static final byte OTHER_NUMBER- See Also:
-
PUNCTUATION
public static final byte PUNCTUATION- See Also:
-
CONNECTOR_PUNCTUATION
public static final byte CONNECTOR_PUNCTUATION- See Also:
-
DASH_PUNCTUATION
public static final byte DASH_PUNCTUATION- See Also:
-
CLOSE_PUNCTUATION
public static final byte CLOSE_PUNCTUATION- See Also:
-
FINAL_PUNCTUATION
public static final byte FINAL_PUNCTUATION- See Also:
-
INITIAL_PUNCTUATION
public static final byte INITIAL_PUNCTUATION- See Also:
-
OTHER_PUNCTUATION
public static final byte OTHER_PUNCTUATION- See Also:
-
OPEN_PUNCTUATION
public static final byte OPEN_PUNCTUATION- See Also:
-
SYMBOL
public static final byte SYMBOL- See Also:
-
CURRENCY_SYMBOL
public static final byte CURRENCY_SYMBOL- See Also:
-
MODIFIER_SYMBOL
public static final byte MODIFIER_SYMBOL- See Also:
-
MATH_SYMBOL
public static final byte MATH_SYMBOL- See Also:
-
OTHER_SYMBOL
public static final byte OTHER_SYMBOL- See Also:
-
SEPARATOR
public static final byte SEPARATOR- See Also:
-
LINE_SEPARATOR
public static final byte LINE_SEPARATOR- See Also:
-
PARAGRAPH_SEPARATOR
public static final byte PARAGRAPH_SEPARATOR- See Also:
-
SPACE_SEPARATOR
public static final byte SPACE_SEPARATOR- See Also:
-
TRUE
public static final byte TRUE- See Also:
-
FALSE
public static final byte FALSE- See Also:
-
PROPERTY_NAMES
-
PROPERTY_VALUES
-
-
Constructor Details
-
UnicodeProperties
public UnicodeProperties()
-
-
Method Details
-
lookup
Looks up a property name and optionally a value and returns an encoded int. For binary properties, combines the property name with TRUE. For General_Category, combines General_Category with the specified value.- Parameters:
propertyOrValue- Property name or property name=value pair- Returns:
- Encoded int combining property name and value
-
hasProperty
public static boolean hasProperty(int property, int codePoint) Tests if a code point has a specific Unicode property (direct check without case handling).
-