Ejemplo n.º 1
0
void
nsTSubstring_CharT::DoAppendFloat( double aFloat, int digits )
{
  char buf[40];
  // Use Modified_cnvtf, which is locale-insensitive, instead of the
  // locale-sensitive PR_snprintf or sprintf(3)
  Modified_cnvtf(buf, digits, aFloat);
  AppendASCII(buf);
}
Ejemplo n.º 2
0
void nsTSubstring_CharT::AppendPrintf31( const char* format, ...)
  {
    char buf[32];
    va_list ap;
    va_start(ap, format);
    PRUint32 len = PR_vsnprintf(buf, sizeof(buf), format, ap);
    AppendASCII(buf, len);
    va_end(ap);
  }
Ejemplo n.º 3
0
void nsTSubstring_CharT::AppendPrintf( const char* format, ...)
  {
    char *buf;
    va_list ap;
    va_start(ap, format);
    buf = PR_vsmprintf(format, ap);
    AppendASCII(buf);
    PR_smprintf_free(buf);
    va_end(ap);
  }