| 15 | static std::string const empty_string_; |
| 16 | |
| 17 | void String::internally_mutate_to_stable_string() |
| 18 | { |
| 19 | // We assume that only one thread mutates this instance at |
| 20 | // a time even if we point to a shared string buffer referenced |
| 21 | // by other threads. |
| 22 | *this = String(this->data(), this->size()); |
| 23 | } |
| 24 | |
| 25 | bool String::is_stable() const |
| 26 | { |