chromium/base/i18n/streaming_utf8_validator.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

// This implementation doesn't use ICU. The ICU macros are oriented towards
// character-at-a-time processing, whereas byte-at-a-time processing is easier
// with streaming input.

#include "base/i18n/streaming_utf8_validator.h"

#include "base/check_op.h"
#include "base/i18n/utf8_validator_tables.h"

namespace base {
namespace {

uint8_t StateTableLookup(uint8_t offset) {}

}  // namespace

StreamingUtf8Validator::State StreamingUtf8Validator::AddBytes(
    base::span<const uint8_t> data) {}

void StreamingUtf8Validator::Reset() {}

bool StreamingUtf8Validator::Validate(const std::string& string) {}

}  // namespace base