]> git.saurik.com Git - wxWidgets.git/commit - tests/strings/strings.cpp
Add wxString::FromDouble() and FromCDouble().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 May 2010 11:55:48 +0000 (11:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 May 2010 11:55:48 +0000 (11:55 +0000)
commit951201d81c463d55edb4b316002c7fa5c8291603
treea1ed4e595c86f7b290713065c31e254c81b68c15
parent105993f7b6baf97b596d09e9c59c42adcee0dbcf
Add wxString::FromDouble() and FromCDouble().

wxString::FromCDouble() is needed inside wxWidgets itself to format numbers
independently of the current locale. FromDouble() was added for symmetry with
ToDouble/ToCDouble() functions.

Use std::locale for the implementation if available and manual wxLocale-based
fallback otherwise.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/string.h
interface/wx/string.h
src/common/string.cpp
tests/strings/strings.cpp