MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ResetState

Method ResetState

src/stringfilter.cpp:80–86  ·  view source on GitHub ↗

* Reset the matching state to process a new item. */

Source from the content-addressed store, hash-verified

78 * Reset the matching state to process a new item.
79 */
80void StringFilter::ResetState()
81{
82 this->word_matches = 0;
83 for (WordState &ws : this->word_index) {
84 ws.match = false;
85 }
86}
87
88/**
89 * Pass another text line from the current item to the filter.

Callers 13

UpdateFilterStateMethod · 0.80
SignNameFilterMethod · 0.80
BuildDisplayListMethod · 0.80
TagNameFilterMethod · 0.80
BuildSortTownListMethod · 0.80
ClassTagNameFilterFunction · 0.80
TypeTagNameFilterFunction · 0.80
FilterByTextMethod · 0.80
BadgeTextFilterMethod · 0.80
OnInvalidateDataMethod · 0.80
TagNameFilterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected