chromium/third_party/ots/src/src/name.cc

// Copyright (c) 2011-2017 The OTS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "name.h"

#include <algorithm>
#include <cstring>
#include <cctype>

// name - Naming Table
// http://www.microsoft.com/typography/otspec/name.htm

namespace {

// We disallow characters outside the URI spec "unreserved characters"
// set; any chars outside this set will be replaced by underscore.
bool AllowedInPsName(char c) {}

bool SanitizePsNameAscii(std::string& name) {}

bool SanitizePsNameUtf16Be(std::string& name) {}

void AssignToUtf16BeFromAscii(std::string* target,
                              const std::string& source) {}

}  // namespace


namespace ots {

bool OpenTypeNAME::Parse(const uint8_t* data, size_t length) {}

bool OpenTypeNAME::Serialize(OTSStream* out) {}

bool OpenTypeNAME::IsValidNameId(uint16_t nameID, bool addIfMissing) {}

}  // namespace