Package io.netty.util

Class AsciiStringUtil

java.lang.Object
io.netty.util.AsciiStringUtil

final class AsciiStringUtil extends Object
A collection of utility methods that is related with handling AsciiString.
  • Constructor Details

    • AsciiStringUtil

      private AsciiStringUtil()
  • Method Details

    • toLowerCase

      static AsciiString toLowerCase(AsciiString string)
      Convert the AsciiString to a lower case.
      Parameters:
      string - the AsciiString to convert
      Returns:
      the new AsciiString in lower case
    • containsUpperCase

      private static boolean containsUpperCase(byte[] byteArray, int offset, int length)
    • linearContainsUpperCase

      private static boolean linearContainsUpperCase(byte[] byteArray, int offset, int length)
    • unrolledContainsUpperCase

      private static boolean unrolledContainsUpperCase(byte[] byteArray, int offset, int byteCount)
    • toLowerCase

      private static void toLowerCase(byte[] src, int srcOffset, byte[] dst)
    • linearToLowerCase

      private static void linearToLowerCase(byte[] src, int srcOffset, byte[] dst)
    • unrolledToLowerCase

      private static void unrolledToLowerCase(byte[] src, int srcPos, byte[] dst, int dstOffset, int byteCount)
    • toUpperCase

      static AsciiString toUpperCase(AsciiString string)
      Convert the AsciiString to a upper case.
      Parameters:
      string - the AsciiString to convert
      Returns:
      the AsciiString in upper case
    • containsLowerCase

      private static boolean containsLowerCase(byte[] byteArray, int offset, int length)
    • linearContainsLowerCase

      private static boolean linearContainsLowerCase(byte[] byteArray, int offset, int length)
    • unrolledContainsLowerCase

      private static boolean unrolledContainsLowerCase(byte[] byteArray, int offset, int byteCount)
    • toUpperCase

      private static void toUpperCase(byte[] src, int srcOffset, byte[] dst)
    • linearToUpperCase

      private static void linearToUpperCase(byte[] src, int srcOffset, byte[] dst)
    • unrolledToUpperCase

      private static void unrolledToUpperCase(byte[] src, int srcOffset, byte[] dst, int dstOffset, int byteCount)
    • isLowerCase

      private static boolean isLowerCase(byte value)
    • isUpperCase

      static boolean isUpperCase(byte value)
      Check if the given byte is upper case.
      Parameters:
      value - the byte to check
      Returns:
      true if the byte is upper case, false otherwise.
    • toLowerCase

      static byte toLowerCase(byte value)
      Convert the given byte to lower case.
      Parameters:
      value - the byte to convert
      Returns:
      the lower case byte
    • toUpperCase

      static byte toUpperCase(byte value)
      Convert the given byte to upper case.
      Parameters:
      value - the byte to convert
      Returns:
      the upper case byte