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

Function quote

src/plugins/profiler/Profiler.cpp:66–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void quote(string& name)
67{
68 const char QUOTE = '"';
69
70 for (unsigned p = 0; p < name.length(); ++p)
71 {
72 if (name[p] == QUOTE)
73 {
74 name.insert(p, 1, QUOTE);
75 ++p;
76 }
77 }
78
79 name.insert(0u, 1, QUOTE);
80 name += QUOTE;
81}
82
83struct Stats
84{

Callers 1

initMethod · 0.85

Calls 2

lengthMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected