AWS SDK for C++
0.14.3
AWS SDK for C++
|
#include <StringUtils.h>
Static Public Member Functions | |
static void | Replace (Aws::String &s, const char *search, const char *replace) |
static Aws::String | ToLower (const char *source) |
static Aws::String | ToUpper (const char *source) |
static bool | CaselessCompare (const char *value1, const char *value2) |
static Aws::String | URLEncode (const char *unsafe) |
static Aws::String | UTF8Escape (const char *unicodeString, const char *delimiter) |
static Aws::String | URLEncode (double unsafe) |
static Aws::String | URLDecode (const char *safe) |
static Aws::Vector< Aws::String > | Split (const Aws::String &toSplit, char splitOn) |
static Aws::Vector< Aws::String > | SplitOnLine (const Aws::String &toSplit) |
static Aws::String | LTrim (const char *source) |
static Aws::String | RTrim (const char *source) |
static Aws::String | Trim (const char *source) |
static long long | ConvertToInt64 (const char *source) |
static long | ConvertToInt32 (const char *source) |
static bool | ConvertToBool (const char *source) |
static double | ConvertToDouble (const char *source) |
template<typename T > | |
static Aws::String | to_string (T value) |
All the things the c++ stdlib is missing for string operations that I needed.
Definition at line 36 of file StringUtils.h.
|
static |
Does a caseless comparison of two strings.
|
static |
convert to bool
|
static |
convert to double
|
static |
convert to int 32
|
static |
convert to int 64
|
static |
static Aws::Vector<Aws::String> SplitOnRegex(Aws::String regex); trim from start
|
static |
|
static |
trim from end
|
static |
Splits a string on a delimiter (empty items are excluded).
|
static |
Splits a string on new line characters.
|
inlinestatic |
not all platforms (Android) have std::to_string
Definition at line 153 of file StringUtils.h.
|
static |
Converts a string to lower case.
|
static |
Converts a string to upper case.
|
static |
trim from both ends
|
static |
Decodes a URL encoded string (will handle both encoding schemes for spaces).
|
static |
URL encodes a string (uses %20 not + for spaces).
|
static |
URL encodes a double (if it ends up going to scientific notation) otherwise it just returns it as a string.
|
static |
Http Clients tend to escape some characters but not all. Escaping all of them causes problems, because the client will also try to escape them. So this only escapes non-ascii characters and the + character