Add assertions that users of nsDependentC?String meet the requirements of nsAFlatC?String. Add nsDependentSingleFragmentC?Substring for users that don't. Additional cleanup after bug 100214. b=104651 r=jag sr=scc

git-svn-id: svn://10.0.0.236/trunk@107556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-11-07 04:12:20 +00:00
parent a38af362a7
commit 52bea38360
26 changed files with 430 additions and 105 deletions

View File

@@ -2278,7 +2278,8 @@ nsParser::DetectMetaTag(const char* aBytes,
// Fast and loose parsing to determine if we have a complete
// META tag in this block, looking upto 2k into it.
nsDependentCString str(aBytes, PR_MIN(aLen, 2048));
const nsASingleFragmentCString& str =
Substring(aBytes, aBytes + PR_MIN(aLen, 2048));
nsReadingIterator<char> begin, end;
str.BeginReading(begin);