AWS SDK for C++  0.14.3
AWS SDK for C++
Static Public Member Functions | List of all members
Aws::Utils::StringUtils Class Reference

#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::StringSplit (const Aws::String &toSplit, char splitOn)
 
static Aws::Vector< Aws::StringSplitOnLine (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)
 

Detailed Description

All the things the c++ stdlib is missing for string operations that I needed.

Definition at line 36 of file StringUtils.h.

Member Function Documentation

static bool Aws::Utils::StringUtils::CaselessCompare ( const char *  value1,
const char *  value2 
)
static

Does a caseless comparison of two strings.

static bool Aws::Utils::StringUtils::ConvertToBool ( const char *  source)
static

convert to bool

static double Aws::Utils::StringUtils::ConvertToDouble ( const char *  source)
static

convert to double

static long Aws::Utils::StringUtils::ConvertToInt32 ( const char *  source)
static

convert to int 32

static long long Aws::Utils::StringUtils::ConvertToInt64 ( const char *  source)
static

convert to int 64

static Aws::String Aws::Utils::StringUtils::LTrim ( const char *  source)
static

static Aws::Vector<Aws::String> SplitOnRegex(Aws::String regex); trim from start

static void Aws::Utils::StringUtils::Replace ( Aws::String s,
const char *  search,
const char *  replace 
)
static
static Aws::String Aws::Utils::StringUtils::RTrim ( const char *  source)
static

trim from end

static Aws::Vector<Aws::String> Aws::Utils::StringUtils::Split ( const Aws::String toSplit,
char  splitOn 
)
static

Splits a string on a delimiter (empty items are excluded).

static Aws::Vector<Aws::String> Aws::Utils::StringUtils::SplitOnLine ( const Aws::String toSplit)
static

Splits a string on new line characters.

template<typename T >
static Aws::String Aws::Utils::StringUtils::to_string ( value)
inlinestatic

not all platforms (Android) have std::to_string

Definition at line 153 of file StringUtils.h.

static Aws::String Aws::Utils::StringUtils::ToLower ( const char *  source)
static

Converts a string to lower case.

static Aws::String Aws::Utils::StringUtils::ToUpper ( const char *  source)
static

Converts a string to upper case.

static Aws::String Aws::Utils::StringUtils::Trim ( const char *  source)
static

trim from both ends

static Aws::String Aws::Utils::StringUtils::URLDecode ( const char *  safe)
static

Decodes a URL encoded string (will handle both encoding schemes for spaces).

static Aws::String Aws::Utils::StringUtils::URLEncode ( const char *  unsafe)
static

URL encodes a string (uses %20 not + for spaces).

static Aws::String Aws::Utils::StringUtils::URLEncode ( double  unsafe)
static

URL encodes a double (if it ends up going to scientific notation) otherwise it just returns it as a string.

static Aws::String Aws::Utils::StringUtils::UTF8Escape ( const char *  unicodeString,
const char *  delimiter 
)
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


The documentation for this class was generated from the following file: