test_class.declarator: logger = LoggerFactory.getLogger(StringUtilTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(StringUtilTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: TEST_BYTES1 = {'H','E','L','L','O',' ','W','O','R','L','D'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_BYTES1 = {'H','E','L','L','O',' ','W','O','R','L','D'};
test_class.type: byte[]
test_class.var_name: TEST_BYTES1
test_class.declarator: TEST_HELLO = {'H','E','L','L','O'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_HELLO = {'H','E','L','L','O'};
test_class.type: byte[]
test_class.var_name: TEST_HELLO
test_class.declarator: TEST_H = {'H'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_H = {'H'};
test_class.type: byte[]
test_class.var_name: TEST_H
test_class.declarator: TEST_WORLD = {'W','O','R','L','D'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_WORLD = {'W','O','R','L','D'};
test_class.type: byte[]
test_class.var_name: TEST_WORLD
test_class.declarator: TEST_W = {'W'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_W = {'W'};
test_class.type: byte[]
test_class.var_name: TEST_W
test_class.declarator: TEST_D = {'D'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_D = {'D'};
test_class.type: byte[]
test_class.var_name: TEST_D
test_class.declarator: TEST_SPACEH = {' ','H'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_SPACEH = {' ','H'};
test_class.type: byte[]
test_class.var_name: TEST_SPACEH
test_class.declarator: TEST_SPACEW = {' ','W'}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_SPACEW = {' ','W'};
test_class.type: byte[]
test_class.var_name: TEST_SPACEW
test_class.file: ch-commons-util/src/test/java/com/cloudhopper/commons/util/StringUtilTest.java
test_class.identifier: StringUtilTest
test_case.body: @Test
      public void isSafeChar() {
          Assert.assertEquals(true, StringUtil.isSafeChar('%'));
          Assert.assertEquals(true, StringUtil.isSafeChar('A'));
          Assert.assertEquals(true, StringUtil.isSafeChar('9'));
          Assert.assertEquals(true, StringUtil.isSafeChar('#'));
          Assert.assertEquals(true, StringUtil.isSafeChar('!'));
          Assert.assertEquals(false, StringUtil.isSafeChar(' '));
          Assert.assertEquals(false, StringUtil.isSafeChar('\n'));
          Assert.assertEquals(false, StringUtil.isSafeChar('\r'));
          Assert.assertEquals(false, StringUtil.isSafeChar('\t'));
          Assert.assertEquals(false, StringUtil.isSafeChar('"'));
      }
test_case.class_method_signature: StringUtilTest.isSafeChar()
test_case.full_signature: @Test public void isSafeChar()
test_case.identifier: isSafeChar
test_case.invocations: assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar assertEquals isSafeChar
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void isSafeChar()
focal_class.declarator: PRINTABLE = ": ~`!@#$%^&*()-_+=/\\,.[]{}|?<>\"'"
focal_class.modifier: private static final
focal_class.original_string: private static final String PRINTABLE = ": ~`!@#$%^&*()-_+=/\\,.[]{}|?<>\"'";
focal_class.type: String
focal_class.var_name: PRINTABLE
focal_class.declarator: SAFE = ":~!@#$%^&*()-_+=/\\,.[]{}|?<>"
focal_class.modifier: private static final
focal_class.original_string: private static final String SAFE = ":~!@#$%^&*()-_+=/\\,.[]{}|?<>";
focal_class.type: String
focal_class.var_name: SAFE
focal_class.declarator: XML_CHARS = {
          { "&", "&amp;"},
          { "<", "&lt;"},
          { ">", "&gt;"},
          { "\"", "&quot;"},
          { "'", "&apos;"},
          { "\n", "&#10;"},
          { "\r", "&#13;"},
      }
focal_class.modifier: private static final
focal_class.original_string: private static final String[][] XML_CHARS = {
          { "&", "&amp;"},
          { "<", "&lt;"},
          { ">", "&gt;"},
          { "\"", "&quot;"},
          { "'", "&apos;"},
          { "\n", "&#10;"},
          { "\r", "&#13;"},
      };
focal_class.type: String[][]
focal_class.var_name: XML_CHARS
focal_class.declarator: HEX_TABLE = {
          '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
          'a', 'b', 'c', 'd', 'e', 'f'
      }
focal_class.modifier: public static
focal_class.original_string: public static char[] HEX_TABLE = {
          '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
          'a', 'b', 'c', 'd', 'e', 'f'
      };
focal_class.type: char[]
focal_class.var_name: HEX_TABLE
focal_class.file: ch-commons-util/src/main/java/com/cloudhopper/commons/util/StringUtil.java
focal_class.identifier: StringUtil
focal_class.class_method_signature: StringUtil.substituteWithEnvironment(String string0)
focal_class.full_signature: public static String substituteWithEnvironment(String string0)
focal_class.identifier: substituteWithEnvironment
focal_class.modifiers: public static
focal_class.parameters: (String string0)
focal_class.return: String
focal_class.signature: String substituteWithEnvironment(String string0)
focal_class.class_method_signature: StringUtil.substituteWithProperties(String string0, String startStr, String endStr, Properties properties)
focal_class.full_signature: public static String substituteWithProperties(String string0, String startStr, String endStr, Properties properties)
focal_class.identifier: substituteWithProperties
focal_class.modifiers: public static
focal_class.parameters: (String string0, String startStr, String endStr, Properties properties)
focal_class.return: String
focal_class.signature: String substituteWithProperties(String string0, String startStr, String endStr, Properties properties)
focal_class.class_method_signature: StringUtil.isSafeString(String string0)
focal_class.full_signature: public static boolean isSafeString(String string0)
focal_class.identifier: isSafeString
focal_class.modifiers: public static
focal_class.parameters: (String string0)
focal_class.return: boolean
focal_class.signature: boolean isSafeString(String string0)
focal_class.class_method_signature: StringUtil.isSafeChar(char ch)
focal_class.full_signature: public static boolean isSafeChar(char ch)
focal_class.identifier: isSafeChar
focal_class.modifiers: public static
focal_class.parameters: (char ch)
focal_class.return: boolean
focal_class.signature: boolean isSafeChar(char ch)
focal_class.class_method_signature: StringUtil.capitalize(String string0)
focal_class.full_signature: static public String capitalize(String string0)
focal_class.identifier: capitalize
focal_class.modifiers: static public
focal_class.parameters: (String string0)
focal_class.return: String
focal_class.signature: String capitalize(String string0)
focal_class.class_method_signature: StringUtil.uncapitalize(String string0)
focal_class.full_signature: static public String uncapitalize(String string0)
focal_class.identifier: uncapitalize
focal_class.modifiers: static public
focal_class.parameters: (String string0)
focal_class.return: String
focal_class.signature: String uncapitalize(String string0)
focal_class.class_method_signature: StringUtil.contains(String[] strings, String targetString)
focal_class.full_signature: static public boolean contains(String[] strings, String targetString)
focal_class.identifier: contains
focal_class.modifiers: static public
focal_class.parameters: (String[] strings, String targetString)
focal_class.return: boolean
focal_class.signature: boolean contains(String[] strings, String targetString)
focal_class.class_method_signature: StringUtil.indexOf(String[] strings, String targetString)
focal_class.full_signature: static public int indexOf(String[] strings, String targetString)
focal_class.identifier: indexOf
focal_class.modifiers: static public
focal_class.parameters: (String[] strings, String targetString)
focal_class.return: int
focal_class.signature: int indexOf(String[] strings, String targetString)
focal_class.class_method_signature: StringUtil.stripQuotes(String string0)
focal_class.full_signature: static public String stripQuotes(String string0)
focal_class.identifier: stripQuotes
focal_class.modifiers: static public
focal_class.parameters: (String string0)
focal_class.return: String
focal_class.signature: String stripQuotes(String string0)
focal_class.class_method_signature: StringUtil.containsOnlyDigits(String string0)
focal_class.full_signature: static public boolean containsOnlyDigits(String string0)
focal_class.identifier: containsOnlyDigits
focal_class.modifiers: static public
focal_class.parameters: (String string0)
focal_class.return: boolean
focal_class.signature: boolean containsOnlyDigits(String string0)
focal_class.class_method_signature: StringUtil.split(String str, char delim)
focal_class.full_signature: static public String[] split(String str, char delim)
focal_class.identifier: split
focal_class.modifiers: static public
focal_class.parameters: (String str, char delim)
focal_class.return: String[]
focal_class.signature: String[] split(String str, char delim)
focal_class.class_method_signature: StringUtil.formatForPrint(String input)
focal_class.full_signature: public final static String formatForPrint(String input)
focal_class.identifier: formatForPrint
focal_class.modifiers: public final static
focal_class.parameters: (String input)
focal_class.return: String
focal_class.signature: String formatForPrint(String input)
focal_class.class_method_signature: StringUtil.toStringArray(Object[] objArray)
focal_class.full_signature: public static String[] toStringArray(Object[] objArray)
focal_class.identifier: toStringArray
focal_class.modifiers: public static
focal_class.parameters: (Object[] objArray)
focal_class.return: String[]
focal_class.signature: String[] toStringArray(Object[] objArray)
focal_class.class_method_signature: StringUtil.getAsciiBytes(String input)
focal_class.full_signature: public static byte[] getAsciiBytes(String input)
focal_class.identifier: getAsciiBytes
focal_class.modifiers: public static
focal_class.parameters: (String input)
focal_class.return: byte[]
focal_class.signature: byte[] getAsciiBytes(String input)
focal_class.class_method_signature: StringUtil.getAsciiString(byte[] input)
focal_class.full_signature: public static String getAsciiString(byte[] input)
focal_class.identifier: getAsciiString
focal_class.modifiers: public static
focal_class.parameters: (byte[] input)
focal_class.return: String
focal_class.signature: String getAsciiString(byte[] input)
focal_class.class_method_signature: StringUtil.trimTrailing(String str)
focal_class.full_signature: public static String trimTrailing(String str)
focal_class.identifier: trimTrailing
focal_class.modifiers: public static
focal_class.parameters: (String str)
focal_class.return: String
focal_class.signature: String trimTrailing(String str)
focal_class.class_method_signature: StringUtil.truncate(String value, int length)
focal_class.full_signature: public static String truncate(String value, int length)
focal_class.identifier: truncate
focal_class.modifiers: public static
focal_class.parameters: (String value, int length)
focal_class.return: String
focal_class.signature: String truncate(String value, int length)
focal_class.class_method_signature: StringUtil.slice(String value,
              int beginOffset, int endOffset,
              boolean trim)
focal_class.full_signature: public static String slice(String value,
              int beginOffset, int endOffset,
              boolean trim)
focal_class.identifier: slice
focal_class.modifiers: public static
focal_class.parameters: (String value,
              int beginOffset, int endOffset,
              boolean trim)
focal_class.return: String
focal_class.signature: String slice(String value,
              int beginOffset, int endOffset,
              boolean trim)
focal_class.class_method_signature: StringUtil.toHexString(byte[] bytes)
focal_class.full_signature: @Deprecated public static String toHexString(byte[] bytes)
focal_class.identifier: toHexString
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (byte[] bytes)
focal_class.return: String
focal_class.signature: String toHexString(byte[] bytes)
focal_class.class_method_signature: StringUtil.toHexString(byte[] bytes, int offset, int length)
focal_class.full_signature: @Deprecated public static String toHexString(byte[] bytes, int offset, int length)
focal_class.identifier: toHexString
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (byte[] bytes, int offset, int length)
focal_class.return: String
focal_class.signature: String toHexString(byte[] bytes, int offset, int length)
focal_class.class_method_signature: StringUtil.toHexByte(String hexString, int offset, int length)
focal_class.full_signature: @Deprecated public static byte[] toHexByte(String hexString, int offset, int length)
focal_class.identifier: toHexByte
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (String hexString, int offset, int length)
focal_class.return: byte[]
focal_class.signature: byte[] toHexByte(String hexString, int offset, int length)
focal_class.class_method_signature: StringUtil.fromHexString(String hexString)
focal_class.full_signature: @Deprecated public static byte[] fromHexString(String hexString)
focal_class.identifier: fromHexString
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (String hexString)
focal_class.return: byte[]
focal_class.signature: byte[] fromHexString(String hexString)
focal_class.class_method_signature: StringUtil.fromHexString(String hexString, int offset, int length)
focal_class.full_signature: @Deprecated public static byte[] fromHexString(String hexString, int offset, int length)
focal_class.identifier: fromHexString
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (String hexString, int offset, int length)
focal_class.return: byte[]
focal_class.signature: byte[] fromHexString(String hexString, int offset, int length)
focal_class.class_method_signature: StringUtil.isPrintableChar(char ch)
focal_class.full_signature: public static boolean isPrintableChar(char ch)
focal_class.identifier: isPrintableChar
focal_class.modifiers: public static
focal_class.parameters: (char ch)
focal_class.return: boolean
focal_class.signature: boolean isPrintableChar(char ch)
focal_class.class_method_signature: StringUtil.hexDump(String prefix, byte[] data)
focal_class.full_signature: public static String hexDump(String prefix, byte[] data)
focal_class.identifier: hexDump
focal_class.modifiers: public static
focal_class.parameters: (String prefix, byte[] data)
focal_class.return: String
focal_class.signature: String hexDump(String prefix, byte[] data)
focal_class.class_method_signature: StringUtil.SQLToUpperCase(String s)
focal_class.full_signature: public static String SQLToUpperCase(String s)
focal_class.identifier: SQLToUpperCase
focal_class.modifiers: public static
focal_class.parameters: (String s)
focal_class.return: String
focal_class.signature: String SQLToUpperCase(String s)
focal_class.class_method_signature: StringUtil.SQLEqualsIgnoreCase(String s1, String s2)
focal_class.full_signature: public static boolean SQLEqualsIgnoreCase(String s1, String s2)
focal_class.identifier: SQLEqualsIgnoreCase
focal_class.modifiers: public static
focal_class.parameters: (String s1, String s2)
focal_class.return: boolean
focal_class.signature: boolean SQLEqualsIgnoreCase(String s1, String s2)
focal_class.class_method_signature: StringUtil.normalizeSQLIdentifier(String id)
focal_class.full_signature: public static String normalizeSQLIdentifier(String id)
focal_class.identifier: normalizeSQLIdentifier
focal_class.modifiers: public static
focal_class.parameters: (String id)
focal_class.return: String
focal_class.signature: String normalizeSQLIdentifier(String id)
focal_class.class_method_signature: StringUtil.compressQuotes(String source, String quotes)
focal_class.full_signature: public static String compressQuotes(String source, String quotes)
focal_class.identifier: compressQuotes
focal_class.modifiers: public static
focal_class.parameters: (String source, String quotes)
focal_class.return: String
focal_class.signature: String compressQuotes(String source, String quotes)
focal_class.class_method_signature: StringUtil.quoteString(String source, char quote)
focal_class.full_signature: static String quoteString(String source, char quote)
focal_class.identifier: quoteString
focal_class.modifiers: static
focal_class.parameters: (String source, char quote)
focal_class.return: String
focal_class.signature: String quoteString(String source, char quote)
focal_class.class_method_signature: StringUtil.quoteStringLiteral(String string)
focal_class.full_signature: public static String quoteStringLiteral(String string)
focal_class.identifier: quoteStringLiteral
focal_class.modifiers: public static
focal_class.parameters: (String string)
focal_class.return: String
focal_class.signature: String quoteStringLiteral(String string)
focal_class.class_method_signature: StringUtil.stringify(int[] raw)
focal_class.full_signature: public static String stringify(int[] raw)
focal_class.identifier: stringify
focal_class.modifiers: public static
focal_class.parameters: (int[] raw)
focal_class.return: String
focal_class.signature: String stringify(int[] raw)
focal_class.class_method_signature: StringUtil.isEmpty(String string0)
focal_class.full_signature: public static boolean isEmpty(String string0)
focal_class.identifier: isEmpty
focal_class.modifiers: public static
focal_class.parameters: (String string0)
focal_class.return: boolean
focal_class.signature: boolean isEmpty(String string0)
focal_class.class_method_signature: StringUtil.isEqual(String string0, String string1)
focal_class.full_signature: public static boolean isEqual(String string0, String string1)
focal_class.identifier: isEqual
focal_class.modifiers: public static
focal_class.parameters: (String string0, String string1)
focal_class.return: boolean
focal_class.signature: boolean isEqual(String string0, String string1)
focal_class.class_method_signature: StringUtil.toStringWithNullAsEmpty(Object obj)
focal_class.full_signature: static public String toStringWithNullAsEmpty(Object obj)
focal_class.identifier: toStringWithNullAsEmpty
focal_class.modifiers: static public
focal_class.parameters: (Object obj)
focal_class.return: String
focal_class.signature: String toStringWithNullAsEmpty(Object obj)
focal_class.class_method_signature: StringUtil.toStringWithNullAsReplaced(Object obj)
focal_class.full_signature: static public String toStringWithNullAsReplaced(Object obj)
focal_class.identifier: toStringWithNullAsReplaced
focal_class.modifiers: static public
focal_class.parameters: (Object obj)
focal_class.return: String
focal_class.signature: String toStringWithNullAsReplaced(Object obj)
focal_class.class_method_signature: StringUtil.toStringWithNullAsNull(Object obj)
focal_class.full_signature: static public String toStringWithNullAsNull(Object obj)
focal_class.identifier: toStringWithNullAsNull
focal_class.modifiers: static public
focal_class.parameters: (Object obj)
focal_class.return: String
focal_class.signature: String toStringWithNullAsNull(Object obj)
focal_class.class_method_signature: StringUtil.isEqual(String string0, String string1, boolean caseSensitive)
focal_class.full_signature: public static boolean isEqual(String string0, String string1, boolean caseSensitive)
focal_class.identifier: isEqual
focal_class.modifiers: public static
focal_class.parameters: (String string0, String string1, boolean caseSensitive)
focal_class.return: boolean
focal_class.signature: boolean isEqual(String string0, String string1, boolean caseSensitive)
focal_class.class_method_signature: StringUtil.readToString(InputStream in)
focal_class.full_signature: public static String readToString(InputStream in)
focal_class.identifier: readToString
focal_class.modifiers: public static
focal_class.parameters: (InputStream in)
focal_class.return: String
focal_class.signature: String readToString(InputStream in)
focal_class.class_method_signature: StringUtil.escapeXml(String value)
focal_class.full_signature: public static String escapeXml(String value)
focal_class.identifier: escapeXml
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String escapeXml(String value)
focal_class.class_method_signature: StringUtil.removeAllCharsExceptDigits(String str0)
focal_class.full_signature: static public String removeAllCharsExceptDigits(String str0)
focal_class.identifier: removeAllCharsExceptDigits
focal_class.modifiers: static public
focal_class.parameters: (String str0)
focal_class.return: String
focal_class.signature: String removeAllCharsExceptDigits(String str0)
focal_method.body: public static boolean isSafeChar(char ch) {
          if (ch >= 'a' && ch <= 'z')
              return true;
          if (ch >= 'A' && ch <= 'Z')
            return true;
          if (ch >= '0' && ch <= '9')
            return true;
          // loop thru our PRINTABLE string
          for (int i = 0; i < SAFE.length(); i++) {
              if (ch == SAFE.charAt(i))
                  return true;
          }
          return false;
      }
focal_method.class_method_signature: StringUtil.isSafeChar(char ch)
focal_method.full_signature: public static boolean isSafeChar(char ch)
focal_method.identifier: isSafeChar
focal_method.invocations: length charAt
focal_method.modifiers: public static
focal_method.parameters: (char ch)
focal_method.return: boolean
focal_method.signature: boolean isSafeChar(char ch)