@Test public void testUnquoteString() { assertEquals( "hello world", StringUtils.unquote( "\"hello world\"" ) ); assertEquals( "\"hello world", StringUtils.unquote( "\"hello world" ) ); assertEquals( "hello world\"", StringUtils.unquote( "hello world\"" ) ); assertEquals( "hello world", StringUtils.unquote( "'hello world'", '\'' ) ); assertEquals( "'hello world", StringUtils.unquote( "'hello world", '\'' ) ); assertEquals( "hello world'", StringUtils.unquote( "hello world'", '\'' ) ); }
public static String unquote( final String aInput ) { return unquote( aInput, '"' ); }
StringUtils { public static String unquote( final String aInput ) { return unquote( aInput, '"' ); } }
StringUtils { public static String unquote( final String aInput ) { return unquote( aInput, '"' ); } private  StringUtils(); }
StringUtils { public static String unquote( final String aInput ) { return unquote( aInput, '"' ); } private  StringUtils(); static String integerToBinString( final int aValue, final int aFieldWidth ); static String integerToHexString( final int aValue, final int aFieldWidth ); static boolean isEmpty( final String aValue ); static String[] tokenize( final String aInput, final String aDelimiters ); static String[] tokenizeQuotedStrings( final String aInput, final String aDelimiters ); static String unquote( final String aInput ); static String unquote( final String aInput, final char aQuoteChar ); }
StringUtils { public static String unquote( final String aInput ) { return unquote( aInput, '"' ); } private  StringUtils(); static String integerToBinString( final int aValue, final int aFieldWidth ); static String integerToHexString( final int aValue, final int aFieldWidth ); static boolean isEmpty( final String aValue ); static String[] tokenize( final String aInput, final String aDelimiters ); static String[] tokenizeQuotedStrings( final String aInput, final String aDelimiters ); static String unquote( final String aInput ); static String unquote( final String aInput, final char aQuoteChar );  }