remove unused StreamStr::to_lower
This commit is contained in:
parent
7d9d24b335
commit
fb21365cef
2 changed files with 0 additions and 34 deletions
|
@ -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 );
|
||||
|
|
|
@ -690,37 +690,6 @@ StreamStr::replace_all( Area i_aStrToSearch,
|
|||
} // end while
|
||||
}
|
||||
|
||||
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 )
|
||||
|
|
Loading…
Reference in a new issue