mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-08 01:36:41 +08:00
src: reset language detectors when resetting a nsMBCSGroupProber.
This commit is contained in:
parent
eb8308d50a
commit
82c1d2b25e
@ -196,6 +196,12 @@ void nsMBCSGroupProber::Reset(void)
|
||||
codePointBuffer[i] = new int[codePointBufferSize[i]];
|
||||
}
|
||||
codePointBufferIdx[i] = 0;
|
||||
|
||||
for (PRUint32 j = 0; j < NUM_OF_LANGUAGES; j++)
|
||||
{
|
||||
if (langDetectors[i][j])
|
||||
langDetectors[i][j]->Reset();
|
||||
}
|
||||
}
|
||||
else
|
||||
mIsActive[i] = PR_FALSE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user