Home
last modified time | relevance | path

Searched refs:TrimString (Results 1 – 15 of 15) sorted by relevance

/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dstring_utils_unittest.cpp96 TEST(StringUtilsTest, TrimString) in TEST() argument
99 EXPECT_EQ("a", TrimString("a", kWhitespaceASCII)); in TEST()
100 EXPECT_EQ("a", TrimString(" a", kWhitespaceASCII)); in TEST()
101 EXPECT_EQ("a", TrimString("a ", kWhitespaceASCII)); in TEST()
102 EXPECT_EQ("a", TrimString(" a ", kWhitespaceASCII)); in TEST()
105 EXPECT_EQ("", TrimString("", kWhitespaceASCII)); in TEST()
106 EXPECT_EQ("", TrimString(" \n\r\t", kWhitespaceASCII)); in TEST()
107 EXPECT_EQ(" foo ", TrimString(" foo ", "")); in TEST()
110 EXPECT_EQ("foo bar", TrimString(" foo bar ", kWhitespaceASCII)); in TEST()
113 EXPECT_EQ(" ", TrimString("foo bar", "abcdefghijklmnopqrstuvwxyz")); in TEST()
Dstring_utils.cpp55 piece = TrimString(piece, kWhitespaceASCII); in SplitString()
87 std::string TrimString(const std::string &input, const std::string &trimChars) in TrimString() function
Dstring_utils.h42 std::string TrimString(const std::string &input, const std::string &trimChars);
/third_party/skia/third_party/externals/angle2/src/common/
Dstring_utils_unittest.cpp137 TEST(StringUtilsTest, TrimString) in TEST() argument
140 EXPECT_EQ("a", TrimString("a", kWhitespaceASCII)); in TEST()
141 EXPECT_EQ("a", TrimString(" a", kWhitespaceASCII)); in TEST()
142 EXPECT_EQ("a", TrimString("a ", kWhitespaceASCII)); in TEST()
143 EXPECT_EQ("a", TrimString(" a ", kWhitespaceASCII)); in TEST()
146 EXPECT_EQ("", TrimString("", kWhitespaceASCII)); in TEST()
147 EXPECT_EQ("", TrimString(" \n\r\t", kWhitespaceASCII)); in TEST()
148 EXPECT_EQ(" foo ", TrimString(" foo ", "")); in TEST()
151 EXPECT_EQ("foo bar", TrimString(" foo bar ", kWhitespaceASCII)); in TEST()
154 EXPECT_EQ(" ", TrimString("foo bar", "abcdefghijklmnopqrstuvwxyz")); in TEST()
Dstring_utils.cpp69 piece = TrimString(piece, kWhitespaceASCII); in SplitString()
101 std::string TrimString(const std::string &input, const std::string &trimChars) in TrimString() function
Dstring_utils.h42 std::string TrimString(const std::string &input, const std::string &trimChars);
/third_party/gn/src/base/strings/
Dstring_util.h160 bool TrimString(const std::u16string& input,
163 bool TrimString(const std::string& input,
169 std::u16string_view TrimString(std::u16string_view input,
172 std::string_view TrimString(std::string_view input,
Dstring_split.cc87 piece = TrimString(piece, WhitespaceForType<char_type>(), TRIM_ALL); in SplitStringT()
141 term = TrimString(term, WhitespaceForType<char_type>(), TRIM_ALL); in SplitStringUsingSubstrT()
Dstring_util.cc249 bool TrimString(const std::u16string& input, in TrimString() function
255 bool TrimString(const std::string& input, in TrimString() function
277 std::u16string_view TrimString(std::u16string_view input, in TrimString() function
283 std::string_view TrimString(std::string_view input, in TrimString() function
/third_party/cef/libcef/common/
Dcrash_reporter_client.cc385 base::TrimString(str, base::kWhitespaceASCII, &str); in ReadCrashConfigFile()
408 base::TrimString(name_str, base::kWhitespaceASCII, &name_str); in ReadCrashConfigFile()
410 base::TrimString(val_str, base::kWhitespaceASCII, &val_str); in ReadCrashConfigFile()
/third_party/gn/src/gn/
Dninja_build_writer.cc588 base::TrimString(long_name, "/", &long_name);
597 base::TrimString(medium_name, "/", &medium_name);
Dcommand_format.cc685 TrimString(line, " ", base::TrimPositions::TRIM_TRAILING); in ExceedsMaximumWidth()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/deqp_support/
Dangle_deqp_gtest.cpp291 std::string dEQPName = TrimString(inString, kWhitespaceASCII); in initialize()
/third_party/skia/third_party/externals/angle2/src/tests/deqp_support/
Dangle_deqp_gtest.cpp331 std::string dEQPName = TrimString(inString, kWhitespaceASCII); in initialize()
/third_party/chromium/patch/
D0003-3.2-Beta3-1115.patch52310 + base::TrimString(cookie_value, " \t", base::TRIM_LEADING);