--------------------------------------------------------------------------- \brief Set the decimal separator. \param cDecSep Decimal separator as a character value. \sa SetThousandsSep By default muparser uses the "C" locale. The decimal separator of this locale is overwritten by the one provided here. */
| 202 | locale is overwritten by the one provided here. |
| 203 | */ |
| 204 | void ParserBase::SetDecSep(char_type cDecSep) |
| 205 | { |
| 206 | char_type cThousandsSep = std::use_facet< change_dec_sep<char_type> >(s_locale).thousands_sep(); |
| 207 | s_locale = std::locale(std::locale("C"), new change_dec_sep<char_type>(cDecSep, cThousandsSep)); |
| 208 | } |
| 209 | |
| 210 | //--------------------------------------------------------------------------- |
| 211 | /** \brief Sets the thousands operator. |