MCPcopy Create free account
hub / github.com/cockroachdb/apd / consumePrefix

Function consumePrefix

decimal.go:98–103  ·  view source on GitHub ↗
(s, prefix string)

Source from the content-addressed store, hash-verified

96}
97
98func consumePrefix(s, prefix string) (string, bool) {
99 if strings.HasPrefix(s, prefix) {
100 return s[len(prefix):], true
101 }
102 return s, false
103}
104
105func (d *Decimal) setString(c *Context, s string) (Condition, error) {
106 orig := s

Callers 1

setStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…