trim_copy

Top  Previous  Next

Scripts > Class elements and c++ instructions > String manipulation > trim_copy

 

Prototype

 

str trim_copy(const str& xs)

 

Description

 

Remove all leading and trailing spaces from the input. The result is a trimmed copy of the input

 

 

Example:

 

str s = trim_copy("   TextTransformer   ");

 

has the result: s == "TextTransformer".

 

 



This page belongs to the TextTransformer Documentation

Home  Content  German