MCPcopy Create free account
hub / github.com/covscript/covscript / to_string

Function to_string

sources/covscript.cpp:365–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 var to_string(const var &val)
366 {
367 if (val.is_type_of<string>())
368 return val;
369 else
370 return val.to_string().extract();
371 }
372
373 string type(const var &a)
374 {

Callers 7

prepend_import_pathFunction · 0.70
rangeFunction · 0.70
call_rrMethod · 0.50
call_rlMethod · 0.50
call_elMethod · 0.50
local_timeFunction · 0.50
utc_timeFunction · 0.50

Calls 2

extractMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected