Ruby: String#strip which whitespace characters? -


which whitespace characters string methods lstrip, lstrip!, rstrip, rstrip!, strip, strip! remove?

horizontal/vertical tabs, newlines, page/form feeds, carriage returns, , spaces.

for ascii strings, strip methods use string class's ascii_isspace method, looks character in isspacetable. this table identifies character codes 9-13 , 32 whitespace..


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -