Find end-of-line. Return pointer will point to either first \n, either str_end.
| 1679 | |
| 1680 | // Find end-of-line. Return pointer will point to either first \n, either str_end. |
| 1681 | const char* ImStreolRange(const char* str, const char* str_end) |
| 1682 | { |
| 1683 | const char* p = (const char*)memchr(str, '\n', str_end - str); |
| 1684 | return p ? p : str_end; |
| 1685 | } |
| 1686 | |
| 1687 | const ImWchar* ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin) // find beginning-of-line |
| 1688 | { |