Package io.netty.util

Class AsciiStringUtil


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

      Constructors 
      Modifier Constructor Description
      private AsciiStringUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean containsLowerCase​(byte[] byteArray, int offset, int length)  
      private static boolean containsUpperCase​(byte[] byteArray, int offset, int length)  
      private static boolean isLowerCase​(byte value)  
      (package private) static boolean isUpperCase​(byte value)
      Check if the given byte is upper case.
      private static boolean linearContainsLowerCase​(byte[] byteArray, int offset, int length)  
      private static boolean linearContainsUpperCase​(byte[] byteArray, int offset, int length)  
      private static void linearToLowerCase​(byte[] src, int srcOffset, byte[] dst)  
      private static void linearToUpperCase​(byte[] src, int srcOffset, byte[] dst)  
      (package private) static byte toLowerCase​(byte value)
      Convert the given byte to lower case.
      private static void toLowerCase​(byte[] src, int srcOffset, byte[] dst)  
      (package private) static AsciiString toLowerCase​(AsciiString string)
      Convert the AsciiString to a lower case.
      (package private) static byte toUpperCase​(byte value)
      Convert the given byte to upper case.
      private static void toUpperCase​(byte[] src, int srcOffset, byte[] dst)  
      (package private) static AsciiString toUpperCase​(AsciiString string)
      Convert the AsciiString to a upper case.
      private static boolean unrolledContainsLowerCase​(byte[] byteArray, int offset, int byteCount)  
      private static boolean unrolledContainsUpperCase​(byte[] byteArray, int offset, int byteCount)  
      private static void unrolledToLowerCase​(byte[] src, int srcPos, byte[] dst, int dstOffset, int byteCount)  
      private static void unrolledToUpperCase​(byte[] src, int srcOffset, byte[] dst, int dstOffset, int byteCount)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsciiStringUtil

        private AsciiStringUtil()
    • Method Detail

      • 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)
      • 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