MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / is_include_directive_with_quotes

Function is_include_directive_with_quotes

deps/GraphBLAS/CUDA/jitify.hpp:477–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477inline bool is_include_directive_with_quotes(const std::string& source,
478 int line_num) {
479 // TODO: Check each find() for failure.
480 size_t beg = 0;
481 for (int i = 1; i < line_num; ++i) {
482 beg = source.find("\n", beg) + 1;
483 }
484 beg = source.find("include", beg) + 7;
485 beg = source.find_first_of("\"<", beg);
486 return source[beg] == '"';
487}
488
489inline std::string comment_out_code_line(int line_num, std::string source) {
490 size_t beg = 0;

Callers 1

load_programFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected