MCPcopy Create free account
hub / github.com/aardappel/lobster / ToString

Method ToString

dev/src/vmdata.cpp:66–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void LString::ToString(string &sd, PrintPrefs &pp) {
67 if (CycleCheck(sd, pp)) return;
68 auto sv = strv();
69 auto dd = string_view();
70 if (len > pp.budget) {
71 sv = sv.substr(0, (size_t)pp.budget);
72 dd = "..";
73 }
74 if (pp.quoted) {
75 EscapeAndQuote(sv, sd);
76 } else {
77 sd += sv;
78 }
79 sd += dd;
80}
81
82LVector::LVector(VM &vm, iint _initial, iint _max, type_elem_t _tti)
83 : RefObj(_tti), len(_initial), maxl(_max) {

Callers 15

DumpStackTraceMethod · 0.45
EndEvalMethod · 0.45
ParseFactorMethod · 0.45
AddReaderFunction · 0.45
AddBuiltinsFunction · 0.45
ValToGUIFunction · 0.45
FlexBufferGUIFunction · 0.45
RefToStringFunction · 0.45
VectorOrObjectToStringFunction · 0.45
GetIpAddressIdentityMethod · 0.45
P2PListenIPMethod · 0.45
P2PConnectMethod · 0.45

Calls 5

EscapeAndQuoteFunction · 0.85
VectorOrObjectToStringFunction · 0.85
appendFunction · 0.85
EnumNameMethod · 0.80
ReverseLookupTypeMethod · 0.80

Tested by

no test coverage detected