home > 比較編 > C, C++, Objective-C, Java, C# > strings >

ForNext

Only Do What Only You Can Do

050. trim

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


D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system