MCPcopy Create free account
hub / github.com/clementgallet/libTAS / BuildRanges

Method BuildRanges

src/external/imgui/imgui_draw.cpp:3230–3242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3228}
3229
3230void ImFontGlyphRangesBuilder::BuildRanges(ImVector<ImWchar>* out_ranges)
3231{
3232 const int max_codepoint = IM_UNICODE_CODEPOINT_MAX;
3233 for (int n = 0; n <= max_codepoint; n++)
3234 if (GetBit(n))
3235 {
3236 out_ranges->push_back((ImWchar)n);
3237 while (n < max_codepoint && GetBit(n + 1))
3238 n++;
3239 out_ranges->push_back((ImWchar)n);
3240 }
3241 out_ranges->push_back(0);
3242}
3243
3244//-----------------------------------------------------------------------------
3245// [SECTION] ImFont

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected