github.com/gotranspile/cxgo@v0.3.7/runtime/libc/wctype.go (about)

     1  package libc
     2  
     3  import (
     4  	"unicode"
     5  )
     6  
     7  type WChar = uint16
     8  
     9  func IsAlpha(c rune) bool {
    10  	if c < 0 {
    11  		return false
    12  	}
    13  	return unicode.IsLetter(c)
    14  }
    15  
    16  func IsAlnum(c rune) bool {
    17  	if c < 0 {
    18  		return false
    19  	}
    20  	return unicode.IsLetter(c) || unicode.IsNumber(c)
    21  }