blob: e018332a7e2a7fe5b3c6badf5f19b66f0bbf1d51 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MTPD_STRING_HELPERS_H_
#define MTPD_STRING_HELPERS_H_
#include <string>
namespace mtpd {
// Returns |str| if |str| is a valid UTF8 string (determined by
// base::IsStringUTF8) or an empty string otherwise.
std::string EnsureUTF8String(const std::string& str);
} // namespace mtpd
#endif // MTPD_STRING_HELPERS_H_