Lines Matching defs:text_end
1176 void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect)
1181 if (text_end == NULL)
1182 text_end = text_begin + strlen(text_begin);
1183 if (text_begin == text_end)
1202 font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL);
1205 void ImDrawList::AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end)
1207 AddText(NULL, 0.0f, pos, col, text_begin, text_end);
2355 void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end)
2357 while (text_end ? (text < text_end) : *text)
2360 int c_len = ImTextCharFromUtf8(&c, text, text_end);
2542 const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const
2569 while (s < text_end)
2576 next_s = s + ImTextCharFromUtf8(&c, s, text_end);
2641 ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const
2643 if (!text_end)
2644 text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this.
2656 while (s < text_end)
2663 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width);
2677 while (s < text_end)
2695 s += ImTextCharFromUtf8(&c, s, text_end);
2749 void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const
2751 if (!text_end)
2752 text_end = text_begin + strlen(text_begin); // ImGui functions generally already provides a valid text_end, so this is merely to handle direct calls.
2770 while (y + line_height < clip_rect.y && s < text_end)
2772 s = (const char*)memchr(s, '\n', text_end - s);
2773 s = s ? s + 1 : text_end;
2779 if (text_end - s > 10000 && !word_wrap_enabled)
2783 while (y_end < clip_rect.w && s_end < text_end)
2785 s_end = (const char*)memchr(s_end, '\n', text_end - s_end);
2786 s_end = s_end ? s_end + 1 : text_end;
2789 text_end = s_end;
2791 if (s == text_end)
2795 const int vtx_count_max = (int)(text_end - s) * 4;
2796 const int idx_count_max = (int)(text_end - s) * 6;
2804 while (s < text_end)
2811 word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - pos.x));
2823 while (s < text_end)
2840 s += ImTextCharFromUtf8(&c, s, text_end);