MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / BString

Method BString

source/util/bstring.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105BString BString::empty("", true);
106
107BString::BString(const char* str, bool literal) {
108 data = allocNewData();
109 data->incRefCount();
110 if (literal) {
111 data->len = -1;
112 data->level = 0;
113 data->str = (char*)str;
114 } else {
115 kpanic("BString::BString oops");
116 }
117}
118
119BString::BString() {
120 if (!empty.data) {

Callers

nothing calls this directly

Calls 4

allocNewDataFunction · 0.85
kpanicFunction · 0.85
getNewStringFunction · 0.85
incRefCountMethod · 0.80

Tested by

no test coverage detected