maxLen returns the length of the longest string in s.
()
| 811 | |
| 812 | // maxLen returns the length of the longest string in s. |
| 813 | func (s stringSet) maxLen() int { |
| 814 | if len(s) == 0 { |
| 815 | return 0 |
| 816 | } |
| 817 | m := len(s[0]) |
| 818 | for _, str := range s { |
| 819 | if m < len(str) { |
| 820 | m = len(str) |
| 821 | } |
| 822 | } |
| 823 | return m |
| 824 | } |
| 825 | |
| 826 | // union returns the union of s and t, reusing s's storage. |
| 827 | func (s stringSet) union(t stringSet, isSuffix bool) stringSet { |
nothing calls this directly
no outgoing calls
no test coverage detected