OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Unquote
(Results
1 - 3
of
3
) sorted by null
/external/chromium/net/http/
http_util_unittest.cc
146
TEST(HttpUtilTest,
Unquote
) {
148
EXPECT_STREQ("xyz\"abc", HttpUtil::
Unquote
("\"xyz\\\"abc\"").c_str());
151
EXPECT_STREQ("xyz\\abc", HttpUtil::
Unquote
("\"xyz\\\\abc\"").c_str());
153
HttpUtil::
Unquote
("\"xyz\\\\\\\\\\\\abc\"").c_str());
156
EXPECT_STREQ("xyzXabc", HttpUtil::
Unquote
("\"xyz\\Xabc\"").c_str());
159
EXPECT_STREQ("X", HttpUtil::
Unquote
("X").c_str());
160
EXPECT_STREQ("\"", HttpUtil::
Unquote
("\"").c_str());
164
EXPECT_STREQ("x\"", HttpUtil::
Unquote
("'x\"'").c_str());
http_util.h
103
//
Unquote
() strips the surrounding quotemarks off a string, and unescapes
106
static std::string
Unquote
(std::string::const_iterator begin,
110
static std::string
Unquote
(const std::string& str);
112
// The reverse of
Unquote
() -- escapes and surrounds with "
http_util.cc
376
std::string HttpUtil::
Unquote
(std::string::const_iterator begin,
382
// Nothing to
unquote
.
410
std::string HttpUtil::
Unquote
(const std::string& str) {
411
return
Unquote
(str.begin(), str.end());
775
unquoted_value_ = HttpUtil::
Unquote
(value_begin_, value_end_);
Completed in 199 milliseconds