blob: 7edfc3a34f1f021cb2fc0796cf163429448e2e02 [file] [log] [blame]
Lei Zhangf0ab3ae2012-08-03 18:02:201// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef STRING_HELPERS_H_
6#define STRING_HELPERS_H_
7
8#include <string>
9
10namespace mtpd {
11
12// Returns |str| if |str| is a valid UTF8 string (determined by
13// base::IsStringUTF8) or an empty string otherwise.
14std::string EnsureUTF8String(const std::string& str);
15
16} // namespace
17
18#endif // STRING_HELPERS_H_