diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2005-12-23 13:51:12 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2005-12-23 13:51:12 -0500 |
commit | 91192dbe979b6508398ebb14b2d514833114908e (patch) | |
tree | 98945ca6abb9bac48dd19e8406bf0a90c7e13631 /base/str.cc | |
parent | 86722d840611f73bd118112ce64c9b1139b47d0e (diff) | |
parent | 16bda9c03eb79e223f3cbc03ef80e75b7e27f266 (diff) | |
download | gem5-91192dbe979b6508398ebb14b2d514833114908e.tar.xz |
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/z/stever/bk/newmem
--HG--
extra : convert_revision : 60b1d26505a7b17321840e2db4173c3e867a6a75
Diffstat (limited to 'base/str.cc')
-rw-r--r-- | base/str.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/base/str.cc b/base/str.cc index 15f44dad2..5f7f50286 100644 --- a/base/str.cc +++ b/base/str.cc @@ -142,7 +142,7 @@ __to_number(string value, T &retval) int i = 0; char c = value[i]; - if (!IsDec(c)) { + if (!isDec(c)) { if (c == '-' && sign) negative = true; else @@ -161,7 +161,7 @@ __to_number(string value, T &retval) if (sign && negative) return false; - if (!IsOct(c)) { + if (!isOct(c)) { if (c == 'X' || c == 'x') { hex = true; oct = false; @@ -170,7 +170,7 @@ __to_number(string value, T &retval) } else retval += c - '0'; - } else if (!IsDec(c)) + } else if (!isDec(c)) goto multiply; else { if (sign && negative && c == '0') @@ -190,18 +190,18 @@ __to_number(string value, T &retval) for (i = 2; i <= last ; i++) { c = value[i]; - if (!IsHex(c)) + if (!isHex(c)) return false; if (retval > hexmax) return false; retval *= 16; - retval += Hex2Int(c); + retval += hex2Int(c); } return true; } else if (oct) { for (i = 2; i <= last ; i++) { c = value[i]; - if (!IsOct(c)) + if (!isOct(c)) return false; if (retval > octmax) return false; @@ -213,7 +213,7 @@ __to_number(string value, T &retval) for (i = 2; i < last ; i++) { c = value[i]; - if (!IsDec(c)) + if (!isDec(c)) goto multiply; if (retval > decmax) return false; @@ -226,7 +226,7 @@ __to_number(string value, T &retval) } c = value[last]; - if (IsDec(c)) { + if (isDec(c)) { if (retval > decmax) return false; bool atmax = retval == decmax; @@ -274,7 +274,7 @@ __to_number(string value, T &retval) mult = 0; for (i++; i <= last; i++) { c = value[i]; - if (!IsDec(c)) + if (!isDec(c)) return false; mult *= 10; |