MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / split

Method split

plugins/Cardinal/src/DearImGui/imgui.cpp:2097–2113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2095}
2096
2097void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector<ImGuiTextRange>* out) const
2098{
2099 out->resize(0);
2100 const char* wb = b;
2101 const char* we = wb;
2102 while (we < e)
2103 {
2104 if (*we == separator)
2105 {
2106 out->push_back(ImGuiTextRange(wb, we));
2107 wb = we + 1;
2108 }
2109 we++;
2110 }
2111 if (wb != we)
2112 out->push_back(ImGuiTextRange(wb, we));
2113}
2114
2115void ImGuiTextFilter::Build()
2116{

Callers 1

BuildMethod · 0.80

Calls 3

ImGuiTextRangeClass · 0.85
push_backMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected