package uniseg
const (
prXX = 0
prAny = iota
prPrepend
prCR
prLF
prControl
prExtend
prRegionalIndicator
prSpacingMark
prL
prV
prT
prLV
prLVT
prZWJ
prExtendedPictographic
prNewline
prWSegSpace
prDoubleQuote
prSingleQuote
prMidNumLet
prNumeric
prMidLetter
prMidNum
prExtendNumLet
prALetter
prFormat
prHebrewLetter
prKatakana
prSp
prSTerm
prClose
prSContinue
prATerm
prUpper
prLower
prSep
prOLetter
prCM
prBA
prBK
prSP
prEX
prQU
prAL
prPR
prPO
prOP
prCP
prIS
prHY
prSY
prNU
prCL
prNL
prGL
prAI
prBB
prHL
prSA
prJL
prJV
prJT
prNS
prZW
prB2
prIN
prWJ
prID
prEB
prCJ
prH2
prH3
prSG
prCB
prRI
prEM
prN
prNa
prA
prW
prH
prF
prEmojiPresentation
)
const (
gcNone = iota
gcCc
gcZs
gcPo
gcSc
gcPs
gcPe
gcSm
gcPd
gcNd
gcLu
gcSk
gcPc
gcLl
gcSo
gcLo
gcPi
gcCf
gcNo
gcPf
gcLC
gcLm
gcMn
gcMe
gcMc
gcNl
gcZl
gcZp
gcCn
gcCs
gcCo
)
const (
vs15 = 0xfe0e
vs16 = 0xfe0f
)
func [ interface{ [3]int | [4]int }]( [], rune) ( ) {
:= 0
:= len()
for > {
:= ( + ) / 2
:= []
if int() < [0] {
=
continue
}
if int() > [1] {
= + 1
continue
}
return
}
return
}
func ( [][3]int, rune) int {
return propertySearch(, )[2]
}
func ( rune) (, int) {
if >= 'a' && <= 'z' {
return prAL, gcLl
}
if >= 'A' && <= 'Z' {
return prAL, gcLu
}
if >= '0' && <= '9' {
return prNU, gcNd
}
:= propertySearch(lineBreakCodePoints, )
return [2], [3]
}
func ( rune) int {
if >= 0x20 && <= 0x7e {
return prAny
}
if == 0x0a {
return prLF
}
if == 0x0d {
return prCR
}
if >= 0 && <= 0x1f || == 0x7f {
return prControl
}
return property(graphemeCodePoints, )
}
func ( rune) int {
if >= 0x20 && <= 0x7e {
return prNa
}
if >= 0 && <= 0x1f || == 0x7f {
return prN
}
return property(eastAsianWidth, )
}