|
std::string ION_API | ion::base::MimeBase64EncodeString (const std::string &str) |
| Returns a mime base-64 encoded version of the passed string. More...
|
|
std::string ION_API | ion::base::EscapeString (const std::string &str) |
| Returns an escaped version of the passed string. More...
|
|
std::string ION_API | ion::base::EscapeNewlines (const std::string &str) |
| Returns a string with all newlines replaced by "\\n". More...
|
|
template<typename Alloc > |
void | ion::base::SplitStringHelper (const std::string &str, const std::string &delimiters, std::vector< std::string, Alloc > *strings) |
|
std::vector< std::string > ION_API | ion::base::SplitString (const std::string &str, const std::string &delimiters) |
| Splits a string into a vector of substrings, given a set of delimiter characters (expressed as a string). More...
|
|
AllocVector< std::string > ION_API | ion::base::SplitString (const std::string &str, const std::string &delimiters, const AllocatorPtr &alloc) |
| A version of SplitString taking an Ion Allocator. More...
|
|
std::vector< std::string > ION_API | ion::base::SplitStringWithoutSkipping (const std::string &str, const std::string &delimiters) |
| Splits a string into a vector of substrings, given a set of delimiter characters (expressed as a string). More...
|
|
ION_API std::string | ion::base::UrlDecodeString (const std::string &str) |
| Returns a decoded version of a URL-encoded string. More...
|
|
ION_API std::string | ion::base::UrlEncodeString (const std::string &str) |
| Returns a URL-encoded version of a string. More...
|
|
bool ION_API | ion::base::AreMultiLineStringsEqual (const std::string &s0, const std::string &s1, size_t *first_different_index, std::string *line0, std::string *line1, std::string *context0, std::string *context1) |
| This function can be useful for comparing multi-line strings in tests. More...
|
|
int32 ION_API | ion::base::StringToInt32 (const std::string &str) |
| Extracts and returns an integral value from str. More...
|
|
ION_API int | ion::base::CompareCaseInsensitive (const std::string &str1, const std::string &str2) |
| Case-insensitive comparison of str1 and str2. More...
|
|
ION_API bool | ion::base::StartsWithCaseInsensitive (const std::string &target, const std::string &start) |
| Returns whether target begins with start (case-insensitive). More...
|
|
ION_API bool | ion::base::EndsWithCaseInsensitive (const std::string &target, const std::string &end) |
| Returns whether target ends with end (case-insensitive). More...
|
|
ION_API int | ion::base::FindCaseInsensitive (const std::string &target, const std::string &substr) |
| Case-insensitive version of std::string find. More...
|
|
ION_API std::string | ion::base::WebSafeBase64Decode (const std::string &str) |
| Decodes a Base64 encoded string. More...
|
|
ION_API std::string | ion::base::WebSafeBase64Encode (const std::string &input) |
| Encodes a byte array using RFC 4648 base64url ('-' and '_' for 62 and 63, respectively, and no padding). More...
|
|