MCPcopy Create free account
hub / github.com/Raais/ImStudio / BuildRanges

Method BuildRanges

src/third-party/imgui/imgui_draw.cpp:3087–3099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3085}
3086
3087void ImFontGlyphRangesBuilder::BuildRanges(ImVector<ImWchar>* out_ranges)
3088{
3089 const int max_codepoint = IM_UNICODE_CODEPOINT_MAX;
3090 for (int n = 0; n <= max_codepoint; n++)
3091 if (GetBit(n))
3092 {
3093 out_ranges->push_back((ImWchar)n);
3094 while (n < max_codepoint && GetBit(n + 1))
3095 n++;
3096 out_ranges->push_back((ImWchar)n);
3097 }
3098 out_ranges->push_back(0);
3099}
3100
3101//-----------------------------------------------------------------------------
3102// [SECTION] ImFont

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected