Namespaces | |
| namespace | internal |
| namespace | testing |
| namespace | win |
Classes | |
| class | AutoReset |
| struct | DefaultSingletonTraits |
| class | LogMessage |
| class | LogMessageVoidify |
| class | NoDestructor |
| 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) |
| 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.
Referenced by ui::TestAXNodeWrapper::GetLocalizedRoleDescriptionForUnlabeledImage(), ui::TestAXNodeWrapper::GetLocalizedStringForImageAnnotationStatus(), ui::TestAXNodeWrapper::GetLocalizedStringForLandmarkType(), ui::TestAXNodeWrapper::GetLocalizedStringForRoleDescription(), ui::TestAXNodeWrapper::GetStyleNameAttributeAsLocalizedString(), ui::AXRange< AXPositionType >::GetText(), NumberToString16(), NumberToString16(), NumberToString16(), NumberToString16(), TEST(), and ui::TEST_F().
| Dst base::ClampCeil | ( | Src | value | ) |
Definition at line 373 of file safe_conversions.h.
References value.
Referenced by gfx::ScaleToEnclosingRectSafe(), gfx::ToCeiledPoint(), gfx::ToCeiledSize(), gfx::ToCeiledVector2d(), gfx::ToEnclosedRect(), and gfx::ToEnclosingRect().
| Dst base::ClampFloor | ( | Src | value | ) |
Definition at line 366 of file safe_conversions.h.
References value.
Referenced by gfx::ScaleToEnclosingRectSafe(), gfx::ToEnclosedRect(), gfx::ToEnclosingRect(), gfx::ToFlooredPoint(), gfx::ToFlooredRectDeprecated(), gfx::ToFlooredSize(), and gfx::ToFlooredVector2d().
| Dst base::ClampRound | ( | Src | value | ) |
Definition at line 380 of file safe_conversions.h.
References value.
Referenced by gfx::IsNearestRectWithinDistance(), gfx::ToNearestRect(), gfx::ToRoundedPoint(), gfx::ToRoundedRect(), gfx::ToRoundedSize(), and gfx::ToRoundedVector2d().
|
constexpr |
Definition at line 15 of file ranges.h.
References value.
Referenced by ui::TestAXNodeWrapper::AccessibilityPerformAction().
| bool base::Contains | ( | const Container & | container, |
| const Value & | value | ||
| ) |
Definition at line 23 of file container_utils.h.
References value.
Referenced by ui::AXPosition< AXPositionType, AXNodeType >::AtEndOfWord(), ui::AXPosition< AXPositionType, AXNodeType >::AtStartOfWord(), ui::AXTreeManagerMap::GetManager(), ui::AXTreeUpdateState::InvalidatesUnignoredCachedValues(), ui::AXTreeUpdateState::IsCreatedNode(), ui::AXTreeUpdateState::IsRemovedNode(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| bool base::Contains | ( | const std::vector< T > & | container, |
| const T & | value | ||
| ) |
Definition at line 28 of file container_utils.h.
References value.
| bool base::ContainsOnlyChars | ( | std::u16string | str, |
| char16_t | ch | ||
| ) |
Definition at line 183 of file string_utils.cc.
Referenced by ui::AXNodePosition::IsInWhiteSpace().
| const std::string & base::EmptyString | ( | ) |
Definition at line 157 of file string_utils.cc.
Referenced by ui::AXNode::GetInheritedStringAttribute(), ui::AXPlatformNodeBase::GetInheritedStringAttribute(), ui::AXNodeData::GetStringAttribute(), and ui::AXPlatformNodeBase::GetStringAttribute().
| size_t base::EraseIf | ( | std::vector< T, Allocator > & | container, |
| Predicate | pred | ||
| ) |
Definition at line 15 of file container_utils.h.
Referenced by ui::AXNodeData::RemoveBoolAttribute(), ui::AXNodeData::RemoveFloatAttribute(), ui::AXNodeData::RemoveIntAttribute(), ui::AXNodeData::RemoveIntListAttribute(), ui::AXNodeData::RemoveStringAttribute(), and ui::AXNodeData::RemoveStringListAttribute().
|
constexpr |
| std::string base::JoinString | ( | std::vector< std::string > | tokens, |
| std::string | delimiter | ||
| ) |
Definition at line 107 of file string_utils.cc.
References i.
Referenced by ui::AXMode::ToString(), and ui::AXNodeData::ToString().
| std::u16string base::JoinString | ( | std::vector< std::u16string > | tokens, |
| std::u16string | delimiter | ||
| ) |
Definition at line 119 of file string_utils.cc.
References i.
| void base::KillProcess | ( | ) |
Definition at line 61 of file logging.cc.
Referenced by base::testing::TEST(), base::testing::UnreachableScopeWithoutReturnDoesNotMakeCompilerMad(), and base::LogMessage::~LogMessage().
| bool base::LowerCaseEqualsASCII | ( | std::string | a, |
| std::string | b | ||
| ) |
Definition at line 178 of file string_utils.cc.
References ToLowerASCII().
Referenced by ui::AXNodeData::GetHtmlAttribute().
| std::string base::NumberToString | ( | double | number | ) |
Definition at line 103 of file string_utils.cc.
References NumberToString().
| std::string base::NumberToString | ( | float | number | ) |
Definition at line 99 of file string_utils.cc.
References NumberToString().
| std::string base::NumberToString | ( | int32_t | number | ) |
Definition at line 91 of file string_utils.cc.
References NumberToString().
Referenced by ui::AXPlatformNodeBase::AddAttributeToList(), ui::AXPlatformNodeBase::ComputeAttributes(), ui::AXPlatformNodeBase::ComputeTextAttributes(), NumberToString(), NumberToString(), NumberToString(), NumberToString(), NumberToString16(), NumberToString16(), NumberToString16(), NumberToString16(), ui::TEST(), TEST(), ui::AXNodeData::ToString(), ui::AXPosition< AXPositionType, AXNodeType >::ToString(), ui::AXTableInfo::ToString(), ui::AXTreeData::ToString(), and ui::AXTreeUpdateBase< AXNodeData, AXTreeData >::ToString().
| std::string base::NumberToString | ( | unsigned int | number | ) |
Definition at line 95 of file string_utils.cc.
References NumberToString().
| std::u16string base::NumberToString16 | ( | double | number | ) |
Definition at line 87 of file string_utils.cc.
References ASCIIToUTF16(), and NumberToString().
| std::u16string base::NumberToString16 | ( | float | number | ) |
Definition at line 75 of file string_utils.cc.
References ASCIIToUTF16(), and NumberToString().
Referenced by ui::AXPlatformNodeBase::GetRangeValueText(), TEST(), and ui::TEST_F().
| std::u16string base::NumberToString16 | ( | int32_t | number | ) |
Definition at line 79 of file string_utils.cc.
References ASCIIToUTF16(), and NumberToString().
| std::u16string base::NumberToString16 | ( | unsigned int | number | ) |
Definition at line 83 of file string_utils.cc.
References ASCIIToUTF16(), and NumberToString().
| std::ostream & base::operator<< | ( | std::ostream & | out, |
| const SimpleToken & | token | ||
| ) |
| void base::ReplaceChars | ( | std::string | in, |
| std::string | from, | ||
| std::string | to, | ||
| std::string * | out | ||
| ) |
Definition at line 133 of file string_utils.cc.
Referenced by ui::AXPlatformNodeBase::SanitizeStringAttribute().
| void base::ReplaceChars | ( | std::u16string | in, |
| std::u16string | from, | ||
| std::u16string | to, | ||
| std::u16string * | out | ||
| ) |
Definition at line 145 of file string_utils.cc.
| size_t base::SimpleTokenHash | ( | const SimpleToken & | SimpleToken | ) |
Definition at line 43 of file simple_token.cc.
References base::SimpleToken::ToString().
Referenced by ui::AXTreeIDHash::operator()().
| std::string base::SimpleTokenToValue | ( | const SimpleToken & | token | ) |
Definition at line 39 of file simple_token.cc.
References base::SimpleToken::ToString().
Referenced by ui::AXTreeID::ToString().
| std::string base::StringPrintf | ( | const std::string & | format, |
| Args... | args | ||
| ) |
Definition at line 18 of file string_utils.h.
Referenced by TEST(), TEST(), TEST(), ui::AXNodeData::ToString(), gfx::Insets::ToString(), gfx::InsetsF::ToString(), gfx::Point::ToString(), gfx::PointF::ToString(), gfx::Rect::ToString(), gfx::RectF::ToString(), gfx::Size::ToString(), gfx::SizeF::ToString(), gfx::Vector2d::ToString(), gfx::Vector2dF::ToString(), gfx::Range::ToString(), and gfx::Transform::ToString().
| base::TEST | ( | StringUtilsTest | , |
| canASCIIToUTF16 | |||
| ) |
Definition at line 30 of file string_utils_unittest.cc.
References ASCIIToUTF16().
| base::TEST | ( | StringUtilsTest | , |
| canNumberToString16 | |||
| ) |
| base::TEST | ( | StringUtilsTest | , |
| canUTF16ToUTF8 | |||
| ) |
Definition at line 40 of file string_utils_unittest.cc.
References UTF16ToUTF8().
| base::TEST | ( | StringUtilsTest | , |
| canUTF8ToUTF16 | |||
| ) |
Definition at line 35 of file string_utils_unittest.cc.
References UTF8ToUTF16().
| base::TEST | ( | StringUtilsTest | , |
| numberToStringSimplifiesOutput | |||
| ) |
Definition at line 49 of file string_utils_unittest.cc.
References NumberToString().
| base::TEST | ( | StringUtilsTest | , |
| StringPrintfEmpty | |||
| ) |
Definition at line 16 of file string_utils_unittest.cc.
References StringPrintf().
| base::TEST | ( | StringUtilsTest | , |
| StringPrintfErrno | |||
| ) |
Definition at line 24 of file string_utils_unittest.cc.
References StringPrintf().
| base::TEST | ( | StringUtilsTest | , |
| StringPrintfMisc | |||
| ) |
Definition at line 20 of file string_utils_unittest.cc.
References StringPrintf().
| std::string base::ToLowerASCII | ( | std::string | str | ) |
Definition at line 170 of file string_utils.cc.
References i.
Referenced by LowerCaseEqualsASCII().
| std::string base::ToUpperASCII | ( | std::string | str | ) |
| std::string base::UTF16ToUTF8 | ( | std::u16string | src | ) |
Definition at line 71 of file string_utils.cc.
References fml::Utf16ToUtf8().
Referenced by ui::AXPlatformNodeMac::AnnounceText(), ui::AXPlatformNodeBase::ComputeAttributes(), ui::AXNodeData::SetDescription(), ui::AXNodeData::SetName(), ui::AXNodeData::SetTooltip(), ui::AXNodeData::SetValue(), TEST(), ui::TEST_F(), and ui::AXPosition< AXPositionType, AXNodeType >::ToString().
| std::u16string base::UTF8ToUTF16 | ( | std::string | src | ) |
Definition at line 67 of file string_utils.cc.
References fml::Utf8ToUtf16().
Referenced by ui::AXPlatformNodeDelegateBase::GetAuthorUniqueId(), ui::AXNodeData::GetHtmlAttribute(), ui::AXNode::GetInheritedString16Attribute(), ui::AXPlatformNodeBase::GetInheritedString16Attribute(), ui::AXPlatformNodeBase::GetInheritedString16Attribute(), ui::AXPlatformNodeBase::GetNameAsString16(), ui::AXNodeData::GetString16Attribute(), ui::AXNodeData::GetString16Attribute(), ui::AXPlatformNodeBase::GetValue(), ui::TEST(), ui::TEST(), ui::TEST(), and TEST().
| 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.
Referenced by base::SimpleToken::Create().
|
constexpr |
Definition at line 14 of file string_utils.h.
Referenced by ui::AXNodePosition::IsInWhiteSpace().