OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mime_string
(Results
1 - 3
of
3
) sorted by null
/external/libbrillo/brillo/
mime_utils_unittest.cc
12
std::string
mime_string
= mime::Combine(mime::types::kText, "xml");
local
13
EXPECT_EQ(mime::text::kXml,
mime_string
);
53
std::string
mime_string
= mime::AppendParameter(
local
55
EXPECT_EQ("text/xml; charset=utf-8",
mime_string
);
56
mime_string
= mime::AppendParameter(
mime_string
, "foo", "bar");
57
EXPECT_EQ("text/xml; charset=utf-8; foo=bar",
mime_string
);
59
mime::GetParameterValue(
mime_string
, mime::parameters::kCharset));
60
EXPECT_EQ("bar", mime::GetParameterValue(
mime_string
, "foo"));
61
EXPECT_EQ("", mime::GetParameterValue(
mime_string
, "baz"))
[
all
...]
mime_utils.h
83
BRILLO_EXPORT bool Split(const std::string&
mime_string
,
89
BRILLO_EXPORT bool Split(const std::string&
mime_string
,
96
BRILLO_EXPORT std::string GetType(const std::string&
mime_string
);
100
BRILLO_EXPORT std::string GetSubtype(const std::string&
mime_string
);
104
BRILLO_EXPORT Parameters GetParameters(const std::string&
mime_string
);
109
const std::string&
mime_string
) WARN_UNUSED_RESULT;
114
const std::string&
mime_string
,
120
BRILLO_EXPORT std::string GetParameterValue(const std::string&
mime_string
,
mime_utils.cc
68
bool mime::Split(const std::string&
mime_string
,
73
brillo::string_utils::Split(
mime_string
, ";");
92
bool mime::Split(const std::string&
mime_string
,
95
std::string mime = mime::RemoveParameters(
mime_string
);
119
std::string mime::GetType(const std::string&
mime_string
) {
120
std::string mime = mime::RemoveParameters(
mime_string
);
124
std::string mime::GetSubtype(const std::string&
mime_string
) {
125
std::string mime = mime::RemoveParameters(
mime_string
);
129
mime::Parameters mime::GetParameters(const std::string&
mime_string
) {
134
if (mime::Split(
mime_string
, &type, &subtype, ¶meters)
[
all
...]
Completed in 566 milliseconds