Advertisement

muparser - Fast Math Parser Library

Version 2.2.5


Localization

Sometimes it is necessary to change decimal separator, argument separator or thousands separator to match a certain locale. The following functions can be used for this purpose:

[DLL interface]

// german localization
mupSetArgSep(hParser, ';');
mupSetDecSep(hParser, ',');
mupSetThousandsSep(hParser, '.');

// reset to defaults
mupResetLocale();
See also: example2/example2.c.

[Parser class interface]

// german localization
parser.SetArgSep(';');
parser.SetDecSep(',');
parser.SetThousandsSep('.');

// reset to defaults
parser.ResetLocale();
See also: example1/example1.cpp.

You might also like: