MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / Build

Method Build

engine/3rdparty/imgui/imgui.cpp:2301–2320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2299}
2300
2301void ImGuiTextFilter::Build()
2302{
2303 Filters.resize(0);
2304 ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf));
2305 input_range.split(',', &Filters);
2306
2307 CountGrep = 0;
2308 for (int i = 0; i != Filters.Size; i++)
2309 {
2310 ImGuiTextRange& f = Filters[i];
2311 while (f.b < f.e && ImCharIsBlankA(f.b[0]))
2312 f.b++;
2313 while (f.e > f.b && ImCharIsBlankA(f.e[-1]))
2314 f.e--;
2315 if (f.empty())
2316 continue;
2317 if (Filters[i].b[0] != '-')
2318 CountGrep += 1;
2319 }
2320}
2321
2322bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const
2323{

Callers 2

BuildFontAtlasFunction · 0.45
initializeMethod · 0.45

Calls 4

ImCharIsBlankAFunction · 0.85
splitMethod · 0.80
resizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected