src/main/java/com/basistech/tclre/ColorMap.java
private void dumpcolor(int co, ColorDesc cd) {
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        pw.format("Color %d - %d chars %s\n", co, cd.getNChars(), cd.pseudo() ? " (pseudo)" : "");
        for (Map.Entry<Range<Integer>, Short> me : map.asMapOfRanges().entrySet()) {
            if (me.getValue() == co) {
                pw.format(" %s %s\n", me.getKey(), UCharacter.getExtendedName(me.getKey().lowerEndpoint()));
            }
        }
        pw.flush();
        String r = sw.toString();
        System.out.println(r);
    }
private void dumpcolor(int co, ColorDesc cd) {
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        pw.format("Color %d - %d chars %s\n", co, cd.getNChars(), cd.pseudo() ? " (pseudo)" : "");
        for (Map.Entry<Range<Integer>, Short> me : map.asMapOfRanges().entrySet()) {
            if (me.getValue() == co) {
                pw.format(" %s %s\n", me.getKey(), UCharacter.getExtendedName(me.getKey().lowerEndpoint()));
            }
        }
        pw.flush();
        String r = sw.toString();
        System.out.println(r);
    }
private void dumpcolor ( int co , ColorDesc cd ) { StringWriter sw = new StringWriter ( ) ; PrintWriter pw = new PrintWriter ( sw ) ; pw . format ( "Color %d - %d chars %s\n" , co , cd . getNChars ( ) , cd . pseudo ( ) ? " (pseudo)" : "" ) ; for ( Map . Entry < Range < Integer > , Short > me : map . asMapOfRanges ( ) . entrySet ( ) ) { if ( me . getValue ( ) == co ) { pw . format ( " %s %s\n" , me . getKey ( ) , UCharacter . getExtendedName ( me . getKey ( ) . lowerEndpoint ( ) ) ) ; } } pw . flush ( ) ; String r = sw . toString ( ) ; System . out . println ( r ) ; }
/*
Not speedy. This is for debugging.
/ * Not speedy . This is for debugging .