MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / getValueArg

Function getValueArg

dql/parser.go:1693–1695  ·  view source on GitHub ↗

getValueArg returns a space-trimmed and unquoted version of val. Returns the cleaned string, otherwise empty string and an error.

(val string)

Source from the content-addressed store, hash-verified

1691// getValueArg returns a space-trimmed and unquoted version of val.
1692// Returns the cleaned string, otherwise empty string and an error.
1693func getValueArg(val string) (string, error) {
1694 return unquoteIfQuoted(strings.TrimSpace(val))
1695}
1696
1697func validFuncName(name string) bool {
1698 if isGeoFunc(name) || IsInequalityFn(name) {

Callers 1

parseFuncArgsFunction · 0.85

Calls 1

unquoteIfQuotedFunction · 0.85

Tested by

no test coverage detected