AWS SDK for C++AWS SDK for C++ Version 1.11.892 |
#include <StringUtils.h>
All the things the c++ stdlib is missing for string operations that I needed.
Definition at line 23 of file StringUtils.h.
| Enumerator | |
|---|---|
| NOT_SET | By default, removes all the empty entries in the vector returned by Split() |
| INCLUDE_EMPTY_ENTRIES | Deprecated use INCLUDE_EMPTY_SEGMENTS instead. |
| INCLUDE_EMPTY_SEGMENTS | Include delimiters as empty segments in the split string |
Definition at line 75 of file StringUtils.h.
Does a caseless comparison of two strings.
convert to bool
convert to double
convert to int 32
convert to int 64
Definition at line 232 of file StringUtils.h.
locale agnostic implementation of std::isalnum
Definition at line 203 of file StringUtils.h.
Joins a vector of strings with a delimiter.
static Aws::Vector<Aws::String> SplitOnRegex(Aws::String regex); trim from start
trim from end
Splits a string on a delimiter (empty items are excluded).
| toSplit,the | original string to split |
| splitOn,the | delimiter you want to use. |
Splits a string on a delimiter (empty items are excluded).
| toSplit,the | original string to split |
| splitOn,the | delimiter you want to use. |
| numOfTargetParts,how | many target parts you want to get, if it is 0, as many as possible. |
Splits a string on a delimiter.
| toSplit,the | original string to split |
| splitOn,the | delimiter you want to use. |
| numOfTargetParts,how | many target parts you want to get, if it is 0, as many as possible. |
| option,if | INCLUDE_EMPTY_ENTRIES, includes empty entries in the result, otherwise removes empty entries. |
Splits a string on a delimiter.
| toSplit,the | original string to split |
| splitOn,the | delimiter you want to use. |
| option,if | INCLUDE_EMPTY_ENTRIES, includes empty entries in the result, otherwise removes empty entries. |
Splits a string on new line characters.
Splits a string on delimeter, keeping the delimiter in the string as a empty space.
| toSplit,the | original string to split |
| splitOn,the | delimiter you want to use. |
not all platforms (Android) have std::to_string
Definition at line 193 of file StringUtils.h.
Convert an unsigned integer to its hex string in upper case.
Definition at line 212 of file StringUtils.h.
Converts a string to lower case.
Converts a string to upper case.
trim from both ends
Decodes a URL encoded string (will handle both encoding schemes for spaces).
Definition at line 52 of file StringUtils.h.
URL encodes a string (uses %20 not + for spaces).
URL encodes a double (if it ends up going to scientific notation) otherwise it just returns it as a string.
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