flutter_flutter/engine/src/flutter/fml/string_conversion.h
Kaushik Iska 53383fbdf7 [Impeller] Add WSI support for Vulkan on Linux and Windows (flutter/engine#36762)
There are additional instance extensions that need to be enabled for
this. Having any one of them is sufficient on each of these platforms.
There were also some `VALIDATION_LOG`s that would fail in the process of
picking a valid physical device, this would incorrectly exit early when
there were multiple devices and a latter device is valid.

Also improves logging for playground when glfw fails to get a surface.
2022-10-17 11:11:40 -05:00

25 lines
761 B
C++

// Copyright 2013 The Flutter 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 FLUTTER_FML_STRING_CONVERSION_H_
#define FLUTTER_FML_STRING_CONVERSION_H_
#include <string>
#include <vector>
namespace fml {
// Returns a string joined by the given delimiter.
std::string Join(const std::vector<std::string>& vec, const char* delimiter);
// Returns a UTF-8 encoded equivalent of a UTF-16 encoded input string.
std::string Utf16ToUtf8(const std::u16string_view string);
// Returns a UTF-16 encoded equivalent of a UTF-8 encoded input string.
std::u16string Utf8ToUtf16(const std::string_view string);
} // namespace fml
#endif // FLUTTER_FML_STRING_CONVERSION_H_