MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / BuildRanges

Method BuildRanges

imgui_tiny_app/imgui/imgui_draw.cpp:5125–5137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5123}
5124
5125void ImFontGlyphRangesBuilder::BuildRanges(ImVector<ImWchar>* out_ranges)
5126{
5127 const int max_codepoint = IM_UNICODE_CODEPOINT_MAX;
5128 for (int n = 0; n <= max_codepoint; n++)
5129 if (GetBit(n))
5130 {
5131 out_ranges->push_back((ImWchar)n);
5132 while (n < max_codepoint && GetBit(n + 1))
5133 n++;
5134 out_ranges->push_back((ImWchar)n);
5135 }
5136 out_ranges->push_back(0);
5137}
5138
5139//-----------------------------------------------------------------------------
5140// [SECTION] ImFontBaked, ImFont

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected