diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-04 12:13:55 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-04 22:39:39 +0000 |
commit | e8c1d4144e8407c0631116a954fa347dd39375ff (patch) | |
tree | 6a91c1197a5c183ce0cb7c792755d121dd1ca9b6 /core/fxcrt/cfx_widestring.cpp | |
parent | 426b85af0f780e312221b061e2699c31821872f9 (diff) | |
download | pdfium-e8c1d4144e8407c0631116a954fa347dd39375ff.tar.xz |
Give a couple of char to int functions better names.chromium/3090
- FXSYS_toDecimalDigit() becomes FXSYS_DecimalCharToInt().
- FXSYS_toHexDigit() becomes FXSYS_HexCharToInt().
Change-Id: If4683e8f85f05124b92ff075056cbc295442087d
Reviewed-on: https://pdfium-review.googlesource.com/4930
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_widestring.cpp')
-rw-r--r-- | core/fxcrt/cfx_widestring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/cfx_widestring.cpp b/core/fxcrt/cfx_widestring.cpp index 08f41681a4..ef6aaad931 100644 --- a/core/fxcrt/cfx_widestring.cpp +++ b/core/fxcrt/cfx_widestring.cpp @@ -1025,7 +1025,7 @@ float FX_wtof(const wchar_t* str, int len) { if (str[cc] == '.') { break; } - integer = integer * 10 + FXSYS_toDecimalDigit(str[cc]); + integer = integer * 10 + FXSYS_DecimalCharToInt(str[cc]); cc++; } float fraction = 0; @@ -1033,7 +1033,7 @@ float FX_wtof(const wchar_t* str, int len) { cc++; float scale = 0.1f; while (cc < len) { - fraction += scale * FXSYS_toDecimalDigit(str[cc]); + fraction += scale * FXSYS_DecimalCharToInt(str[cc]); scale *= 0.1f; cc++; } |