Lines Matching defs:text_end
542 - 2014/09/25 (1.13) - removed 'text_end' parameter from IO.SetClipboardTextFn (the string is now always zero-terminated for simplicity)
2078 bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const
2094 if (ImStristr(text, text_end, f.begin()+1, f.end()) != NULL)
2100 if (ImStristr(text, text_end, f.begin(), f.end()) != NULL)
2272 const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end)
2275 if (!text_end)
2276 text_end = (const char*)-1;
2278 while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#'))
2285 void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash)
2294 text_display_end = FindRenderedTextEnd(text, text_end);
2298 if (!text_end)
2299 text_end = text + strlen(text); // FIXME-OPT
2300 text_display_end = text_end;
2311 void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width)
2316 if (!text_end)
2317 text_end = text + strlen(text); // FIXME-OPT
2319 if (text != text_end)
2321 window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width);
2323 LogRenderedText(&pos, text, text_end);
2357 void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect)
2360 const char* text_display_end = FindRenderedTextEnd(text, text_end);
3898 ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width)
3904 text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string
3906 text_display_end = text_end;
8794 void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end)
8799 if (!text_end)
8800 text_end = FindRenderedTextEnd(text, text_end);
8814 const char* line_end = ImStreolRange(line_start, text_end);
8816 const bool is_last_line = (line_end == text_end);
9238 const char* text_end = text + strlen(text);
9239 g.PrivateClipboard.resize((int)(text_end - text) + 1);
9240 memcpy(&g.PrivateClipboard[0], text, (size_t)(text_end - text));
9241 g.PrivateClipboard[(int)(text_end - text)] = 0;