MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / split

Method split

KBotExt/imgui/imgui.cpp:2520–2536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2518}
2519
2520void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector<ImGuiTextRange>* out) const
2521{
2522 out->resize(0);
2523 const char* wb = b;
2524 const char* we = wb;
2525 while (we < e)
2526 {
2527 if (*we == separator)
2528 {
2529 out->push_back(ImGuiTextRange(wb, we));
2530 wb = we + 1;
2531 }
2532 we++;
2533 }
2534 if (wb != we)
2535 out->push_back(ImGuiTextRange(wb, we));
2536}
2537
2538void ImGuiTextFilter::Build()
2539{

Callers 1

BuildMethod · 0.80

Calls 1

ImGuiTextRangeClass · 0.85

Tested by

no test coverage detected