Standard library / unicode
unicode.CaseRange
Inclusive range of runes with case mapping deltas indexed by UpperCase, LowerCase and TitleCase. Alternating pairs use the UpperLower marker. Expected stdout: 'a\n'.
Formal Syntax & Structure
go syntaxgo
type CaseRange struct { Lo, Hi uint32; Delta d }Working Example
Example Snippetgo
package main
import ( "fmt" "unicode")
func main() { v := unicode.CaseRange{Lo: 65, Hi: 65, Delta: [unicode.MaxCase]rune{0, 32, 0}} fmt.Println(string(rune(v.Lo) + v.Delta[unicode.LowerCase]))}