MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / BuildRanges

Method BuildRanges

include/imgui/imgui_draw.cpp:5154–5166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5152}
5153
5154void ImFontGlyphRangesBuilder::BuildRanges(ImVector<ImWchar>* out_ranges)
5155{
5156 const int max_codepoint = IM_UNICODE_CODEPOINT_MAX;
5157 for (int n = 0; n <= max_codepoint; n++)
5158 if (GetBit(n))
5159 {
5160 out_ranges->push_back((ImWchar)n);
5161 while (n < max_codepoint && GetBit(n + 1))
5162 n++;
5163 out_ranges->push_back((ImWchar)n);
5164 }
5165 out_ranges->push_back(0);
5166}
5167
5168//-----------------------------------------------------------------------------
5169// [SECTION] ImFontBaked, ImFont

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected