MCPcopy Create free account
hub / github.com/LibreCAD/LibreCAD / SetThousandsSep

Method SetThousandsSep

libraries/muparser/src/muParserBase.cpp:218–222  ·  view source on GitHub ↗

--------------------------------------------------------------------------- \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. */

Source from the content-addressed store, hash-verified

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.

Callers 1

mupSetThousandsSepFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected