MCPcopy Index your code
hub / github.com/processing/processing / trim

Method trim

core/src/processing/core/PApplet.java:9067–9072  ·  view source on GitHub ↗

( begin auto-generated from trim.xml ) Removes whitespace characters from the beginning and end of a String. In addition to standard whitespace characters such as space, carriage return, and tab, this function also removes the Unicode "nbsp" character. ( end auto-generated ) @webref data:string_fu

(String str)

Source from the content-addressed store, hash-verified

9065 * @see PApplet#join(String[], char)
9066 */
9067 static public String trim(String str) {
9068 if (str == null) {
9069 return null;
9070 }
9071 return str.replace('\u00A0', ' ').trim();
9072 }
9073
9074
9075 /**

Callers 15

parsePathMethod · 0.95
parseColorsMethod · 0.95
parseFontMethod · 0.95
handleSettingsMethod · 0.95
loadTableMethod · 0.95
formatMethod · 0.95
parseMethod · 0.95
saveMethod · 0.95
trimMethod · 0.95
parseCategoriesMethod · 0.95
parseImportsMethod · 0.95
parseModeListMethod · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected