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

Function cleanNumber

gda_test.go:163–172  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

161}
162
163func cleanNumber(s string) string {
164 if len(s) > 1 && s[0] == '\'' && s[len(s)-1] == '\'' {
165 s = s[1 : len(s)-1]
166 s = strings.Replace(s, `''`, `'`, -1)
167 } else if len(s) > 1 && s[0] == '"' && s[len(s)-1] == '"' {
168 s = s[1 : len(s)-1]
169 s = strings.Replace(s, `""`, `"`, -1)
170 }
171 return s
172}
173
174// Copy ioutil.ReadDir to avoid staticcheck warning on go1.19 and above. Replace
175// with a call to os.ReadDir when we remove support for go1.15 and below.

Callers 1

ParseDecTestFunction · 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…