MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / toString

Method toString

src/Array.cpp:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274String ArrayBase::__ToString() const { return HX_CSTRING("Array"); }
275String ArrayBase::toString()
276{
277 // Byte-array (not bool!)
278 if (IsByteArray())
279 {
280 return String( (const char *) mBase, length);
281 }
282
283 return HX_CSTRING("[") + __join(HX_CSTRING(",")) + HX_CSTRING("]");
284}
285
286
287void ArrayBase::__SetSizeExact(int inSize)

Callers

nothing calls this directly

Calls 3

__joinFunction · 0.85
IsByteArrayFunction · 0.50
StringClass · 0.50

Tested by

no test coverage detected