DescriptionMake CString more similar to WTF::String.
Nothing uses the copy on write feature, and it's implemented in a
somewhat confusing way since mutableData() would create a copy of the
underlying buffer, but any instances created from the CString after
calling mutableData() would still share with the mutable buffer allowing
modification of all of the CString instances. Instead lets just remove
this feature.
Doing this makes CString and CStringBuffer immutable and makes their
API look very similar to String and StringImpl. A future patch will
rename CStringBuffer to CStringImpl to match.
I also threw in a bunch of documentation comments. :)
Committed: https://crrev.com/ff1792acd2b28dee67159754e0c525031adc4c40
Cr-Commit-Position: refs/heads/master@{#419115}
Patch Set 1 #Patch Set 2 : typos. #Patch Set 3 : asserts. #
Messages
Total messages: 23 (18 generated)
|