diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2016-05-16 21:30:31 +0000 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2016-05-18 22:39:20 +0000 |
commit | 7c2c516353bbf6fae20fb5ec8fba373cf70d3aba (patch) | |
tree | 0eb7f6f231bca8b4eec432ceabf4da7d624df0ab /src/fallback.cpp | |
parent | db18449f4cdc190c74a2ba3228fbd1e0ca467154 (diff) |
move convert_digit from fallback to common
It's not required as part of fallback functions any more.
Diffstat (limited to 'src/fallback.cpp')
-rw-r--r-- | src/fallback.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/fallback.cpp b/src/fallback.cpp index 74635acc..7a829124 100644 --- a/src/fallback.cpp +++ b/src/fallback.cpp @@ -161,22 +161,6 @@ wchar_t *wcsndup(const wchar_t *in, size_t c) { } #endif -long convert_digit(wchar_t d, int base) { - long res = -1; - if ((d <= L'9') && (d >= L'0')) { - res = d - L'0'; - } else if ((d <= L'z') && (d >= L'a')) { - res = d + 10 - L'a'; - } else if ((d <= L'Z') && (d >= L'A')) { - res = d + 10 - L'A'; - } - if (res >= base) { - res = -1; - } - - return res; -} - #ifndef HAVE_WCSLCAT /*$OpenBSD: strlcat.c,v 1.11 2003/06/17 21:56:24 millert Exp $*/ |