Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
string_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_STRING_CONVERSION_H_
6#define FLUTTER_FML_STRING_CONVERSION_H_
7
8#include <string>
9#include <vector>
10
11namespace fml {
12
13// Returns a string joined by the given delimiter.
14std::string Join(const std::vector<std::string>& vec, const char* delimiter);
15
16// Returns a UTF-8 encoded equivalent of a UTF-16 encoded input string.
17std::string Utf16ToUtf8(const std::u16string_view string);
18
19// Returns a UTF-16 encoded equivalent of a UTF-8 encoded input string.
20std::u16string Utf8ToUtf16(const std::string_view string);
21
22} // namespace fml
23
24#endif // FLUTTER_FML_STRING_CONVERSION_H_
std::string Utf16ToUtf8(const std::u16string_view string)
std::u16string Utf8ToUtf16(const std::string_view string)
std::string Join(const std::vector< std::string > &vec, const char *delim)