Ejemplo n.º 1
0
int printl(u32 l){
    if (l==0)
        putc('0');
    else
        rpl(l);
    //putc(' ');
}
Ejemplo n.º 2
0
int rpl(u32 x){
    char c;
    if(x){
        c = table[x % BASE_10];
        rpl(x / BASE_10);
        putc(c);
    }
}
Ejemplo n.º 3
0
int rpl(u32 x)
{
  char c;
  if (x==0)
    return;
  c = tab[x % BASE];
  rpl(x / BASE);
  putc(c);
}
Ejemplo n.º 4
0
int printl(u32 x)
{
  if (ALIGN)    // global 0 => no alignment
      align(x);
  if (x==0){
    putc('0'); putc(' ');
    return;
  }
  rpl(x);
  putc(' ');
}
Ejemplo n.º 5
0
/*************************************
 * 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;
}