Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@83553 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -473,7 +473,7 @@ nsCString::ReplaceSubstring(const nsCString& aTarget,const nsCString& aNewValue)
|
||||
* @param
|
||||
* @return *this
|
||||
*/
|
||||
PRInt32 nsCString::CountChar(PRUnichar aChar) {
|
||||
PRInt32 nsCString::CountChar(PRUnichar aChar) const {
|
||||
PRInt32 theIndex=0;
|
||||
PRInt32 theCount=0;
|
||||
PRInt32 theLen=(PRInt32)mLength;
|
||||
|
||||
Reference in New Issue
Block a user