MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / SmallString

Function SmallString

Libraries/Memory/String.h:177–177  ·  view source on GitHub ↗

Unfortunately we have to repeat all these overloads to set inline capacity and hasInlineData flag

Source from the content-addressed store, hash-verified

175{
176 // Unfortunately we have to repeat all these overloads to set inline capacity and hasInlineData flag
177 SmallString(StringEncoding encoding = StringEncoding::Utf8) : String(encoding, N) {}
178 SmallString(const SmallString& other) : SmallString(other.getEncoding()) { String::operator=(other); }
179 SmallString(SmallString&& other) : SmallString(other.getEncoding()) { String::operator=(move(other)); }
180 String& operator=(const SmallString& other) { return String::operator=(other); }

Callers

nothing calls this directly

Calls 1

StringSpanFunction · 0.85

Tested by

no test coverage detected