ForNext
Only Do What Only You Can Do
050. trim
Hyperpolyglot C++ Style Languages: C++, Objective C, Java, C# より (2012.05.08)
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
F#
C
C++
#include <boost/algorithm/string.hpp> string s(" hello "); boost::trim(s);
C++Builder
VC++
C#
" hello ".Trim()
Java
" hello ".trim()
Objective-C
[@" hello " stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]