Home | History | Annotate | Download | only in strings

Lines Matching refs:Arg

427 Arg* args,
501 const Arg& arg = args[cur_arg++];
502 if (arg.type != Arg::INT && arg.type != Arg::UINT) {
503 DEBUG_CHECK(arg.type == Arg::INT || arg.type == Arg::UINT);
511 char ch = static_cast<char>(arg.i);
528 const Arg& arg = args[cur_arg++];
533 if (arg.type != Arg::INT && arg.type != Arg::UINT) {
534 DEBUG_CHECK(arg.type == Arg::INT || arg.type == Arg::UINT);
537 i = arg.i;
540 // The Arg() constructor automatically performed sign expansion on
544 // We have to do this here, instead of in the Arg() constructor, as
545 // the Arg() constructor cannot tell whether we will output a %d
547 if (arg.width < sizeof(int64_t)) {
548 i &= (1LL << (8*arg.width)) - 1;
553 if (arg.type == Arg::POINTER) {
554 i = reinterpret_cast<uintptr_t>(arg.ptr);
555 } else if (arg.type == Arg::STRING) {
556 i = reinterpret_cast<uintptr_t>(arg.str);
557 } else if (arg.type == Arg::INT && arg.width == sizeof(NULL) &&
558 arg.i == 0) { // Allow C++'s version of NULL
561 DEBUG_CHECK(arg.type == Arg::POINTER || arg.type == Arg::STRING);
574 buffer.IToASCII(ch == 'd' && arg.type == Arg::INT,
587 const Arg& arg = args[cur_arg++];
589 if (arg.type == Arg::STRING) {
590 s = arg.str ? arg.str : "<NULL>";
591 } else if (arg.type == Arg::INT && arg.width == sizeof(NULL) &&
592 arg.i == 0) { // Allow C++'s version of NULL
595 DEBUG_CHECK(arg.type == Arg::STRING);