MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / parsePath

Function parsePath

source/json_tool/json_tool.cpp:213–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213JsonPath::PathPtr parsePath(String const& path) {
214 if (path.beginsWith("/"))
215 return make_shared<JsonPath::Pointer>(path);
216 return make_shared<JsonPath::QueryPath>(path);
217}
218
219pair<JsonPath::PathPtr, bool> parseGetPath(String path) {
220 // --get and --opt have a special syntax for getting the child values of

Callers 2

parseGetPathFunction · 0.85
parseArgsFunction · 0.85

Calls 1

beginsWithMethod · 0.45

Tested by

no test coverage detected