42 #ifndef _DWMDNSLABELPOSITIONS_HH_ 43 #define _DWMDNSLABELPOSITIONS_HH_ 68 void Add(
const std::string & s, uint16_t offset);
73 void Add(
const std::vector<std::pair<std::string,uint16_t>> & labels,
74 const std::string & domain);
79 void Add(
const std::vector<std::pair<std::string,uint16_t>> & labels);
84 std::pair<std::string,uint16_t>
85 FindLongestPrev(
const std::string & s)
const;
93 std::map<std::string,uint16_t> _positions;
96 GetSubstrings(
const std::string & s, std::vector<std::string> & vs);
103 #endif // _DWMDNSLABELPOSITIONS_HH_ LabelPositions()
Constructor.
Definition: DwmDnsEtcHosts.hh:60
A helper class used when performing label sequence compression.
Definition: DwmDnsLabelPositions.hh:57