MCPcopy
hub / github.com/google/go-jsonnet / stringEqual

Function stringEqual

value.go:219–231  ·  view source on GitHub ↗
(a, b valueString)

Source from the content-addressed store, hash-verified

217}
218
219func stringEqual(a, b valueString) bool {
220 runesA := a.getRunes()
221 runesB := b.getRunes()
222 if len(runesA) != len(runesB) {
223 return false
224 }
225 for i := 0; i < len(runesA); i++ {
226 if runesA[i] != runesB[i] {
227 return false
228 }
229 }
230 return true
231}
232
233func makeValueString(v string) valueString {
234 return &valueFlatString{value: []rune(v)}

Callers 2

primitiveEqualsFunction · 0.85
rawEqualsFunction · 0.85

Calls 1

getRunesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…