MCPcopy Create free account
hub / github.com/Kitware/CMake / internally_mutate_to_stable_string

Method internally_mutate_to_stable_string

Source/cmString.cxx:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15static std::string const empty_string_;
16
17void 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
25bool String::is_stable() const
26{

Callers 3

stabilizeMethod · 0.95
c_strMethod · 0.95
cmString.cxxFile · 0.80

Calls 3

StringFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected