Package org.jcodings.util
Class Macros
- java.lang.Object
-
- org.jcodings.util.Macros
-
public class Macros extends java.lang.Object
ONIGENC macros from Ruby
-
-
Field Summary
Fields Modifier and Type Field Description static int
MBCLEN_INVALID
-
Constructor Summary
Constructors Constructor Description Macros()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
CONSTRUCT_MBCLEN_CHARFOUND(int n)
static int
CONSTRUCT_MBCLEN_INVALID()
static int
CONSTRUCT_MBCLEN_NEEDMORE(int n)
static int
MBCLEN_CHARFOUND_LEN(int r)
static boolean
MBCLEN_CHARFOUND_P(int r)
static boolean
MBCLEN_INVALID_P(int r)
static int
MBCLEN_NEEDMORE_LEN(int r)
static boolean
MBCLEN_NEEDMORE_P(int r)
static boolean
UNICODE_VALID_CODEPOINT_P(int c)
static boolean
UTF16_IS_SURROGATE(int c)
static boolean
UTF16_IS_SURROGATE_FIRST(int c)
static boolean
UTF16_IS_SURROGATE_SECOND(int c)
-
-
-
Field Detail
-
MBCLEN_INVALID
public static final int MBCLEN_INVALID
- See Also:
- Constant Field Values
-
-
Method Detail
-
CONSTRUCT_MBCLEN_INVALID
public static int CONSTRUCT_MBCLEN_INVALID()
-
MBCLEN_NEEDMORE_P
public static boolean MBCLEN_NEEDMORE_P(int r)
-
CONSTRUCT_MBCLEN_NEEDMORE
public static int CONSTRUCT_MBCLEN_NEEDMORE(int n)
-
MBCLEN_NEEDMORE_LEN
public static int MBCLEN_NEEDMORE_LEN(int r)
-
MBCLEN_INVALID_P
public static boolean MBCLEN_INVALID_P(int r)
-
MBCLEN_CHARFOUND_LEN
public static int MBCLEN_CHARFOUND_LEN(int r)
-
MBCLEN_CHARFOUND_P
public static boolean MBCLEN_CHARFOUND_P(int r)
-
CONSTRUCT_MBCLEN_CHARFOUND
public static int CONSTRUCT_MBCLEN_CHARFOUND(int n)
-
UNICODE_VALID_CODEPOINT_P
public static boolean UNICODE_VALID_CODEPOINT_P(int c)
-
UTF16_IS_SURROGATE_FIRST
public static boolean UTF16_IS_SURROGATE_FIRST(int c)
-
UTF16_IS_SURROGATE_SECOND
public static boolean UTF16_IS_SURROGATE_SECOND(int c)
-
UTF16_IS_SURROGATE
public static boolean UTF16_IS_SURROGATE(int c)
-
-