| 3228 | } |
| 3229 | |
| 3230 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected