Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
| 1705 | |
| 1706 | // Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" |
| 1707 | ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) |
| 1708 | { |
| 1709 | if (default_filter) |
| 1710 | { |
| 1711 | ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); |
| 1712 | Build(); |
| 1713 | } |
| 1714 | else |
| 1715 | { |
| 1716 | InputBuf[0] = 0; |
| 1717 | CountGrep = 0; |
| 1718 | } |
| 1719 | } |
| 1720 | |
| 1721 | bool ImGuiTextFilter::Draw(const char* label, float width) |
| 1722 | { |
nothing calls this directly
no test coverage detected