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
Post a Comment