#include "discovery/dnssd/public/dns_sd_instance.h"
#include <algorithm>
#include <cctype>
#include <utility>
#include <vector>
#include "util/osp_logging.h"
namespace openscreen::discovery {
namespace {
constexpr size_t kMaxLabelLength = …;
bool IsValidUtf8(const std::string& string) { … }
bool HasControlCharacters(const std::string& string) { … }
}
DnsSdInstance::DnsSdInstance(std::string instance_id,
std::string service_id,
std::string domain_id,
DnsSdTxtRecord txt,
uint16_t port,
std::vector<Subtype> subtypes)
: … { … }
DnsSdInstance::DnsSdInstance(const DnsSdInstance& other) = default;
DnsSdInstance::DnsSdInstance(DnsSdInstance&& other) noexcept = default;
DnsSdInstance::~DnsSdInstance() = default;
DnsSdInstance& DnsSdInstance::operator=(const DnsSdInstance& rhs) = default;
DnsSdInstance& DnsSdInstance::operator=(DnsSdInstance&& rhs) noexcept = default;
bool IsInstanceValid(const std::string& instance) { … }
bool IsServiceValid(const std::string& service) { … }
bool IsDomainValid(const std::string& domain) { … }
bool IsSubtypeValid(const DnsSdInstance::Subtype& subtype) { … }
bool operator<(const DnsSdInstance& lhs, const DnsSdInstance& rhs) { … }
}