Castor3D 0.16.0
Multiplatform 3D engine
|
String functions namespace. More...
Namespaces | |
namespace | details |
namespace | utf8 |
Utf8 functions namespace. | |
Functions | |
CU_API bool | isInteger (String const &toTest, std::locale const &locale=std::locale("C")) |
Tests if the given String represents an integer. | |
CU_API bool | isFloating (String const &toTest, std::locale const &locale=std::locale("C")) |
Tests if the given String represents a floating number. | |
CU_API short | toShort (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves a short from a given String. | |
CU_API int | toInt (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves an int from a given String. | |
CU_API long | toLong (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves a long from a given String. | |
CU_API long long | toLongLong (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves a long long from a given String. | |
CU_API unsigned short | toUShort (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves an unsigned short from a given String. | |
CU_API unsigned int | toUInt (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves an unsigned int from a given String. | |
CU_API unsigned long | toULong (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves an unsigned long from a given String. | |
CU_API unsigned long long | toULongLong (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves an unsigned long long from a given String. | |
CU_API float | toFloat (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves a float from a given String. | |
CU_API double | toDouble (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves a double from a given String. | |
CU_API long double | toLongDouble (String const &str, std::locale const &locale=std::locale("C")) |
Retrieves a double from a given String. | |
CU_API bool | isUpperCase (String const &toTest) |
Tests if the given String is upper case. | |
CU_API bool | isLowerCase (String const &toTest) |
Tests if the given String is lower case. | |
CU_API String | upperCase (String const &str) |
sets all characters in a String to upper case | |
CU_API String | lowerCase (String const &str) |
sets all characters in a String to lower case | |
CU_API String | snakeToCamelCase (String const &str) |
Converts given string from snake_case to CamelCase. | |
CU_API String & | toUpperCase (String &str) |
sets all characters in a String to upper case | |
CU_API String & | toLowerCase (String &str) |
sets all characters in a String to lower case | |
template<typename CharT > | |
Vector< std::basic_string< CharT > > | split (std::basic_string< CharT > const &str, std::basic_string_view< CharT > delims, uint32_t maxSplits=10, bool keepEmpty=true) |
Cuts a String into substrings, using delimiter(s) | |
template<typename CharT > | |
Vector< std::basic_string< CharT > > | split (std::basic_string< CharT > const &str, std::basic_string< CharT > delims, uint32_t maxSplits=10, bool keepEmpty=true) |
Cuts a String into substrings, using delimiter(s) | |
template<typename CharT > | |
Vector< std::basic_string< CharT > > | split (std::basic_string< CharT > const &str, CharT const *delims, uint32_t maxSplits=10, bool keepEmpty=true) |
Cuts a String into substrings, using delimiter(s) | |
template<typename CharT > | |
Vector< std::basic_string_view< CharT > > | split (std::basic_string_view< CharT > str, std::basic_string_view< CharT > delims, uint32_t maxSplits=10, bool keepEmpty=true) |
Cuts a String into substrings, using delimiter(s) | |
template<typename CharT > | |
Vector< std::basic_string_view< CharT > > | split (std::basic_string_view< CharT > str, std::basic_string< CharT > delims, uint32_t maxSplits=10, bool keepEmpty=true) |
Cuts a String into substrings, using delimiter(s) | |
template<typename CharT > | |
Vector< std::basic_string_view< CharT > > | split (std::basic_string_view< CharT > str, CharT const *delims, uint32_t maxSplits=10, bool keepEmpty=true) |
Cuts a String into substrings, using delimiter(s) | |
template<typename CharT > | |
std::basic_string< CharT > & | replace (std::basic_string< CharT > &str, CharT toFind, CharT replacement) |
Replaces all occurences of a xchar by another one in a String. | |
template<typename CharT > | |
std::basic_string< CharT > & | replace (std::basic_string< CharT > &str, CharT const *toFind, CharT const *replacement) |
Replaces all occurences of a xchar by another one in a String. | |
template<typename CharT > | |
std::basic_string< CharT > & | replace (std::basic_string< CharT > &str, std::basic_string_view< CharT > toFind, CharT replacement) |
Replaces all occurences of a String by a xchar in a String. | |
template<typename CharT > | |
std::basic_string< CharT > & | replace (std::basic_string< CharT > &str, CharT toFind, std::basic_string_view< CharT > replacement) |
Replaces all occurences of a xchar by a String in a String. | |
template<typename CharT > | |
std::basic_string< CharT > & | replace (std::basic_string< CharT > &str, std::basic_string< CharT > toFind, std::basic_string< CharT > replacement) |
Replaces all occurences of a String in another one by a third one. | |
template<typename CharT > | |
std::basic_string< CharT > & | replace (std::basic_string< CharT > &str, std::basic_string_view< CharT > toFind, std::basic_string_view< CharT > replacement) |
Replaces all occurences of a String in another one by a third one. | |
template<typename CharT > | |
std::basic_string< CharT > & | trim (std::basic_string< CharT > &text, bool left=true, bool right=true, std::basic_string_view< CharT > seps=details::trimDefaultArgs< CharT >) |
Removes spaces on the left and/or on the right of the given String. | |
template<typename CharT > | |
std::basic_string_view< CharT > & | trim (std::basic_string_view< CharT > &text, bool left=true, bool right=true, std::basic_string_view< CharT > seps=details::trimDefaultArgs< CharT >) |
Removes spaces on the left and/or on the right of the given String. | |
template<typename CharT > | |
std::basic_string< CharT > | getLongestCommonSubstring (std::basic_string< CharT > const &lhs, std::basic_string< CharT > const &rhs) |
CU_API String | toString (char32_t value) |
Puts a value into a String. | |
CU_API String | toString (uint8_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API String | toString (int16_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API String | toString (uint16_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API String | toString (int32_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API String | toString (uint32_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API String | toString (int64_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API String | toString (uint64_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API MbString | toMbString (char32_t value) |
Puts a value into a String. | |
CU_API MbString | toMbString (uint8_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API MbString | toMbString (int16_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API MbString | toMbString (uint16_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API MbString | toMbString (int32_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API MbString | toMbString (uint32_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API MbString | toMbString (int64_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API MbString | toMbString (uint64_t value, int base=10, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< char >())) |
Puts a value into a String. | |
CU_API bool | endsWith (StringView value, StringView suffix) |
CU_API bool | startsWith (StringView value, StringView prefix) |
template<typename T > | |
void | parse (String const &str, T &value, std::locale const &locale=std::locale("C")) |
Retrieves a value from the given String. | |
template<typename T > | |
void | extract (String &str, T &value, std::locale const &locale=std::locale("C")) |
Retrieves a value from the given String. | |
template<typename T > | |
String | toString (T const &value, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< xchar >())) |
Puts a value into a String. | |
template<typename T > | |
MbString | toMbString (T const &value, std::locale const &locale=std::locale(std::locale("C"), new manip::BaseNumPut< xchar >())) |
Puts a value into a String. | |
String functions namespace.
CU_API bool castor::string::endsWith | ( | StringView | value, |
StringView | suffix ) |
[in] | value | The value. |
[in] | suffix | The suffix. |
true
if value
ends with suffix
.
|
inline |
Retrieves a value from the given String.
[in] | str | The String supposedly containing the value |
[out] | value | Receives the retrieved value |
[in] | locale | The locale used in the conversion |
std::basic_string< CharT > castor::string::getLongestCommonSubstring | ( | std::basic_string< CharT > const & | lhs, |
std::basic_string< CharT > const & | rhs ) |
[in] | lhs,rhs | The input strings. |
CU_API bool castor::string::isFloating | ( | String const & | toTest, |
std::locale const & | locale = std::locale("C") ) |
Tests if the given String represents a floating number.
[in] | toTest | The String to test |
[in] | locale | The locale used to determine the dot format |
false
if toTest contains any character other than '0123456789.,' or more than one '.'/',' CU_API bool castor::string::isInteger | ( | String const & | toTest, |
std::locale const & | locale = std::locale("C") ) |
Tests if the given String represents an integer.
[in] | toTest | The String to test |
[in] | locale | The locale (unused) |
false
if toTest contains any character other than '0123456789' Tests if the given String is lower case.
[in] | toTest | The String to test |
true
if toTest is lower case Tests if the given String is upper case.
[in] | toTest | The String to test |
true
if toTest is upper case sets all characters in a String to lower case
[in] | str | The String to modify |
|
inline |
Retrieves a value from the given String.
[in] | str | The String supposedly containing the value |
[in] | locale | The locale used in the conversion |
[out] | value | Receives the retrieved value |
std::basic_string< CharT > & castor::string::replace | ( | std::basic_string< CharT > & | str, |
CharT const * | toFind, | ||
CharT const * | replacement ) |
Replaces all occurences of a xchar by another one in a String.
[in,out] | str | The String to modify |
[in] | toFind | The xchar to replace |
[in] | replacement | The replacement xchar |
std::basic_string< CharT > & castor::string::replace | ( | std::basic_string< CharT > & | str, |
CharT | toFind, | ||
CharT | replacement ) |
Replaces all occurences of a xchar by another one in a String.
[in,out] | str | The String to modify |
[in] | toFind | The xchar to replace |
[in] | replacement | The replacement xchar |
std::basic_string< CharT > & castor::string::replace | ( | std::basic_string< CharT > & | str, |
CharT | toFind, | ||
std::basic_string_view< CharT > | replacement ) |
Replaces all occurences of a xchar by a String in a String.
[in,out] | str | The String to modify |
[in] | toFind | The xchar to replace |
[in] | replacement | The replacement String |
std::basic_string< CharT > & castor::string::replace | ( | std::basic_string< CharT > & | str, |
std::basic_string< CharT > | toFind, | ||
std::basic_string< CharT > | replacement ) |
Replaces all occurences of a String in another one by a third one.
[in,out] | str | The String to modify |
[in] | toFind | The String to replace |
[in] | replacement | The replacement String |
std::basic_string< CharT > & castor::string::replace | ( | std::basic_string< CharT > & | str, |
std::basic_string_view< CharT > | toFind, | ||
CharT | replacement ) |
Replaces all occurences of a String by a xchar in a String.
[in,out] | str | The String to modify |
[in] | toFind | The String to replace |
[in] | replacement | The replacement xchar |
std::basic_string< CharT > & castor::string::replace | ( | std::basic_string< CharT > & | str, |
std::basic_string_view< CharT > | toFind, | ||
std::basic_string_view< CharT > | replacement ) |
Replaces all occurences of a String in another one by a third one.
[in,out] | str | The String to modify |
[in] | toFind | The String to replace |
[in] | replacement | The replacement String |
Converts given string from snake_case to CamelCase.
Vector< std::basic_string< CharT > > castor::string::split | ( | std::basic_string< CharT > const & | str, |
CharT const * | delims, | ||
uint32_t | maxSplits = 10, | ||
bool | keepEmpty = true ) |
Cuts a String into substrings, using delimiter(s)
[in] | str | The String to cut |
[in] | delims | The delimiter(s) |
[in] | maxSplits | The max splits count (the return will contain 0 < x < maxSplits substrings) |
[in] | keepEmpty | Tells if the function keeps empty substrings or not |
Vector< std::basic_string< CharT > > castor::string::split | ( | std::basic_string< CharT > const & | str, |
std::basic_string< CharT > | delims, | ||
uint32_t | maxSplits = 10, | ||
bool | keepEmpty = true ) |
Cuts a String into substrings, using delimiter(s)
[in] | str | The String to cut |
[in] | delims | The delimiter(s) |
[in] | maxSplits | The max splits count (the return will contain 0 < x < maxSplits substrings) |
[in] | keepEmpty | Tells if the function keeps empty substrings or not |
Vector< std::basic_string< CharT > > castor::string::split | ( | std::basic_string< CharT > const & | str, |
std::basic_string_view< CharT > | delims, | ||
uint32_t | maxSplits = 10, | ||
bool | keepEmpty = true ) |
Cuts a String into substrings, using delimiter(s)
[in] | str | The String to cut |
[in] | delims | The delimiter(s) |
[in] | maxSplits | The max splits count (the return will contain 0 < x < maxSplits substrings) |
[in] | keepEmpty | Tells if the function keeps empty substrings or not |
Referenced by castor3d::ParametersT< KeyT >::parse().
Vector< std::basic_string_view< CharT > > castor::string::split | ( | std::basic_string_view< CharT > | str, |
CharT const * | delims, | ||
uint32_t | maxSplits = 10, | ||
bool | keepEmpty = true ) |
Cuts a String into substrings, using delimiter(s)
[in] | str | The String to cut |
[in] | delims | The delimiter(s) |
[in] | maxSplits | The max splits count (the return will contain 0 < x < maxSplits substrings) |
[in] | keepEmpty | Tells if the function keeps empty substrings or not |
Vector< std::basic_string_view< CharT > > castor::string::split | ( | std::basic_string_view< CharT > | str, |
std::basic_string< CharT > | delims, | ||
uint32_t | maxSplits = 10, | ||
bool | keepEmpty = true ) |
Cuts a String into substrings, using delimiter(s)
[in] | str | The String to cut |
[in] | delims | The delimiter(s) |
[in] | maxSplits | The max splits count (the return will contain 0 < x < maxSplits substrings) |
[in] | keepEmpty | Tells if the function keeps empty substrings or not |
Vector< std::basic_string_view< CharT > > castor::string::split | ( | std::basic_string_view< CharT > | str, |
std::basic_string_view< CharT > | delims, | ||
uint32_t | maxSplits = 10, | ||
bool | keepEmpty = true ) |
Cuts a String into substrings, using delimiter(s)
[in] | str | The String to cut |
[in] | delims | The delimiter(s) |
[in] | maxSplits | The max splits count (the return will contain 0 < x < maxSplits substrings) |
[in] | keepEmpty | Tells if the function keeps empty substrings or not |
CU_API bool castor::string::startsWith | ( | StringView | value, |
StringView | prefix ) |
[in] | value | The value. |
[in] | prefix | The suffix. |
true
if value
starts with prefix
. CU_API double castor::string::toDouble | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves a double from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
CU_API float castor::string::toFloat | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves a float from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
CU_API int castor::string::toInt | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves an int from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
CU_API long castor::string::toLong | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves a long from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
CU_API long double castor::string::toLongDouble | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves a double from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
CU_API long long castor::string::toLongLong | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves a long long from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
sets all characters in a String to lower case
[in,out] | str | The String to modify, receives the modified String |
Puts a value into a String.
[in] | value | The value |
CU_API MbString castor::string::toMbString | ( | int16_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API MbString castor::string::toMbString | ( | int32_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API MbString castor::string::toMbString | ( | int64_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
|
inline |
Puts a value into a String.
[in] | value | The value |
[in] | locale | The locale used in the conversion |
CU_API MbString castor::string::toMbString | ( | uint16_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API MbString castor::string::toMbString | ( | uint32_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API MbString castor::string::toMbString | ( | uint64_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API MbString castor::string::toMbString | ( | uint8_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API short castor::string::toShort | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves a short from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
Puts a value into a String.
[in] | value | The value |
CU_API String castor::string::toString | ( | int16_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API String castor::string::toString | ( | int32_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API String castor::string::toString | ( | int64_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
|
inline |
Puts a value into a String.
[in] | value | The value |
[in] | locale | The locale used in the conversion |
CU_API String castor::string::toString | ( | uint16_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API String castor::string::toString | ( | uint32_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API String castor::string::toString | ( | uint64_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API String castor::string::toString | ( | uint8_t | value, |
int | base = 10, | ||
std::locale const & | locale = std::locale(std::locale("C"), new manip::BaseNumPut< char >()) ) |
Puts a value into a String.
[in] | value | The value |
[in] | base | The numeric base |
[in] | locale | The locale used in the conversion |
CU_API unsigned int castor::string::toUInt | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves an unsigned int from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
CU_API unsigned long castor::string::toULong | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves an unsigned long from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
CU_API unsigned long long castor::string::toULongLong | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves an unsigned long long from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
sets all characters in a String to upper case
[in,out] | str | The String to modify, receives the modified String |
CU_API unsigned short castor::string::toUShort | ( | String const & | str, |
std::locale const & | locale = std::locale("C") ) |
Retrieves an unsigned short from a given String.
[in] | str | The String |
[in] | locale | The locale used in the conversion |
std::basic_string< CharT > & castor::string::trim | ( | std::basic_string< CharT > & | text, |
bool | left = true, | ||
bool | right = true, | ||
std::basic_string_view< CharT > | seps = details::trimDefaultArgs< CharT > ) |
Removes spaces on the left and/or on the right of the given String.
[in,out] | text | The String to trim, receives the trimmed string |
[in] | left | Tells if we remove the left spaces |
[in] | right | Tells if we remove the right spaces |
[in] | seps | The characters to trim |
std::basic_string_view< CharT > & castor::string::trim | ( | std::basic_string_view< CharT > & | text, |
bool | left = true, | ||
bool | right = true, | ||
std::basic_string_view< CharT > | seps = details::trimDefaultArgs< CharT > ) |
Removes spaces on the left and/or on the right of the given String.
[in,out] | text | The String to trim, receives the trimmed string |
[in] | left | Tells if we remove the left spaces |
[in] | right | Tells if we remove the right spaces |
[in] | seps | The characters to trim |