Package com.alibaba.fastjson2.util
Class StringUtils
java.lang.Object
com.alibaba.fastjson2.util.StringUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longprotected static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanescaped(byte[] value, byte quote, long vecQuote) static booleannoneEscaped(long v, long quote) static voidwriteEscapedChar(byte[] bytes, int off, int c0) static voidwriteEscapedChar(char[] chars, int off, int c0) static intwriteLatin1(byte[] bytes, int off, byte[] value, byte quote) static intwriteLatin1Escaped(byte[] bytes, int off, byte[] values, byte quote, long features) static intwriteLatin1EscapedRest(char[] chars, int off, byte[] str, int coff, char quote, long features) static voidwriteU4Hex2(byte[] bytes, int off, int c) static voidwriteU4Hex2(char[] chars, int off, int c) static voidwriteU4HexU(byte[] bytes, int off, int c) static voidwriteU4HexU(char[] chars, int off, int c) static intwriteUTF16(byte[] bytes, int off, byte[] value, byte quote, long features)
-
Field Details
-
MASK_ESCAPE_NONE_ASCII
protected static final long MASK_ESCAPE_NONE_ASCII -
MASK_BROWSER_SECURE
protected static final long MASK_BROWSER_SECURE
-
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
writeLatin1
public static int writeLatin1(byte[] bytes, int off, byte[] value, byte quote) -
writeLatin1Escaped
public static int writeLatin1Escaped(byte[] bytes, int off, byte[] values, byte quote, long features) -
writeLatin1EscapedRest
public static int writeLatin1EscapedRest(char[] chars, int off, byte[] str, int coff, char quote, long features) -
writeUTF16
public static int writeUTF16(byte[] bytes, int off, byte[] value, byte quote, long features) -
writeEscapedChar
public static void writeEscapedChar(byte[] bytes, int off, int c0) -
writeU4Hex2
public static void writeU4Hex2(byte[] bytes, int off, int c) -
writeU4HexU
public static void writeU4HexU(byte[] bytes, int off, int c) -
writeEscapedChar
public static void writeEscapedChar(char[] chars, int off, int c0) -
writeU4Hex2
public static void writeU4Hex2(char[] chars, int off, int c) -
writeU4HexU
public static void writeU4HexU(char[] chars, int off, int c) -
escaped
public static boolean escaped(byte[] value, byte quote, long vecQuote) -
noneEscaped
public static boolean noneEscaped(long v, long quote)
-