Lines Matching refs:mime_string
68 bool mime::Split(const std::string& mime_string, in Split() argument
73 brillo::string_utils::Split(mime_string, ";"); in Split()
92 bool mime::Split(const std::string& mime_string, in Split() argument
95 std::string mime = mime::RemoveParameters(mime_string); in Split()
119 std::string mime::GetType(const std::string& mime_string) { in GetType() argument
120 std::string mime = mime::RemoveParameters(mime_string); in GetType()
124 std::string mime::GetSubtype(const std::string& mime_string) { in GetSubtype() argument
125 std::string mime = mime::RemoveParameters(mime_string); in GetSubtype()
129 mime::Parameters mime::GetParameters(const std::string& mime_string) { in GetParameters() argument
134 if (mime::Split(mime_string, &type, &subtype, ¶meters)) in GetParameters()
140 std::string mime::RemoveParameters(const std::string& mime_string) { in RemoveParameters() argument
141 return brillo::string_utils::SplitAtFirst(mime_string, ";").first; in RemoveParameters()
144 std::string mime::AppendParameter(const std::string& mime_string, in AppendParameter() argument
147 std::string mime(mime_string); in AppendParameter()
153 std::string mime::GetParameterValue(const std::string& mime_string, in GetParameterValue() argument
155 mime::Parameters params = mime::GetParameters(mime_string); in GetParameterValue()