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

Method makeParseStr

src/dsql/Parser.cpp:193–208  ·  view source on GitHub ↗

Make a substring from the command text being parsed.

Source from the content-addressed store, hash-verified

191
192// Make a substring from the command text being parsed.
193string Parser::makeParseStr(const Position& p1, const Position& p2)
194{
195 const char* start = p1.leadingFirstPos;
196 const char* end = p2.trailingLastPos;
197
198 string str;
199 transformString(start, end - start, str);
200 str.trim(" \t\r\n");
201
202 string ret;
203
204 if (DataTypeUtil::convertToUTF8(str, ret))
205 return ret;
206
207 return str;
208}
209
210
211// Make parameter node.

Callers

nothing calls this directly

Calls 1

trimMethod · 0.45

Tested by

no test coverage detected