chromium/third_party/perfetto/src/trace_processor/importers/proto/string_encoding_utils.cc


/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "src/trace_processor/importers/proto/string_encoding_utils.h"

#include <cinttypes>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>

#include "perfetto/base/logging.h"

namespace perfetto {
namespace trace_processor {
namespace {

CodePoint;

struct Utf8 {};

enum class Endianess {};

template <Endianess endianess>
class Utf16Iterator {};

Utf16LeIterator;
Utf16BeIterator;

}  // namespace

std::string ConvertLatin1ToUtf8(protozero::ConstBytes latin1) {}

std::string ConvertUtf16LeToUtf8(protozero::ConstBytes utf16_le) {}

std::string ConvertUtf16BeToUtf8(protozero::ConstBytes utf16_le) {}

}  // namespace trace_processor
}  // namespace perfetto