Lines Matching refs:coverage
47 static bool addRange(std::vector<uint32_t>& coverage, uint32_t start, uint32_t end) { in addRange() argument
48 if (coverage.empty() || coverage.back() < start) { in addRange()
49 coverage.push_back(start); in addRange()
50 coverage.push_back(end); in addRange()
52 } else if (coverage.back() == start) { in addRange()
53 coverage.back() = end; in addRange()
65 static bool addRangeCmap4(std::vector<uint32_t>& coverage, uint32_t start, uint32_t end) { in addRangeCmap4() argument
66 if (!coverage.empty() && coverage.back() > end) { in addRangeCmap4()
70 if (coverage.empty() || coverage.back() < start) { in addRangeCmap4()
71 coverage.push_back(start); in addRangeCmap4()
72 coverage.push_back(end); in addRangeCmap4()
75 coverage.back() = end; in addRangeCmap4()
152 static bool getCoverageFormat4(std::vector<uint32_t>& coverage, const uint8_t* data, size_t size) { in getCoverageFormat4() argument
176 if (!addRangeCmap4(coverage, start, end + 1)) { in getCoverageFormat4()
182 if (!addRangeCmap4(coverage, j, j + 1)) { in getCoverageFormat4()
198 if (!addRangeCmap4(coverage, j, j + 1)) { in getCoverageFormat4()
209 static bool getCoverageFormat12(std::vector<uint32_t>& coverage, const uint8_t* data, size_t size) { in getCoverageFormat12() argument
244 return addRange(coverage, start, MAX_UNICODE_CODE_POINT + 1); in getCoverageFormat12()
246 if (!addRange(coverage, start, end + 1)) { // file is inclusive, vector is exclusive in getCoverageFormat12()
515 SparseBitSet coverage; in getCoverage() local
529 coverage = SparseBitSet(&coverageVec.front(), coverageVec.size() >> 1); in getCoverage()
536 getCoverageFormat14(out, tableData, tableSize, coverage); in getCoverage()
538 return coverage; in getCoverage()