Flutter Engine
The Flutter Engine
Namespaces | Functions | Variables
string_utils.h File Reference
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  base
 

Functions

template<typename... Args>
std::string base::StringPrintf (const std::string &format, Args... args)
 
std::u16string base::ASCIIToUTF16 (std::string src)
 
std::u16string base::UTF8ToUTF16 (std::string src)
 
std::string base::UTF16ToUTF8 (std::u16string src)
 
std::u16string base::NumberToString16 (unsigned int number)
 
std::u16string base::NumberToString16 (int32_t number)
 
std::u16string base::NumberToString16 (float number)
 
std::u16string base::NumberToString16 (double number)
 
std::string base::NumberToString (unsigned int number)
 
std::string base::NumberToString (int32_t number)
 
std::string base::NumberToString (float number)
 
std::string base::NumberToString (double number)
 
std::string base::ToUpperASCII (std::string str)
 
std::string base::ToLowerASCII (std::string str)
 
std::string base::JoinString (std::vector< std::string > tokens, std::string delimiter)
 
std::u16string base::JoinString (std::vector< std::u16string > tokens, std::u16string delimiter)
 
void base::ReplaceChars (std::string in, std::string from, std::string to, std::string *out)
 
void base::ReplaceChars (std::u16string in, std::u16string from, std::u16string to, std::u16string *out)
 
bool base::LowerCaseEqualsASCII (std::string a, std::string b)
 
bool base::ContainsOnlyChars (std::u16string str, char16_t ch)
 
const std::string & base::EmptyString ()
 

Variables

constexpr char16_t base::kWhitespaceUTF16 = u' '