MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / ClearMatch

Method ClearMatch

extensions/regex/CRegEx.cpp:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void RegEx::ClearMatch()
170{
171 // Clears match results
172 mErrorOffset = 0;
173 mErrorCode = 0;
174 mError = nullptr;
175 if (subject)
176 free(subject);
177 subject = nullptr;
178 mMatchCount = 0;
179}
180
181bool RegEx::GetSubstring(int s, char buffer[], int max, int match)
182{

Callers 4

MatchMethod · 0.95
MatchAllMethod · 0.95
MatchRegexFunction · 0.80
MatchRegexAllFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected