fork(1) download
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "unicode/utf8"
  6. )
  7.  
  8.  
  9. func main(){
  10. fmt.Println(utf8.RuneCountInString("état"))
  11. fmt.Println(utf8.RuneCountInString("ábécé"))
  12. fmt.Println(utf8.RuneCountInString("столя́р"))
  13. fmt.Println(utf8.RuneCountInString("יָּמִֽין"))
  14. fmt.Println(utf8.RuneCountInString("देव"))
  15. fmt.Println(utf8.RuneCountInString("द्ध्र्य"))
  16. }
Success #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
5
7
8
3