зеркало из https://github.com/mozilla/pjs.git
Fix to ToUpperCase and ToLowerCase so that we actually hit all characters. r=scc
This commit is contained in:
Родитель
1f5d8a6bf2
Коммит
027cd65e27
|
@ -133,9 +133,10 @@ ToUpperCase(basic_nsAWritableString<CharT>& aString)
|
|||
|
||||
while ( start != end ) {
|
||||
PRUint32 fraglen = start.size_forward();
|
||||
PRUint32 num_bytes = fraglen;
|
||||
CharT *buf = start.get();
|
||||
|
||||
while ( fraglen-- ) {
|
||||
while ( num_bytes-- ) {
|
||||
*buf = nsCRT::ToUpper(*buf);
|
||||
++buf;
|
||||
}
|
||||
|
@ -156,9 +157,10 @@ ToLowerCase(basic_nsAWritableString<CharT>& aString)
|
|||
|
||||
while ( start != end ) {
|
||||
PRUint32 fraglen = start.size_forward();
|
||||
PRUint32 num_bytes = fraglen;
|
||||
CharT *buf = start.get();
|
||||
|
||||
while ( fraglen-- ) {
|
||||
while ( num_bytes-- ) {
|
||||
*buf = nsCRT::ToLower(*buf);
|
||||
++buf;
|
||||
}
|
||||
|
|
|
@ -133,9 +133,10 @@ ToUpperCase(basic_nsAWritableString<CharT>& aString)
|
|||
|
||||
while ( start != end ) {
|
||||
PRUint32 fraglen = start.size_forward();
|
||||
PRUint32 num_bytes = fraglen;
|
||||
CharT *buf = start.get();
|
||||
|
||||
while ( fraglen-- ) {
|
||||
while ( num_bytes-- ) {
|
||||
*buf = nsCRT::ToUpper(*buf);
|
||||
++buf;
|
||||
}
|
||||
|
@ -156,9 +157,10 @@ ToLowerCase(basic_nsAWritableString<CharT>& aString)
|
|||
|
||||
while ( start != end ) {
|
||||
PRUint32 fraglen = start.size_forward();
|
||||
PRUint32 num_bytes = fraglen;
|
||||
CharT *buf = start.get();
|
||||
|
||||
while ( fraglen-- ) {
|
||||
while ( num_bytes-- ) {
|
||||
*buf = nsCRT::ToLower(*buf);
|
||||
++buf;
|
||||
}
|
||||
|
|
|
@ -133,9 +133,10 @@ ToUpperCase(basic_nsAWritableString<CharT>& aString)
|
|||
|
||||
while ( start != end ) {
|
||||
PRUint32 fraglen = start.size_forward();
|
||||
PRUint32 num_bytes = fraglen;
|
||||
CharT *buf = start.get();
|
||||
|
||||
while ( fraglen-- ) {
|
||||
while ( num_bytes-- ) {
|
||||
*buf = nsCRT::ToUpper(*buf);
|
||||
++buf;
|
||||
}
|
||||
|
@ -156,9 +157,10 @@ ToLowerCase(basic_nsAWritableString<CharT>& aString)
|
|||
|
||||
while ( start != end ) {
|
||||
PRUint32 fraglen = start.size_forward();
|
||||
PRUint32 num_bytes = fraglen;
|
||||
CharT *buf = start.get();
|
||||
|
||||
while ( fraglen-- ) {
|
||||
while ( num_bytes-- ) {
|
||||
*buf = nsCRT::ToLower(*buf);
|
||||
++buf;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче