--------------------------------------------------------------------------- \brief Sets the thousands operator. \param cThousandsSep The thousands separator as a character \sa SetDecSep By default muparser uses the "C" locale. The thousands separator of this locale is overwritten by the one provided here. */
| 216 | locale is overwritten by the one provided here. |
| 217 | */ |
| 218 | void ParserBase::SetThousandsSep(char_type cThousandsSep) |
| 219 | { |
| 220 | char_type cDecSep = std::use_facet< change_dec_sep<char_type> >(s_locale).decimal_point(); |
| 221 | s_locale = std::locale(std::locale("C"), new change_dec_sep<char_type>(cDecSep, cThousandsSep)); |
| 222 | } |
| 223 | |
| 224 | //--------------------------------------------------------------------------- |
| 225 | /** \brief Resets the locale. |
no outgoing calls
no test coverage detected