Lines Matching refs:text
127 int get_line_no(const char *text) in get_line_no() argument
132 if (!text) in get_line_no()
135 for (i = 0; text[i] != '\0'; i++) in get_line_no()
136 if (text[i] == '\n') in get_line_no()
141 const char *get_line(const char *text, int line_no) in get_line() argument
146 if (!text) in get_line()
149 for (i = 0; text[i] != '\0' && lines < line_no; i++) in get_line()
150 if (text[i] == '\n') in get_line()
152 return text+i; in get_line()
166 void fill_window(WINDOW *win, const char *text) in fill_window() argument
169 int total_lines = get_line_no(text); in fill_window()
177 const char *line = get_line(text, i); in fill_window()
513 const char *text) in show_scroll_win() argument
515 (void)show_scroll_win_ext(main_window, title, (char *)text, NULL, NULL, NULL, NULL); in show_scroll_win()
519 int show_scroll_win_ext(WINDOW *main_window, const char *title, char *text, in show_scroll_win_ext() argument
524 int total_lines = get_line_no(text); in show_scroll_win_ext()
545 total_lines = get_line_no(text); in show_scroll_win_ext()
547 const char *line = get_line(text, i); in show_scroll_win_ext()
555 fill_window(pad, text); in show_scroll_win_ext()
621 size_t start = (get_line(text, start_y) - text); in show_scroll_win_ext()
622 size_t end = (get_line(text, start_y + text_lines) - text); in show_scroll_win_ext()