CRegExp.SetCodePage

Far Manager

CRegExp.SetCodePage

[ is missing in FreeCraze colorer ]
Sets codepage for working with texts in non-OEM codepage.

Class method:

void SetCodePage(char *Table);

DLL interface:

void WINAPI reSetCodePage(PRegExp re, char *Table);

Members

re
a pointer to an object
Table
Table for transliteration from the target code page to OEM

Return value

None

Remarks

For regexps to be full-fledged in another codepage it's necessary to set the regexp itself to the target codepage. You can recompile the class so that is uses non-OEM codepage by default. In this case setcodepage method will also work but the transliteration tables would have to be set relative to the codepage the cRegExp class has been compiled with.
See also: