summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_basic_util.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-03-31 10:32:07 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-31 17:51:46 +0000
commitfcdb2df009796a78369a7fe8bcaab76b27f5450b (patch)
tree104104f6c1c4c1c68ef8e5b0c2bae93760e75005 /core/fxcrt/fx_basic_util.cpp
parentfc715c3c1d9c9c623c36ae9fc8b8aac0362e4c22 (diff)
downloadpdfium-fcdb2df009796a78369a7fe8bcaab76b27f5450b.tar.xz
Re-arrange fxcrt string files to match naming.
The top-level fx_string.h is kept to include all strings. Put all fx_atof code in fx_basic_util.cpp rather than header. Change-Id: I61fe768f2e1ddf8438d27e410929f4cff918a9a3 Reviewed-on: https://pdfium-review.googlesource.com/3530 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_basic_util.cpp')
-rw-r--r--core/fxcrt/fx_basic_util.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcrt/fx_basic_util.cpp b/core/fxcrt/fx_basic_util.cpp
index 9f699e4da7..58d54a3b10 100644
--- a/core/fxcrt/fx_basic_util.cpp
+++ b/core/fxcrt/fx_basic_util.cpp
@@ -123,6 +123,10 @@ float FX_atof(const CFX_ByteStringC& strc) {
return bNegative ? -value : value;
}
+float FX_atof(const CFX_WideStringC& wsStr) {
+ return FX_atof(FX_UTF8Encode(wsStr).c_str());
+}
+
#if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ && _MSC_VER < 1900
void FXSYS_snprintf(char* str,
size_t size,