Make 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. :) Review-Url: https://codereview.chromium.org/2345893002 Cr-Commit-Position: refs/heads/master@{#419115}
Showing
Please register or sign in to comment