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

Function gen_raw

src/gpre/obj_cxx.cpp:2700–2727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2698//
2699
2700static void gen_raw(const UCHAR* blr, int request_length)
2701{
2702 TEXT buffer[80];
2703
2704 TEXT* p = buffer;
2705 const TEXT* const limit = buffer + 60;
2706
2707 for (int count = request_length; count; count--)
2708 {
2709 const TEXT c = *blr++;
2710 if ((c >= 'A' && c <= 'Z') || c == '$' || c == '_')
2711 sprintf(p, "'%c'", c);
2712 else
2713 sprintf(p, "%d", c);
2714 while (*p)
2715 p++;
2716 if (count - 1)
2717 *p++ = ',';
2718 if (p < limit)
2719 continue;
2720 *p = 0;
2721 printa(INDENT, "%s", buffer);
2722 p = buffer;
2723 }
2724
2725 *p = 0;
2726 printa(INDENT, "%s", buffer);
2727}
2728
2729
2730//____________________________________________________________

Callers 1

gen_requestFunction · 0.70

Calls 1

printaFunction · 0.70

Tested by

no test coverage detected