mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 17:31:56 +00:00
Revert "replace deprecated g_pattern_match_string function"
This reverts commit 452a4e07fb.
This commit is contained in:
@@ -989,7 +989,7 @@ bool Dict::LookupWithRule(GPatternSpec *pspec, glong *aIndex, int iBuffLen)
|
|||||||
int iIndexCount = 0;
|
int iIndexCount = 0;
|
||||||
|
|
||||||
for (guint32 i = 0; i < narticles() && iIndexCount < (iBuffLen - 1); i++)
|
for (guint32 i = 0; i < narticles() && iIndexCount < (iBuffLen - 1); i++)
|
||||||
if (g_pattern_spec_match_string(pspec, get_key(i)))
|
if (g_pattern_match_string(pspec, get_key(i)))
|
||||||
aIndex[iIndexCount++] = i;
|
aIndex[iIndexCount++] = i;
|
||||||
|
|
||||||
aIndex[iIndexCount] = -1; // -1 is the end.
|
aIndex[iIndexCount] = -1; // -1 is the end.
|
||||||
|
|||||||
Reference in New Issue
Block a user