Class StringUtils

java.lang.Object
com.alibaba.fastjson2.util.StringUtils

public class StringUtils extends Object
  • 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)