Lines Matching refs:buf_end
3230 const char* buf_end = NULL;
3231 edit_state.CurLenW = ImTextStrFromUtf8(edit_state.TextW.Data, buf_size, buf, NULL, &buf_end);
3232 edit_state.CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8.
3280 const char* buf_end = NULL;
3281 edit_state.CurLenW = ImTextStrFromUtf8(edit_state.TextW.Data, edit_state.TextW.Size, buf, NULL, &buf_end);
3282 edit_state.CurLenA = (int)(buf_end - buf);
3769 const char* buf_end = NULL;
3771 text_size = ImVec2(size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_end) * g.FontSize); // We don't need width
3773 buf_end = buf_display + strlen(buf_display);
3774 if (is_multiline || (buf_end - buf_display) < buf_display_max_length)
3775 draw_window->DrawList->AddText(g.Font, g.FontSize, render_pos, GetColorU32(ImGuiCol_Text), buf_display, buf_end, 0.0f, is_multiline ? NULL : &clip_rect);