summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-20 14:10:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-20 14:10:41 +0100
commitf2e4eb17f5c99e7d6cdab0c479a371b9d8a139ed (patch)
tree5f99bbd69cf058ee8218bf7daf0e9f2cac84e08c
parentfb0c6399c7e84e5264f3cea2cdc4868b22fe5a8a (diff)
remove unused StreamStr::to_lower
-rw-r--r--cosv/inc/cosv/streamstr.hxx3
-rw-r--r--cosv/source/strings/streamstr.cxx31
2 files changed, 0 insertions, 34 deletions
diff --git a/cosv/inc/cosv/streamstr.hxx b/cosv/inc/cosv/streamstr.hxx
index b8e271d9..04914ea3 100644
--- a/cosv/inc/cosv/streamstr.hxx
+++ b/cosv/inc/cosv/streamstr.hxx
@@ -239,9 +239,6 @@ class StreamStr : public bostream
Area i_aStrToSearch,
Area i_aReplacement );
- StreamStr & to_lower(
- position_type i_nStart = 0,
- size_type i_nLength = str::maxsize );
StreamStr & to_upper(
position_type i_nStart = 0,
size_type i_nLength = str::maxsize );
diff --git a/cosv/source/strings/streamstr.cxx b/cosv/source/strings/streamstr.cxx
index 45884ff8..32f35b02 100644
--- a/cosv/source/strings/streamstr.cxx
+++ b/cosv/source/strings/streamstr.cxx
@@ -691,37 +691,6 @@ StreamStr::replace_all( Area i_aStrToSearch,
}
StreamStr &
-StreamStr::to_lower( position_type i_nStart,
- size_type i_nLength )
-{
- static char cLower[128] =
- { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
- 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
- 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
- 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
- 64, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,
- 112,113,114,115,116,117,118,119,120,121,122, 91, 92, 93, 94, 95,
- 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,
- 112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127 };
-
- if ( i_nStart < length() )
- {
- char * pStop = i_nStart + i_nLength < length()
- ? dpData + i_nStart + i_nLength
- : pEnd;
- for ( char * pChange = dpData + i_nStart;
- pChange != pStop;
- ++pChange )
- {
- *pChange = (static_cast< unsigned char >(*pChange) & 0x80) == 0
- ? cLower[ UINT8(*pChange) ]
- : *pChange;
- }
- }
- return *this;
-}
-
-StreamStr &
StreamStr::to_upper( position_type i_nStart,
size_type i_nLength )
{