nsACString::const_iterator fromBegin, fromEnd; nsACString::iterator toBegin; aDest.SetLength(aSource.Length()); CopyToUpperCase converter(aDest.BeginWriting(toBegin)); copy_string(aSource.BeginReading(fromBegin), aSource.EndReading(fromEnd), converter);
ConvertToUpperCase converter; char* start; converter.write(aCString.BeginWriting(start), aCString.Length());
ToUpperCase( const nsACString& aSource, nsACString& aDest )  {    nsACString::const_iterator fromBegin, fromEnd;    nsACString::iterator toBegin;    aDest.SetLength(aSource.Length());    CopyToUpperCase converter(aDest.BeginWriting(toBegin));    copy_string(aSource.BeginReading(fromBegin), aSource.EndReading(fromEnd), converter);  }