class Readers {

    public static String until(StringReader reader, char delimiter) {
        var start = reader.getCursor();
        while (reader.canRead() && reader.peek() != delimiter) {
            reader.skip();
        }
        
        return reader.getString().substring(start, reader.getCursor());
    }

}