str.cpp

changeset 116
4fde8fdf258a
parent 113
bbaa40226ec9
child 135
c243df39913e
equal deleted inserted replaced
115:611417d3e6d2 116:4fde8fdf258a
499 499
500 str& str::operator+= (vertex vrt) { 500 str& str::operator+= (vertex vrt) {
501 appendformat ("%s", vrt.getStringRep (false).chars()); 501 appendformat ("%s", vrt.getStringRep (false).chars());
502 return *this; 502 return *this;
503 } 503 }
504
505 str format (const char* fmt, ...) {
506 va_list va;
507 char* buf;
508
509 va_start (va, fmt);
510 buf = vdynformat (fmt, va, 256);
511 va_end (va);
512
513 str val = buf;
514 delete[] buf;
515 return val;
516 }

mercurial