#include "name.h"
#include <algorithm>
#include <cstring>
#include <cctype>
namespace {
bool AllowedInPsName(char c) { … }
bool SanitizePsNameAscii(std::string& name) { … }
bool SanitizePsNameUtf16Be(std::string& name) { … }
void AssignToUtf16BeFromAscii(std::string* target,
const std::string& source) { … }
}
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) { … }
}