Content


NTL
Core
Trim

Trim


Remove all space characters from the string beginning and end.

You can find more information in comments below.

/**
Remove spaces both at the beginning and at the end of string and return new one 
@param str String where to search spaces 
@param local Locale used for search. Default is current locale 
@return String with removed spaces from beginning and end 
*/
String Trim(const String &str, const std::locale &locale = std::locale());
/**
Remove spaces both at the beginning and at the end of ANSI string and return new one 
@param str String where to search spaces 
@param local Locale used for search. Default is current locale 
@return String with removed spaces from beginning and end 
*/
AnsiString Trim(const AnsiString &str, const std::locale &locale = std::locale());
Namespace: nitisa
Include: Nitisa/Core/Strings.h