chromium/chrome/tools/convert_dict/aff_reader.cc

// Copyright 2010 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/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "chrome/tools/convert_dict/aff_reader.h"

#include <stddef.h>

#include <algorithm>

#include "base/files/file_util.h"
#include "base/i18n/icu_string_conversions.h"
#include "base/logging.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/tools/convert_dict/hunspell_reader.h"

namespace convert_dict {

namespace {

// Returns true if the given line begins with the given case-sensitive
// NULL-terminated ASCII string.
bool StringBeginsWith(const std::string& str, const char* with) {}

// Collapses runs of spaces to only one space.
void CollapseDuplicateSpaces(std::string* str) {}

}  // namespace

AffReader::AffReader(const base::FilePath& path)
    :{}

AffReader::~AffReader() {}

bool AffReader::Read() {}

bool AffReader::EncodingToUTF8(const std::string& encoded,
                               std::string* utf8) const {}

int AffReader::GetAFIndexForAFString(const std::string& af_string) {}

// We convert the data from our map to an indexed list, and also prefix each
// line with "AF" for the parser to read later.
std::vector<std::string> AffReader::GetAffixGroups() const {}

int AffReader::AddAffixGroup(std::string* rule) {}

void AffReader::AddAffix(std::string* rule) {}

void AffReader::AddReplacement(std::string* rule) {}

void AffReader::HandleRawCommand(const std::string& line) {}

void AffReader::HandleEncodedCommand(const std::string& line) {}

}  // namespace convert_dict