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

Method length

source/util/bstring.cpp:433–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433int BString::length() const {
434 if (data->len < 0) {
435 if (data->str) {
436 data->len = (int)strlen(data->str);
437 } else {
438 data->len = 0;
439 }
440 }
441 return data->len;
442}
443
444void BString::remove(int index, int len) {
445 makeWritable(0);

Callers 6

appendMethod · 0.45
appendAfterNullMethod · 0.45
endsWithMethod · 0.45
lastIndexOfMethod · 0.45
startsWithMethod · 0.45
operator+Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected