MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / findSubstring

Function findSubstring

utils_test.go:241–248  ·  view source on GitHub ↗
(s, substr string)

Source from the content-addressed store, hash-verified

239}
240
241func findSubstring(s, substr string) bool {
242 for i := 0; i <= len(s)-len(substr); i++ {
243 if s[i:i+len(substr)] == substr {
244 return true
245 }
246 }
247 return false
248}

Callers 1

containsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected