int printl(u32 l){ if (l==0) putc('0'); else rpl(l); //putc(' '); }
int rpl(u32 x){ char c; if(x){ c = table[x % BASE_10]; rpl(x / BASE_10); putc(c); } }
int rpl(u32 x) { char c; if (x==0) return; c = tab[x % BASE]; rpl(x / BASE); putc(c); }
int printl(u32 x) { if (ALIGN) // global 0 => no alignment align(x); if (x==0){ putc('0'); putc(' '); return; } rpl(x); putc(' '); }
/************************************* * Replace *************************************/ void SHVStringUTF8::Replace(const SHVStringUTF8C& search, const SHVStringUTF8C& repl) { SHVString8 self; SHVString8C srch(search.GetBufferConst()); SHVString8C rpl(repl.GetBufferConst()); self = SHVStringBuffer8::Encapsulate(Buffer); Buffer = NULL; self.Replace(srch,rpl); *this = SHVStringBufferUTF8::Encapsulate(self.Buffer); self.Buffer = NULL; }