MCPcopy Index your code
hub / github.com/google/codesearch / minLen

Method minLen

index/regexp.go:803–814  ·  view source on GitHub ↗

minLen returns the length of the shortest string in s.

()

Source from the content-addressed store, hash-verified

801
802// minLen returns the length of the shortest string in s.
803func (s stringSet) minLen() int {
804 if len(s) == 0 {
805 return 0
806 }
807 m := len(s[0])
808 for _, str := range s {
809 if m > len(str) {
810 m = len(str)
811 }
812 }
813 return m
814}
815
816// maxLen returns the length of the longest string in s.
817func (s stringSet) maxLen() int {

Callers 3

andTrigramsMethod · 0.80
concatFunction · 0.80
simplifyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected