8#include <aws/core/Core_EXPORTS.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSStringStream.h>
13#include <aws/common/byte_buf.h>
54 return URLEncode(unsafe.c_str());
84 INCLUDE_EMPTY_ENTRIES,
88 INCLUDE_EMPTY_SEGMENTS,
181 static Aws::WString ToWString(
const char* source);
186 static Aws::String FromWString(
const wchar_t* source);
192 template<
typename T >
205 return (c >=
'A' && c <=
'Z') || (c >=
'a' && c <=
'z') || (c >=
'0' && c <=
'9');
211 template<typename T, class = typename std::enable_if<std::is_unsigned<T>::value>::type>
220 s.reserve(
sizeof(value) * 2);
224 s +=
"0123456789ABCDEF"[r & 0xf];
228 std::reverse(s.begin(), s.end());
234 return Aws::String(
reinterpret_cast<char *
>(cursor.ptr), cursor.len);
static Aws::Vector< Aws::String > SplitOnLine(const Aws::String &toSplit)
static Aws::Vector< Aws::String > Split(const Aws::String &toSplit, char splitOn, size_t numOfTargetParts)
Splits a string on a delimiter (empty items are excluded).
static Aws::Vector< Aws::String > Split(const Aws::String &toSplit, char splitOn, SplitOptions option)
Splits a string on a delimiter.
static long ConvertToInt32(const char *source)
static void Replace(Aws::String &s, const char *search, const char *replace)
static long long ConvertToInt64(const char *source)
static bool IsAlnum(char c)
static Aws::String ToUpper(const char *source)
static Aws::String ToLower(const char *source)
static Aws::String LTrim(const char *source)
static Aws::String ToHexString(T value)
static Aws::String FromByteCursor(aws_byte_cursor cursor)
static bool ConvertToBool(const char *source)
static Aws::String Trim(const char *source)
static Aws::String URLEncode(double unsafe)
static Aws::Vector< Aws::String > SplitWithSpaces(const Aws::String &toSplit, char splitOn)
static Aws::String to_string(T value)
static Aws::String URLEncode(const char *unsafe)
static Aws::String UTF8Escape(const char *unicodeString, const char *delimiter)
static Aws::Vector< Aws::String > Split(const Aws::String &toSplit, char splitOn)
Splits a string on a delimiter (empty items are excluded).
static Aws::String RTrim(const char *source)
static Aws::String URLEncode(const Aws::String &unsafe)
static Aws::String URLDecode(const char *safe)
static double ConvertToDouble(const char *source)
static Aws::Vector< Aws::String > Split(const Aws::String &toSplit, char splitOn, size_t numOfTargetParts, SplitOptions option)
Splits a string on a delimiter.
static bool CaselessCompare(const char *value1, const char *value2)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
std::vector< T, Aws::Allocator< T > > Vector