#include "net/tools/tld_cleanup/tld_cleanup_util.h"
#include <sstream>
#include <string>
#include "base/containers/contains.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/ranges/algorithm.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "url/gurl.h"
#include "url/third_party/mozilla/url_parse.h"
namespace {
const char kBeginPrivateDomainsComment[] = …;
const char kEndPrivateDomainsComment[] = …;
const int kExceptionRule = …;
const int kWildcardRule = …;
const int kPrivateRule = …;
}
namespace net::tld_cleanup {
std::string RulesToGperf(const RuleMap& rules) { … }
NormalizeResult NormalizeRule(std::string& domain, Rule& rule) { … }
NormalizeResult NormalizeDataToRuleMap(const std::string& data,
RuleMap& rules) { … }
NormalizeResult NormalizeFile(const base::FilePath& in_filename,
const base::FilePath& out_filename) { … }
}