MCPcopy Create free account
hub / github.com/Snapchat/Valdi / countRanges

Function countRanges

snap_drawing/src/snap_drawing/cpp/Text/Harfbuzz.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static size_t countRanges(hb_set_t* set) {
65 hb_codepoint_t first = 0;
66 hb_codepoint_t last = HB_SET_VALUE_INVALID;
67 size_t rangesCount = 0;
68
69 while (hb_set_next_range(set, &first, &last) != 0) {
70 rangesCount++;
71 }
72
73 return rangesCount;
74}
75
76Ref<Valdi::CharacterSet> HBFace::getCharacters() {
77 auto* set = hb_set_create();

Callers 1

getCharactersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected