MCPcopy Index your code
hub / github.com/microsoft/typescript-go / EquateStringCaseInsensitive

Function EquateStringCaseInsensitive

internal/stringutil/compare.go:9–13  ·  view source on GitHub ↗
(a, b string)

Source from the content-addressed store, hash-verified

7)
8
9func EquateStringCaseInsensitive(a, b string) bool {
10 // !!!
11 // return a == b || strings.ToUpper(a) == strings.ToUpper(b)
12 return strings.EqualFold(a, b)
13}
14
15func EquateStringCaseSensitive(a, b string) bool {
16 return a == b

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected