MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / Build

Method Build

extern/imgui/imgui.cpp:2476–2495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2474}
2475
2476void ImGuiTextFilter::Build()
2477{
2478 Filters.resize(0);
2479 ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf));
2480 input_range.split(',', &Filters);
2481
2482 CountGrep = 0;
2483 for (int i = 0; i != Filters.Size; i++)
2484 {
2485 ImGuiTextRange& f = Filters[i];
2486 while (f.b < f.e && ImCharIsBlankA(f.b[0]))
2487 f.b++;
2488 while (f.e > f.b && ImCharIsBlankA(f.e[-1]))
2489 f.e--;
2490 if (f.empty())
2491 continue;
2492 if (Filters[i].b[0] != '-')
2493 CountGrep += 1;
2494 }
2495}
2496
2497bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const
2498{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected