summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_extension.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-05-04 12:13:55 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-04 22:39:39 +0000
commite8c1d4144e8407c0631116a954fa347dd39375ff (patch)
tree6a91c1197a5c183ce0cb7c792755d121dd1ca9b6 /core/fxcrt/fx_extension.h
parent426b85af0f780e312221b061e2699c31821872f9 (diff)
downloadpdfium-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/fx_extension.h')
-rw-r--r--core/fxcrt/fx_extension.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcrt/fx_extension.h b/core/fxcrt/fx_extension.h
index beda105909..f55153c0ad 100644
--- a/core/fxcrt/fx_extension.h
+++ b/core/fxcrt/fx_extension.h
@@ -53,7 +53,7 @@ inline bool FXSYS_isHexDigit(const char c) {
return !((c & 0x80) || !std::isxdigit(c));
}
-inline int FXSYS_toHexDigit(const char c) {
+inline int FXSYS_HexCharToInt(const char c) {
if (!FXSYS_isHexDigit(c))
return 0;
char upchar = std::toupper(c);
@@ -68,11 +68,11 @@ inline bool FXSYS_isDecimalDigit(const wchar_t c) {
return !!std::iswdigit(c);
}
-inline int FXSYS_toDecimalDigit(const char c) {
+inline int FXSYS_DecimalCharToInt(const char c) {
return FXSYS_isDecimalDigit(c) ? c - '0' : 0;
}
-inline int FXSYS_toDecimalDigit(const wchar_t c) {
+inline int FXSYS_DecimalCharToInt(const wchar_t c) {
return std::iswdigit(c) ? c - L'0' : 0;
}