MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / split

Method split

imgui_tiny_app/imgui/imgui.cpp:3108–3124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3106}
3107
3108void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector<ImGuiTextRange>* out) const
3109{
3110 out->resize(0);
3111 const char* wb = b;
3112 const char* we = wb;
3113 while (we < e)
3114 {
3115 if (*we == separator)
3116 {
3117 out->push_back(ImGuiTextRange(wb, we));
3118 wb = we + 1;
3119 }
3120 we++;
3121 }
3122 if (wb != we)
3123 out->push_back(ImGuiTextRange(wb, we));
3124}
3125
3126void ImGuiTextFilter::Build()
3127{

Callers 1

BuildMethod · 0.80

Calls 3

ImGuiTextRangeClass · 0.85
resizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected