List of usage examples for java.lang String codePoints
@Override
public IntStream codePoints()
From source file:org.zeroturnaround.isjrebel.IsJRebel.java
private static String dropPunctuation(String input) { return input.codePoints() .filter(c -> Character.isLetter(c) || Character.isDigit(c) || Character.isWhitespace(c)) .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString(); }