@Test public void compactTest() { String letters = "ab\0\0\0\0\0\0c\0d\0\0e"; letters = compact( letters ); assertEquals( "abcde", letters ); }
public static String compact( String str ) { return FastStringUtils.noCopyStringFromChars( Chr.compact( FastStringUtils.toCharArray(str) ) ); }
Str { public static String compact( String str ) { return FastStringUtils.noCopyStringFromChars( Chr.compact( FastStringUtils.toCharArray(str) ) ); } }
Str { public static String compact( String str ) { return FastStringUtils.noCopyStringFromChars( Chr.compact( FastStringUtils.toCharArray(str) ) ); }  }
Str { public static String compact( String str ) { return FastStringUtils.noCopyStringFromChars( Chr.compact( FastStringUtils.toCharArray(str) ) ); }  @Universal static int lengthOf( String str ); @Universal static String sliceOf( String str, int start ); @Universal static String sliceOf( String str, int start, int end ); @Universal static String endSliceOf( String str, int end ); @Universal static char atIndex( String str, int index ); @Universal static String atIndex( String str, int index, char c ); @Universal static int len( String str ); @Universal static String slc( String str, int start ); @Universal static String slc( String str, int start, int end ); @Universal static String slcEnd( String str, int end ); @Universal static char idx( String str, int index ); @Universal static String idx( String str, int index, char c ); @Universal static boolean in( char[] chars, String str ); @Universal static boolean in( char c, String str ); @Universal static boolean in( char c, int offset, String str ); @Universal static boolean in( char c, int offset, int end, String str ); @Universal static String add( String str, char c ); @Universal static String add( String str, String str2 ); @Universal static String add( String... strings ); static String addObjects( Object... objects ); static String compact( String str ); static String[] split( String str ); static String[] splitLines( String str ); static String[] splitComma( String str ); static String[] splitBySpace( String str ); static String[] splitByPipe( String str ); static String[] fromCharArrayOfArrayToStringArray( char[][] split ); static String upper( String str ); static String lower( String str ); static String camelCaseUpper( String in ); static String camelCaseLower( String in ); static String camelCase( String in ); static String camelCase( String inStr, boolean upper ); static boolean insideOf(String start, String inStr, String end); static String underBarCase( String inStr ); static void equalsOrDie(CharSequence a, CharSequence b); static void equalsOrDie(String a, String b); static String lpad( String inStr, int size, char fill ); static String lpad( String inStr, int size ); static String lpad( Object inStr, int size ); static String lpad( Object inStr); static String zfill( int num, int size ); static String rpad( String inStr, int size, char fill ); static String rpad( String inStr, int size); static String rpad( Object obj, int size); static String rpad( Object obj); static String rpad( Object obj, int size, char fill ); static String[] split( final String input,
                                  final char split ); @Universal static boolean in( String value, String str ); static String lines( String... lines ); static String linesConvertQuotes( String... lines ); static String join( char delim, String... args ); static String joinObjects( char delim, Object... args ); static String join( String... args ); static String joinCollection( char delim, List<?> args ); static String joinCollection( String delim, List<?> args ); @Universal static boolean isEmpty( String str ); @Universal static boolean isEmpty( Object str ); static String uncapitalize( String string ); static String toString(Object object, String defaultString); static String toString(Object object); static String str(Object str); static boolean startsWithItemInCollection(String name, Collection<String> startsWithList); static String readable(String s); static String quote(String s); static String singleQuote(String s); static String doubleQuote(String s); static String str(byte[] bytes); static String num(Number count); static boolean empty(String str); }
Str { public static String compact( String str ) { return FastStringUtils.noCopyStringFromChars( Chr.compact( FastStringUtils.toCharArray(str) ) ); }  @Universal static int lengthOf( String str ); @Universal static String sliceOf( String str, int start ); @Universal static String sliceOf( String str, int start, int end ); @Universal static String endSliceOf( String str, int end ); @Universal static char atIndex( String str, int index ); @Universal static String atIndex( String str, int index, char c ); @Universal static int len( String str ); @Universal static String slc( String str, int start ); @Universal static String slc( String str, int start, int end ); @Universal static String slcEnd( String str, int end ); @Universal static char idx( String str, int index ); @Universal static String idx( String str, int index, char c ); @Universal static boolean in( char[] chars, String str ); @Universal static boolean in( char c, String str ); @Universal static boolean in( char c, int offset, String str ); @Universal static boolean in( char c, int offset, int end, String str ); @Universal static String add( String str, char c ); @Universal static String add( String str, String str2 ); @Universal static String add( String... strings ); static String addObjects( Object... objects ); static String compact( String str ); static String[] split( String str ); static String[] splitLines( String str ); static String[] splitComma( String str ); static String[] splitBySpace( String str ); static String[] splitByPipe( String str ); static String[] fromCharArrayOfArrayToStringArray( char[][] split ); static String upper( String str ); static String lower( String str ); static String camelCaseUpper( String in ); static String camelCaseLower( String in ); static String camelCase( String in ); static String camelCase( String inStr, boolean upper ); static boolean insideOf(String start, String inStr, String end); static String underBarCase( String inStr ); static void equalsOrDie(CharSequence a, CharSequence b); static void equalsOrDie(String a, String b); static String lpad( String inStr, int size, char fill ); static String lpad( String inStr, int size ); static String lpad( Object inStr, int size ); static String lpad( Object inStr); static String zfill( int num, int size ); static String rpad( String inStr, int size, char fill ); static String rpad( String inStr, int size); static String rpad( Object obj, int size); static String rpad( Object obj); static String rpad( Object obj, int size, char fill ); static String[] split( final String input,
                                  final char split ); @Universal static boolean in( String value, String str ); static String lines( String... lines ); static String linesConvertQuotes( String... lines ); static String join( char delim, String... args ); static String joinObjects( char delim, Object... args ); static String join( String... args ); static String joinCollection( char delim, List<?> args ); static String joinCollection( String delim, List<?> args ); @Universal static boolean isEmpty( String str ); @Universal static boolean isEmpty( Object str ); static String uncapitalize( String string ); static String toString(Object object, String defaultString); static String toString(Object object); static String str(Object str); static boolean startsWithItemInCollection(String name, Collection<String> startsWithList); static String readable(String s); static String quote(String s); static String singleQuote(String s); static String doubleQuote(String s); static String str(byte[] bytes); static String num(Number count); static boolean empty(String str); final static String EMPTY_STRING; }