Flutter Engine
The Flutter Engine
|
Namespaces | |
namespace | internal |
namespace | testing |
namespace | win |
Classes | |
class | AutoReset |
struct | DefaultSingletonTraits |
class | LogMessage |
class | LogMessageVoidify |
class | NoDestructor |
class | scoped_nsobject |
class | scoped_nsobject< id > |
class | scoped_nsobject< NSAutoreleasePool > |
class | scoped_nsprotocol |
class | SimpleToken |
Typedefs | |
using | SizeT = StrictNumeric< size_t > |
Functions | |
template<class T , class Allocator , class Predicate > | |
size_t | EraseIf (std::vector< T, Allocator > &container, Predicate pred) |
template<typename Container , typename Value > | |
bool | Contains (const Container &container, const Value &value) |
template<typename T > | |
bool | Contains (const std::vector< T > &container, const T &value) |
void | KillProcess () |
template<class T > | |
constexpr const T & | ClampToRange (const T &value, const T &min, const T &max) |
template<typename T > | |
constexpr bool | IsApproximatelyEqual (T lhs, T rhs, T tolerance) |
template<typename Dst = int, typename Src , typename = std::enable_if_t<std::is_integral<Dst>::value && std::is_floating_point<Src>::value>> | |
Dst | ClampFloor (Src value) |
template<typename Dst = int, typename Src , typename = std::enable_if_t<std::is_integral<Dst>::value && std::is_floating_point<Src>::value>> | |
Dst | ClampCeil (Src value) |
template<typename Dst = int, typename Src , typename = std::enable_if_t<std::is_integral<Dst>::value && std::is_floating_point<Src>::value>> | |
Dst | ClampRound (Src value) |
template<class C > | |
void | swap (scoped_nsprotocol< C > &p1, scoped_nsprotocol< C > &p2) |
template<class C > | |
bool | operator== (C p1, const scoped_nsprotocol< C > &p2) |
template<class C > | |
bool | operator!= (C p1, const scoped_nsprotocol< C > &p2) |
std::ostream & | operator<< (std::ostream &out, const SimpleToken &token) |
std::optional< base::SimpleToken > | ValueToSimpleToken (std::string str) |
std::string | SimpleTokenToValue (const SimpleToken &token) |
size_t | SimpleTokenHash (const SimpleToken &SimpleToken) |
std::u16string | ASCIIToUTF16 (std::string src) |
std::u16string | UTF8ToUTF16 (std::string src) |
std::string | UTF16ToUTF8 (std::u16string src) |
std::u16string | NumberToString16 (float number) |
std::u16string | NumberToString16 (int32_t number) |
std::u16string | NumberToString16 (unsigned int number) |
std::u16string | NumberToString16 (double number) |
std::string | NumberToString (int32_t number) |
std::string | NumberToString (unsigned int number) |
std::string | NumberToString (float number) |
std::string | NumberToString (double number) |
std::string | JoinString (std::vector< std::string > tokens, std::string delimiter) |
std::u16string | JoinString (std::vector< std::u16string > tokens, std::u16string delimiter) |
void | ReplaceChars (std::string in, std::string from, std::string to, std::string *out) |
void | ReplaceChars (std::u16string in, std::u16string from, std::u16string to, std::u16string *out) |
const std::string & | EmptyString () |
std::string | ToUpperASCII (std::string str) |
std::string | ToLowerASCII (std::string str) |
bool | LowerCaseEqualsASCII (std::string a, std::string b) |
bool | ContainsOnlyChars (std::u16string str, char16_t ch) |
template<typename... Args> | |
std::string | StringPrintf (const std::string &format, Args... args) |
TEST (StringUtilsTest, StringPrintfEmpty) | |
TEST (StringUtilsTest, StringPrintfMisc) | |
TEST (StringUtilsTest, StringPrintfErrno) | |
TEST (StringUtilsTest, canASCIIToUTF16) | |
TEST (StringUtilsTest, canUTF8ToUTF16) | |
TEST (StringUtilsTest, canUTF16ToUTF8) | |
TEST (StringUtilsTest, canNumberToString16) | |
TEST (StringUtilsTest, numberToStringSimplifiesOutput) | |
Variables | |
constexpr double | kPiDouble = 3.14159265358979323846 |
constexpr float | kPiFloat = 3.14159265358979323846f |
constexpr double | kMeanGravityDouble = 9.80665 |
constexpr float | kMeanGravityFloat = 9.80665f |
constexpr size_t | kRandomTokenLength = 10 |
constexpr char16_t | kWhitespaceUTF16 = u' ' |
using base::SizeT = typedef StrictNumeric<size_t> |
Definition at line 357 of file safe_conversions.h.
std::u16string base::ASCIIToUTF16 | ( | std::string | src | ) |
Definition at line 63 of file string_utils.cc.
Dst base::ClampCeil | ( | Src | value | ) |
Definition at line 373 of file safe_conversions.h.
Dst base::ClampFloor | ( | Src | value | ) |
Definition at line 366 of file safe_conversions.h.
Dst base::ClampRound | ( | Src | value | ) |
Definition at line 380 of file safe_conversions.h.
bool base::Contains | ( | const Container & | container, |
const Value & | value | ||
) |
Definition at line 22 of file container_utils.h.
Definition at line 27 of file container_utils.h.
bool base::ContainsOnlyChars | ( | std::u16string | str, |
char16_t | ch | ||
) |
Definition at line 183 of file string_utils.cc.
const std::string & base::EmptyString | ( | ) |
Definition at line 157 of file string_utils.cc.
Definition at line 14 of file container_utils.h.
|
constexpr |
std::string base::JoinString | ( | std::vector< std::string > | tokens, |
std::string | delimiter | ||
) |
Definition at line 107 of file string_utils.cc.
std::u16string base::JoinString | ( | std::vector< std::u16string > | tokens, |
std::u16string | delimiter | ||
) |
Definition at line 119 of file string_utils.cc.
void base::KillProcess | ( | ) |
Definition at line 61 of file logging.cc.
bool base::LowerCaseEqualsASCII | ( | std::string | a, |
std::string | b | ||
) |
Definition at line 178 of file string_utils.cc.
std::string base::NumberToString | ( | double | number | ) |
Definition at line 103 of file string_utils.cc.
std::string base::NumberToString | ( | float | number | ) |
Definition at line 99 of file string_utils.cc.
std::string base::NumberToString | ( | int32_t | number | ) |
Definition at line 91 of file string_utils.cc.
std::string base::NumberToString | ( | unsigned int | number | ) |
Definition at line 95 of file string_utils.cc.
std::u16string base::NumberToString16 | ( | double | number | ) |
Definition at line 87 of file string_utils.cc.
std::u16string base::NumberToString16 | ( | float | number | ) |
Definition at line 75 of file string_utils.cc.
std::u16string base::NumberToString16 | ( | int32_t | number | ) |
Definition at line 79 of file string_utils.cc.
std::u16string base::NumberToString16 | ( | unsigned int | number | ) |
Definition at line 83 of file string_utils.cc.
bool base::operator!= | ( | C | p1, |
const scoped_nsprotocol< C > & | p2 | ||
) |
Definition at line 107 of file scoped_nsobject.h.
std::ostream & base::operator<< | ( | std::ostream & | out, |
const SimpleToken & | token | ||
) |
Definition at line 31 of file simple_token.cc.
bool base::operator== | ( | C | p1, |
const scoped_nsprotocol< C > & | p2 | ||
) |
Definition at line 102 of file scoped_nsobject.h.
void base::ReplaceChars | ( | std::string | in, |
std::string | from, | ||
std::string | to, | ||
std::string * | out | ||
) |
Definition at line 133 of file string_utils.cc.
void base::ReplaceChars | ( | std::u16string | in, |
std::u16string | from, | ||
std::u16string | to, | ||
std::u16string * | out | ||
) |
size_t base::SimpleTokenHash | ( | const SimpleToken & | SimpleToken | ) |
Definition at line 43 of file simple_token.cc.
std::string base::SimpleTokenToValue | ( | const SimpleToken & | token | ) |
Definition at line 39 of file simple_token.cc.
std::string base::StringPrintf | ( | const std::string & | format, |
Args... | args | ||
) |
Definition at line 18 of file string_utils.h.
void base::swap | ( | scoped_nsprotocol< C > & | p1, |
scoped_nsprotocol< C > & | p2 | ||
) |
Definition at line 97 of file scoped_nsobject.h.
base::TEST | ( | StringUtilsTest | , |
canASCIIToUTF16 | |||
) |
Definition at line 30 of file string_utils_unittest.cc.
base::TEST | ( | StringUtilsTest | , |
canNumberToString16 | |||
) |
Definition at line 45 of file string_utils_unittest.cc.
base::TEST | ( | StringUtilsTest | , |
canUTF16ToUTF8 | |||
) |
Definition at line 40 of file string_utils_unittest.cc.
base::TEST | ( | StringUtilsTest | , |
canUTF8ToUTF16 | |||
) |
Definition at line 35 of file string_utils_unittest.cc.
base::TEST | ( | StringUtilsTest | , |
numberToStringSimplifiesOutput | |||
) |
Definition at line 49 of file string_utils_unittest.cc.
base::TEST | ( | StringUtilsTest | , |
StringPrintfEmpty | |||
) |
Definition at line 16 of file string_utils_unittest.cc.
base::TEST | ( | StringUtilsTest | , |
StringPrintfErrno | |||
) |
Definition at line 24 of file string_utils_unittest.cc.
base::TEST | ( | StringUtilsTest | , |
StringPrintfMisc | |||
) |
Definition at line 20 of file string_utils_unittest.cc.
std::string base::ToLowerASCII | ( | std::string | str | ) |
std::string base::ToUpperASCII | ( | std::string | str | ) |
std::string base::UTF16ToUTF8 | ( | std::u16string | src | ) |
Definition at line 71 of file string_utils.cc.
std::u16string base::UTF8ToUTF16 | ( | std::string | src | ) |
Definition at line 67 of file string_utils.cc.
std::optional< base::SimpleToken > base::ValueToSimpleToken | ( | std::string | str | ) |
Definition at line 35 of file simple_token.cc.
|
constexpr |
Definition at line 14 of file math_constants.h.
|
constexpr |
Definition at line 15 of file math_constants.h.
|
constexpr |
Definition at line 10 of file math_constants.h.
|
constexpr |
Definition at line 11 of file math_constants.h.
|
constexpr |
Definition at line 12 of file simple_token.cc.
|
constexpr |
Definition at line 14 of file string_utils.h.