Rename SkString::writable_str to data.
This brings the API more into parity with std::string. You can now
call `data()` on a const SkString, and the behavior will be equivalent
to calling `c_str()` (you get an immutable buffer back, no COW split
occurs). Previously, calling `writable_str()` on a const SkString was
disallowed.
Change-Id: I22c866f8b43b4acdcc8c13a54315aaf3298078aa
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/596956
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
31 files changed