Lei Zhang | f0ab3ae | 2012-08-03 18:02:20 | [diff] [blame] | 1 | // 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 | |
| 10 | namespace mtpd { |
| 11 | |
| 12 | // Returns |str| if |str| is a valid UTF8 string (determined by |
| 13 | // base::IsStringUTF8) or an empty string otherwise. |
| 14 | std::string EnsureUTF8String(const std::string& str); |
| 15 | |
| 16 | } // namespace |
| 17 | |
| 18 | #endif // STRING_HELPERS_H_ |