Home | History | Annotate | Download | only in brillo

Lines Matching refs:mime_string

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, &parameters))
140 std::string mime::RemoveParameters(const std::string& mime_string) {
141 return brillo::string_utils::SplitAtFirst(mime_string, ";").first;
144 std::string mime::AppendParameter(const std::string& mime_string,
147 std::string mime(mime_string);
153 std::string mime::GetParameterValue(const std::string& mime_string,
155 mime::Parameters params = mime::GetParameters(mime_string);