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? -

c# - MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9): error MSB4094 -