| 105 | } |
| 106 | |
| 107 | void CLineInput::UpdateStrData() |
| 108 | { |
| 109 | str_utf8_stats(m_pStr, m_MaxSize, m_MaxChars, &m_Len, &m_NumChars); |
| 110 | if(!in_range<size_t>(m_CursorPos, 0, m_Len)) |
| 111 | SetCursorOffset(m_CursorPos); |
| 112 | if(!in_range<size_t>(m_SelectionStart, 0, m_Len) || !in_range<size_t>(m_SelectionEnd, 0, m_Len)) |
| 113 | SetSelection(m_SelectionStart, m_SelectionEnd); |
| 114 | } |
| 115 | |
| 116 | const char *CLineInput::GetDisplayedString() |
| 117 | { |
nothing calls this directly
no test coverage detected