(b76ad15ed0da636161de0243c547ee1e6fc95681)
Go to the source code of this file.
|
#define | BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */ |
|
#define | FNONE 0 |
|
#define | FSHARP 1 |
|
#define | FMINUS 2 |
|
#define | FPLUS 4 |
|
#define | FZERO 8 |
|
#define | FSPACE 16 |
|
#define | FWIDTH 32 |
|
#define | FPREC 64 |
|
#define | FPREC0 128 |
|
#define | CHECK(l) |
|
#define | PUSH(s, l) |
|
#define | PUSH_(s, l) |
|
#define | FILL(c, l) |
|
#define | FILL_(c, l) |
|
#define | GETARG() |
|
#define | GETNEXTARG() |
|
#define | GETPOSARG(n) |
|
#define | GETNTHARG(nth) (((nth) >= argc) ? (rb_raise(rb_eArgError, "too few arguments"), 0) : argv[(nth)]) |
|
#define | CHECKNAMEARG(name, len, enc) |
|
#define | GETNUM(n, val) |
|
#define | GETASTER(val) |
|
#define | CHECK_FOR_WIDTH(f) |
|
#define | CHECK_FOR_FLAGS(f) |
|
#define | FILE rb_printf_buffer |
|
#define | __sbuf rb_printf_sbuf |
|
#define | __sFILE rb_printf_sfile |
|
#define | FLOATING_POINT 1 |
|
#define | BSD__dtoa ruby_dtoa |
|
#define | BSD__hdtoa ruby_hdtoa |
|
#define | PRI_EXTRA_MARK RUBY_PRI_VALUE_MARK |
|
#define | lower_hexdigits (ruby_hexdigits+0) |
|
#define | upper_hexdigits (ruby_hexdigits+16) |
|
#define | LITERAL(str) (*sz = rb_strlen_lit(str), str) |
|
#define | f buffer.base |
|
#define | f buffer.base |
|
|
VALUE | rb_f_sprintf (int argc, const VALUE *argv) |
|
VALUE | rb_str_format (int argc, const VALUE *argv, VALUE fmt) |
|
int | ruby_vsnprintf (char *str, size_t n, const char *fmt, va_list ap) |
|
int | ruby_snprintf (char *str, size_t n, char const *fmt,...) |
|
VALUE | rb_enc_vsprintf (rb_encoding *enc, const char *fmt, va_list ap) |
|
VALUE | rb_enc_sprintf (rb_encoding *enc, const char *format,...) |
|
VALUE | rb_vsprintf (const char *fmt, va_list ap) |
|
VALUE | rb_sprintf (const char *format,...) |
|
VALUE | rb_str_vcatf (VALUE str, const char *fmt, va_list ap) |
|
VALUE | rb_str_catf (VALUE str, const char *format,...) |
|
◆ __sbuf
◆ __sFILE
◆ BIT_DIGITS
#define BIT_DIGITS |
( |
|
N | ) |
(((N)*146)/485 + 1) /* log2(10) =~ 146/485 */ |
◆ BSD__dtoa
◆ BSD__hdtoa
◆ CHECK
Value: do {\
while ((l) >= bsiz - blen) {\
bsiz*=2;\
}\
} while (0)
Definition at line 68 of file sprintf.c.
◆ CHECK_FOR_FLAGS
#define CHECK_FOR_FLAGS |
( |
|
f | ) |
|
◆ CHECK_FOR_WIDTH
#define CHECK_FOR_WIDTH |
( |
|
f | ) |
|
◆ CHECKNAMEARG
#define CHECKNAMEARG |
( |
|
name, |
|
|
|
len, |
|
|
|
enc |
|
) |
| |
Value: ( \
check_name_arg(posarg,
name,
len, enc), \
posarg = -2)
Definition at line 114 of file sprintf.c.
◆ f [1/2]
◆ f [2/2]
◆ FILE
#define FILE rb_printf_buffer |
◆ FILL
Value: do { \
if ((l) <= 0) break;\
} while (0)
Definition at line 89 of file sprintf.c.
◆ FILL_
Value: do { \
memset(&
buf[blen], (c), (l));\
blen += (l);\
} while (0)
Definition at line 95 of file sprintf.c.
◆ FLOATING_POINT
◆ FMINUS
◆ FNONE
◆ FPLUS
◆ FPREC
◆ FPREC0
◆ FSHARP
◆ FSPACE
◆ FWIDTH
◆ FZERO
◆ GETARG
Value: (nextvalue !=
Qundef ? nextvalue : \
GETNEXTARG())
Definition at line 100 of file sprintf.c.
◆ GETASTER
Value: do { \
t = p++; \
n = 0; \
GETNUM(n, val); \
if (*p == '$') { \
} \
else { \
} \
} while (0)
Definition at line 122 of file sprintf.c.
◆ GETNEXTARG
Value: ( \
check_next_arg(posarg, nextarg), \
Definition at line 103 of file sprintf.c.
◆ GETNTHARG
◆ GETNUM
#define GETNUM |
( |
|
n, |
|
|
|
val |
|
) |
| |
◆ GETPOSARG
Value: ( \
check_pos_arg(posarg, (n)), \
Definition at line 107 of file sprintf.c.
◆ LITERAL
◆ lower_hexdigits
◆ PRI_EXTRA_MARK
◆ PUSH
Value: do { \
CHECK(l);\
PUSH_(s, l);\
} while (0)
Definition at line 79 of file sprintf.c.
◆ PUSH_
Value: do { \
memcpy(&
buf[blen], (s), (l));\
blen += (l);\
} while (0)
Definition at line 84 of file sprintf.c.
◆ upper_hexdigits
◆ rb_enc_sprintf()
◆ rb_enc_vsprintf()
◆ rb_f_sprintf()
◆ rb_sprintf()
◆ rb_str_catf()
◆ rb_str_format()
◆ rb_str_vcatf()
◆ rb_vsprintf()
VALUE rb_vsprintf |
( |
const char * |
fmt, |
|
|
va_list |
ap |
|
) |
| |
◆ ruby_snprintf()
int ruby_snprintf |
( |
char * |
str, |
|
|
size_t |
n, |
|
|
char const * |
fmt, |
|
|
|
... |
|
) |
| |
◆ ruby_vsnprintf()
int ruby_vsnprintf |
( |
char * |
str, |
|
|
size_t |
n, |
|
|
const char * |
fmt, |
|
|
va_list |
ap |
|
) |
| |