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

Method SetDecSep

libraries/muparser/src/muParserBase.cpp:204–208  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.

Callers 1

muParserDLL.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected