Flutter Engine
The Flutter Engine
wstring_conversion.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter 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 FLUTTER_FML_PLATFORM_WIN_WSTRING_CONVERSION_H_
6#define FLUTTER_FML_PLATFORM_WIN_WSTRING_CONVERSION_H_
7
8#include <string>
9
10namespace fml {
11
12// Returns a UTF-8 encoded equivalent of a UTF-16 encoded input wide string.
13std::string WideStringToUtf8(const std::wstring_view str);
14
15// Returns a UTF-16 encoded wide string equivalent of a UTF-8 encoded input
16// string.
17std::wstring Utf8ToWideString(const std::string_view str);
18
19// Returns a UTF-16 encoded equivalent of a UTF-16 encoded wide string.
20std::u16string WideStringToUtf16(const std::wstring_view str);
21
22// Returns a UTF-16 encoded wide string equivalent of a UTF-16 string.
23std::wstring Utf16ToWideString(const std::u16string_view str);
24
25} // namespace fml
26
27#endif // FLUTTER_FML_PLATFORM_WIN_WSTRING_CONVERSION_H_
Definition: ascii_trie.cc:9
std::wstring Utf8ToWideString(const std::string_view str)
std::string WideStringToUtf8(const std::wstring_view str)
std::u16string WideStringToUtf16(const std::wstring_view str)
std::wstring Utf16ToWideString(const std::u16string_view str)