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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -