MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / print_char

Function print_char

src/common/pretty.cpp:529–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527//
528
529static int print_char( ctl* control, SSHORT offset)
530{
531 const UCHAR c = BLR_BYTE;
532 const bool printable = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ||
533 (c >= '0' && c <= '9') || c == '$' || c == '_';
534
535 sprintf(control->ctl_ptr, printable ? "'%c'," : control->ctl_language ? "chr(%d)," : "%d,", c);
536 ADVANCE_PTR(control->ctl_ptr);
537
538 CHECK_BUFFER(control, offset);
539
540 return c;
541}
542
543
544//____________________________________________________________

Callers 3

PRETTY_print_cdbFunction · 0.85
print_dyn_verbFunction · 0.85
print_stringFunction · 0.85

Calls 2

ADVANCE_PTRFunction · 0.85
CHECK_BUFFERFunction · 0.85

Tested by

no test coverage detected