StrCount returns the number of runes in the specified string
(s string)
| 6 | |
| 7 | // StrCount returns the number of runes in the specified string |
| 8 | func StrCount(s string) int { |
| 9 | |
| 10 | count := 0 |
| 11 | for range s { |
| 12 | count++ |
| 13 | } |
| 14 | return count |
| 15 | } |
| 16 | |
| 17 | // StrFind returns the start and length of the rune at the |
| 18 | // specified position in the string |
no outgoing calls
no test coverage detected