aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2000-04-25 07:32:50 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2000-04-25 07:32:50 +0000
commitf4dad842c7acc7d43c968b41db69e687e4a2643c (patch)
treefc85d9765a228b67c312e42e83d7eec377b7accf
parent45ce1b3498c61142954ae3a55d7709d24977a103 (diff)
downloadgcc-f4dad842c7acc7d43c968b41db69e687e4a2643c.zip
gcc-f4dad842c7acc7d43c968b41db69e687e4a2643c.tar.gz
gcc-f4dad842c7acc7d43c968b41db69e687e4a2643c.tar.bz2
ctype.cc (do_toupper): Remove dependence on non-portable/non-existent lookup table.
2000-04-24 Loren J. Rittle <ljrittle@acm.org> * config/generic/ctype.cc (do_toupper): Remove dependence on non-portable/non-existent lookup table. (do_tolower): Same. From-SVN: r33404
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/config/generic/ctype.cc8
2 files changed, 10 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b832f40..479eaa2 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-24 Loren J. Rittle <ljrittle@acm.org>
+
+ * config/generic/ctype.cc (do_toupper): Remove dependence on
+ non-portable/non-existent lookup table.
+ (do_tolower): Same.
+
2000-04-24 Nathan Myers <ncm@cantrip.org>
* src/string-inst.cc: More fixing.
diff --git a/libstdc++-v3/config/generic/ctype.cc b/libstdc++-v3/config/generic/ctype.cc
index ad7ec43..dd7fc1a 100644
--- a/libstdc++-v3/config/generic/ctype.cc
+++ b/libstdc++-v3/config/generic/ctype.cc
@@ -42,14 +42,14 @@
char
ctype<char>::do_toupper(char __c) const
- { return _S_toupper[(int) __c]; }
+ { return toupper((int) __c); }
const char*
ctype<char>::do_toupper(char* __low, const char* __high) const
{
while (__low < __high)
{
- *__low = _S_toupper[(int) *__low];
+ *__low = toupper((int) *__low);
++__low;
}
return __high;
@@ -57,14 +57,14 @@
char
ctype<char>::do_tolower(char __c) const
- { return _S_tolower[(int) __c]; }
+ { return tolower((int) __c); }
const char*
ctype<char>::do_tolower(char* __low, const char* __high) const
{
while (__low < __high)
{
- *__low = _S_tolower[(int) *__low];
+ *__low = tolower((int) *__low);
++__low;
}
return __high;