RFR: JDK-8200377 String::strip, String::stripLeading, String::stripTrailing

Jim Laskey james.laskey at oracle.com
Wed May 9 14:08:05 UTC 2018


This feature introduces three String instance methods for removal of white space from the beginning and end of a string. Unlike String::trim, these methods use the Unicode definition of white space. Specifically, these methods use Character.isWhitespace(int codePoint) to detect space characters.

webrev: http://cr.openjdk.java.net/~jlaskey/8200377/webrev/index.html
jbs: https://bugs.openjdk.java.net/browse/JDK-8200377
csr: https://bugs.openjdk.java.net/browse/JDK-8200378



More information about the core-libs-dev mailing list