Update Unicode Type args

This commit is contained in:
vcaesar 2022-02-17 12:29:18 -08:00
parent 16e0808dbd
commit 60ddc20e02

6
key.go
View File

@ -591,8 +591,12 @@ func CharCodeAt(s string, n int) rune {
}
// UnicodeType tap uint32 unicode
func UnicodeType(str uint32, pid int) {
func UnicodeType(str uint32, args ...int) {
cstr := C.uint(str)
pid := 0
if len(args) > 0 {
pid = args[0]
}
C.unicodeType(cstr, C.int32_t(pid))
}