@Test public void testFormatManganame1() { String manganame = ViewPageConstants.formatManganame( "naruto" ); Assert.assertEquals( "naruto", manganame ); }
@VisibleForTesting static String formatManganame( final String foldername ) { String mangarawname = foldername; if ( foldername.matches( ".+_\\d+" ) ) { int lastUnderscore = foldername.lastIndexOf( '_' ); if ( lastUnderscore > -1 ) { mangarawname = foldername.substring( 0, lastUnderscore ); } } return mangarawname.replace( '_', ' ' ).trim(); }
ViewPageConstants { @VisibleForTesting static String formatManganame( final String foldername ) { String mangarawname = foldername; if ( foldername.matches( ".+_\\d+" ) ) { int lastUnderscore = foldername.lastIndexOf( '_' ); if ( lastUnderscore > -1 ) { mangarawname = foldername.substring( 0, lastUnderscore ); } } return mangarawname.replace( '_', ' ' ).trim(); } }
ViewPageConstants { @VisibleForTesting static String formatManganame( final String foldername ) { String mangarawname = foldername; if ( foldername.matches( ".+_\\d+" ) ) { int lastUnderscore = foldername.lastIndexOf( '_' ); if ( lastUnderscore > -1 ) { mangarawname = foldername.substring( 0, lastUnderscore ); } } return mangarawname.replace( '_', ' ' ).trim(); } private  ViewPageConstants(); }
ViewPageConstants { @VisibleForTesting static String formatManganame( final String foldername ) { String mangarawname = foldername; if ( foldername.matches( ".+_\\d+" ) ) { int lastUnderscore = foldername.lastIndexOf( '_' ); if ( lastUnderscore > -1 ) { mangarawname = foldername.substring( 0, lastUnderscore ); } } return mangarawname.replace( '_', ' ' ).trim(); } private  ViewPageConstants();  }
ViewPageConstants { @VisibleForTesting static String formatManganame( final String foldername ) { String mangarawname = foldername; if ( foldername.matches( ".+_\\d+" ) ) { int lastUnderscore = foldername.lastIndexOf( '_' ); if ( lastUnderscore > -1 ) { mangarawname = foldername.substring( 0, lastUnderscore ); } } return mangarawname.replace( '_', ' ' ).trim(); } private  ViewPageConstants();  static final Comparator<Map.Entry<Integer, ?>> INTEGER_ENTRY_COMPARATOR; static final Comparator<File> NUMERIC_FILENAME_COMPARATOR; static final Comparator<Path> NUMERIC_PATHNAME_COMPARATOR; static final Comparator<String> NUMERIC_STRING_COMPARATOR; }