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

Method split

extern/imgui/imgui.cpp:2458–2474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2456}
2457
2458void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector<ImGuiTextRange>* out) const
2459{
2460 out->resize(0);
2461 const char* wb = b;
2462 const char* we = wb;
2463 while (we < e)
2464 {
2465 if (*we == separator)
2466 {
2467 out->push_back(ImGuiTextRange(wb, we));
2468 wb = we + 1;
2469 }
2470 we++;
2471 }
2472 if (wb != we)
2473 out->push_back(ImGuiTextRange(wb, we));
2474}
2475
2476void ImGuiTextFilter::Build()
2477{

Callers 9

build_extensionMethod · 0.80
setup.pyFile · 0.80
runFunction · 0.80
__init__Method · 0.80
cxx_stdMethod · 0.80
intree_extensionsFunction · 0.80
_version.pyFile · 0.80
BuildMethod · 0.80

Calls 3

ImGuiTextRangeClass · 0.85
resizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected