text
stringlengths
2
1.1M
id
stringlengths
11
117
metadata
dict
__index_level_0__
int64
0
885
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package race implements data race detection logic. // No public interface is provided. // For details about the race detector see // https://golang.org/doc/articles/race_detector.html package race //go:generate ./mkcgo.sh
go/src/runtime/race/doc.go/0
{ "file_path": "go/src/runtime/race/doc.go", "repo_id": "go", "token_count": 104 }
404
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package race_test import ( "runtime" "sync" "testing" "time" ) func TestNoRaceFin(t *testing.T) { c := make(chan bool) go func() { x := new(string) runtime.SetFinalizer(x, func(x *string) { *x = "foo" }) *x = "bar" c <- true }() <-c runtime.GC() time.Sleep(100 * time.Millisecond) } var finVar struct { sync.Mutex cnt int } func TestNoRaceFinGlobal(t *testing.T) { c := make(chan bool) go func() { x := new(string) runtime.SetFinalizer(x, func(x *string) { finVar.Lock() finVar.cnt++ finVar.Unlock() }) c <- true }() <-c runtime.GC() time.Sleep(100 * time.Millisecond) finVar.Lock() finVar.cnt++ finVar.Unlock() } func TestRaceFin(t *testing.T) { c := make(chan bool) y := 0 _ = y go func() { x := new(string) runtime.SetFinalizer(x, func(x *string) { y = 42 }) c <- true }() <-c runtime.GC() time.Sleep(100 * time.Millisecond) y = 66 }
go/src/runtime/race/testdata/finalizer_test.go/0
{ "file_path": "go/src/runtime/race/testdata/finalizer_test.go", "repo_id": "go", "token_count": 479 }
405
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package race_test import ( "testing" "time" ) func TestNoRaceAfterFunc(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } v = 2 time.AfterFunc(1, f) <-c v = 3 } func TestNoRaceAfterFuncReset(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } t := time.AfterFunc(time.Hour, f) t.Stop() v = 2 t.Reset(1) <-c v = 3 } func TestNoRaceTimer(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } v = 2 t := time.NewTimer(1) go func() { <-t.C f() }() <-c v = 3 } func TestNoRaceTimerReset(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } t := time.NewTimer(time.Hour) go func() { <-t.C f() }() t.Stop() v = 2 t.Reset(1) <-c v = 3 } func TestNoRaceTicker(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } v = 2 t := time.NewTicker(1) go func() { <-t.C f() }() <-c v = 3 } func TestNoRaceTickerReset(_ *testing.T) { v := 0 _ = v c := make(chan int) f := func() { v = 1 c <- 0 } t := time.NewTicker(time.Hour) go func() { <-t.C f() }() t.Stop() v = 2 t.Reset(1) <-c v = 3 }
go/src/runtime/race/testdata/time_test.go/0
{ "file_path": "go/src/runtime/race/testdata/time_test.go", "repo_id": "go", "token_count": 721 }
406
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" TEXT _rt0_arm64_android(SB),NOSPLIT|NOFRAME,$0 MOVD $_rt0_arm64_linux(SB), R4 B (R4) // When building with -buildmode=c-shared, this symbol is called when the shared // library is loaded. TEXT _rt0_arm64_android_lib(SB),NOSPLIT|NOFRAME,$0 MOVW $1, R0 // argc MOVD $_rt0_arm64_android_argv(SB), R1 // **argv MOVD $_rt0_arm64_linux_lib(SB), R4 B (R4) DATA _rt0_arm64_android_argv+0x00(SB)/8,$_rt0_arm64_android_argv0(SB) DATA _rt0_arm64_android_argv+0x08(SB)/8,$0 // end argv DATA _rt0_arm64_android_argv+0x10(SB)/8,$0 // end envv DATA _rt0_arm64_android_argv+0x18(SB)/8,$0 // end auxv GLOBL _rt0_arm64_android_argv(SB),NOPTR,$0x20 DATA _rt0_arm64_android_argv0(SB)/8, $"gojni" GLOBL _rt0_arm64_android_argv0(SB),RODATA,$8
go/src/runtime/rt0_android_arm64.s/0
{ "file_path": "go/src/runtime/rt0_android_arm64.s", "repo_id": "go", "token_count": 455 }
407
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" #include "cgo/abi_arm64.h" TEXT _rt0_arm64_linux(SB),NOSPLIT|NOFRAME,$0 MOVD 0(RSP), R0 // argc ADD $8, RSP, R1 // argv BL main(SB) // When building with -buildmode=c-shared, this symbol is called when the shared // library is loaded. TEXT _rt0_arm64_linux_lib(SB),NOSPLIT,$184 // Preserve callee-save registers. SAVE_R19_TO_R28(24) SAVE_F8_TO_F15(104) // Initialize g as null in case of using g later e.g. sigaction in cgo_sigaction.go MOVD ZR, g MOVD R0, _rt0_arm64_linux_lib_argc<>(SB) MOVD R1, _rt0_arm64_linux_lib_argv<>(SB) // Synchronous initialization. MOVD $runtime·libpreinit(SB), R4 BL (R4) // Create a new thread to do the runtime initialization and return. MOVD _cgo_sys_thread_create(SB), R4 CBZ R4, nocgo MOVD $_rt0_arm64_linux_lib_go(SB), R0 MOVD $0, R1 SUB $16, RSP // reserve 16 bytes for sp-8 where fp may be saved. BL (R4) ADD $16, RSP B restore nocgo: MOVD $0x800000, R0 // stacksize = 8192KB MOVD $_rt0_arm64_linux_lib_go(SB), R1 MOVD R0, 8(RSP) MOVD R1, 16(RSP) MOVD $runtime·newosproc0(SB),R4 BL (R4) restore: // Restore callee-save registers. RESTORE_R19_TO_R28(24) RESTORE_F8_TO_F15(104) RET TEXT _rt0_arm64_linux_lib_go(SB),NOSPLIT,$0 MOVD _rt0_arm64_linux_lib_argc<>(SB), R0 MOVD _rt0_arm64_linux_lib_argv<>(SB), R1 MOVD $runtime·rt0_go(SB),R4 B (R4) DATA _rt0_arm64_linux_lib_argc<>(SB)/8, $0 GLOBL _rt0_arm64_linux_lib_argc<>(SB),NOPTR, $8 DATA _rt0_arm64_linux_lib_argv<>(SB)/8, $0 GLOBL _rt0_arm64_linux_lib_argv<>(SB),NOPTR, $8 TEXT main(SB),NOSPLIT|NOFRAME,$0 MOVD $runtime·rt0_go(SB), R2 BL (R2) exit: MOVD $0, R0 MOVD $94, R8 // sys_exit SVC B exit
go/src/runtime/rt0_linux_arm64.s/0
{ "file_path": "go/src/runtime/rt0_linux_arm64.s", "repo_id": "go", "token_count": 939 }
408
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" TEXT _rt0_mips64_openbsd(SB),NOSPLIT,$0 JMP _main<>(SB) TEXT _rt0_mips64le_openbsd(SB),NOSPLIT,$0 JMP _main<>(SB) TEXT _main<>(SB),NOSPLIT|NOFRAME,$0 // In a statically linked binary, the stack contains argc, // argv as argc string pointers followed by a NULL, envv as a // sequence of string pointers followed by a NULL, and auxv. // There is no TLS base pointer. #ifdef GOARCH_mips64 MOVW 4(R29), R4 // argc, big-endian ABI places int32 at offset 4 #else MOVW 0(R29), R4 // argc #endif ADDV $8, R29, R5 // argv JMP main(SB) TEXT main(SB),NOSPLIT|NOFRAME,$0 // in external linking, glibc jumps to main with argc in R4 // and argv in R5 // initialize REGSB = PC&0xffffffff00000000 BGEZAL R0, 1(PC) SRLV $32, R31, RSB SLLV $32, RSB MOVV $runtime·rt0_go(SB), R1 JMP (R1)
go/src/runtime/rt0_openbsd_mips64.s/0
{ "file_path": "go/src/runtime/rt0_openbsd_mips64.s", "repo_id": "go", "token_count": 414 }
409
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( "internal/abi" "internal/syscall/windows" "runtime" "slices" "testing" "unsafe" ) func sehf1() int { return sehf1() } func sehf2() {} func TestSehLookupFunctionEntry(t *testing.T) { if runtime.GOARCH != "amd64" { t.Skip("skipping amd64-only test") } // This test checks that Win32 is able to retrieve // function metadata stored in the .pdata section // by the Go linker. // Win32 unwinding will fail if this test fails, // as RtlUnwindEx uses RtlLookupFunctionEntry internally. // If that's the case, don't bother investigating further, // first fix the .pdata generation. sehf1pc := abi.FuncPCABIInternal(sehf1) var fnwithframe func() fnwithframe = func() { fnwithframe() } fnwithoutframe := func() {} tests := []struct { name string pc uintptr hasframe bool }{ {"no frame func", abi.FuncPCABIInternal(sehf2), false}, {"no func", sehf1pc - 1, false}, {"func at entry", sehf1pc, true}, {"func in prologue", sehf1pc + 1, true}, {"anonymous func with frame", abi.FuncPCABIInternal(fnwithframe), true}, {"anonymous func without frame", abi.FuncPCABIInternal(fnwithoutframe), false}, {"pc at func body", runtime.NewContextStub().GetPC(), true}, } for _, tt := range tests { var base uintptr fn := windows.RtlLookupFunctionEntry(tt.pc, &base, nil) if !tt.hasframe { if fn != 0 { t.Errorf("%s: unexpected frame", tt.name) } continue } if fn == 0 { t.Errorf("%s: missing frame", tt.name) } } } func sehCallers() []uintptr { // We don't need a real context, // RtlVirtualUnwind just needs a context with // valid a pc, sp and fp (aka bp). ctx := runtime.NewContextStub() pcs := make([]uintptr, 15) var base, frame uintptr var n int for i := 0; i < len(pcs); i++ { fn := windows.RtlLookupFunctionEntry(ctx.GetPC(), &base, nil) if fn == 0 { break } pcs[i] = ctx.GetPC() n++ windows.RtlVirtualUnwind(0, base, ctx.GetPC(), fn, uintptr(unsafe.Pointer(ctx)), nil, &frame, nil) } return pcs[:n] } // SEH unwinding does not report inlined frames. // //go:noinline func sehf3(pan bool) []uintptr { return sehf4(pan) } //go:noinline func sehf4(pan bool) []uintptr { var pcs []uintptr if pan { panic("sehf4") } pcs = sehCallers() return pcs } func testSehCallersEqual(t *testing.T, pcs []uintptr, want []string) { t.Helper() got := make([]string, 0, len(want)) for _, pc := range pcs { fn := runtime.FuncForPC(pc) if fn == nil || len(got) >= len(want) { break } name := fn.Name() switch name { case "runtime.panicmem": // These functions are skipped as they appear inconsistently depending // whether inlining is on or off. continue } got = append(got, name) } if !slices.Equal(want, got) { t.Fatalf("wanted %v, got %v", want, got) } } func TestSehUnwind(t *testing.T) { if runtime.GOARCH != "amd64" { t.Skip("skipping amd64-only test") } pcs := sehf3(false) testSehCallersEqual(t, pcs, []string{"runtime_test.sehCallers", "runtime_test.sehf4", "runtime_test.sehf3", "runtime_test.TestSehUnwind"}) } func TestSehUnwindPanic(t *testing.T) { if runtime.GOARCH != "amd64" { t.Skip("skipping amd64-only test") } want := []string{"runtime_test.sehCallers", "runtime_test.TestSehUnwindPanic.func1", "runtime.gopanic", "runtime_test.sehf4", "runtime_test.sehf3", "runtime_test.TestSehUnwindPanic"} defer func() { if r := recover(); r == nil { t.Fatal("did not panic") } pcs := sehCallers() testSehCallersEqual(t, pcs, want) }() sehf3(true) } func TestSehUnwindDoublePanic(t *testing.T) { if runtime.GOARCH != "amd64" { t.Skip("skipping amd64-only test") } want := []string{"runtime_test.sehCallers", "runtime_test.TestSehUnwindDoublePanic.func1.1", "runtime.gopanic", "runtime_test.TestSehUnwindDoublePanic.func1", "runtime.gopanic", "runtime_test.TestSehUnwindDoublePanic"} defer func() { defer func() { if recover() == nil { t.Fatal("did not panic") } pcs := sehCallers() testSehCallersEqual(t, pcs, want) }() if recover() == nil { t.Fatal("did not panic") } panic(2) }() panic(1) } func TestSehUnwindNilPointerPanic(t *testing.T) { if runtime.GOARCH != "amd64" { t.Skip("skipping amd64-only test") } want := []string{"runtime_test.sehCallers", "runtime_test.TestSehUnwindNilPointerPanic.func1", "runtime.gopanic", "runtime.sigpanic", "runtime_test.TestSehUnwindNilPointerPanic"} defer func() { if r := recover(); r == nil { t.Fatal("did not panic") } pcs := sehCallers() testSehCallersEqual(t, pcs, want) }() var p *int if *p == 3 { t.Fatal("did not see nil pointer panic") } }
go/src/runtime/runtime-seh_windows_test.go/0
{ "file_path": "go/src/runtime/runtime-seh_windows_test.go", "repo_id": "go", "token_count": 2008 }
410
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix package runtime import ( "internal/stringslite" ) func secure() { initSecureMode() if !isSecureMode() { return } // When secure mode is enabled, we do one thing: enforce specific // environment variable values (currently we only force GOTRACEBACK=none) // // Other packages may also disable specific functionality when secure mode // is enabled (determined by using linkname to call isSecureMode). secureEnv() } func secureEnv() { var hasTraceback bool for i := 0; i < len(envs); i++ { if stringslite.HasPrefix(envs[i], "GOTRACEBACK=") { hasTraceback = true envs[i] = "GOTRACEBACK=none" } } if !hasTraceback { envs = append(envs, "GOTRACEBACK=none") } }
go/src/runtime/security_unix.go/0
{ "file_path": "go/src/runtime/security_unix.go", "repo_id": "go", "token_count": 299 }
411
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux && loong64 package runtime import ( "internal/abi" "internal/goarch" "unsafe" ) func dumpregs(c *sigctxt) { print("r0 ", hex(c.r0()), "\t") print("r1 ", hex(c.r1()), "\n") print("r2 ", hex(c.r2()), "\t") print("r3 ", hex(c.r3()), "\n") print("r4 ", hex(c.r4()), "\t") print("r5 ", hex(c.r5()), "\n") print("r6 ", hex(c.r6()), "\t") print("r7 ", hex(c.r7()), "\n") print("r8 ", hex(c.r8()), "\t") print("r9 ", hex(c.r9()), "\n") print("r10 ", hex(c.r10()), "\t") print("r11 ", hex(c.r11()), "\n") print("r12 ", hex(c.r12()), "\t") print("r13 ", hex(c.r13()), "\n") print("r14 ", hex(c.r14()), "\t") print("r15 ", hex(c.r15()), "\n") print("r16 ", hex(c.r16()), "\t") print("r17 ", hex(c.r17()), "\n") print("r18 ", hex(c.r18()), "\t") print("r19 ", hex(c.r19()), "\n") print("r20 ", hex(c.r20()), "\t") print("r21 ", hex(c.r21()), "\n") print("r22 ", hex(c.r22()), "\t") print("r23 ", hex(c.r23()), "\n") print("r24 ", hex(c.r24()), "\t") print("r25 ", hex(c.r25()), "\n") print("r26 ", hex(c.r26()), "\t") print("r27 ", hex(c.r27()), "\n") print("r28 ", hex(c.r28()), "\t") print("r29 ", hex(c.r29()), "\n") print("r30 ", hex(c.r30()), "\t") print("r31 ", hex(c.r31()), "\n") print("pc ", hex(c.pc()), "\t") print("link ", hex(c.link()), "\n") } //go:nosplit //go:nowritebarrierrec func (c *sigctxt) sigpc() uintptr { return uintptr(c.pc()) } func (c *sigctxt) sigsp() uintptr { return uintptr(c.sp()) } func (c *sigctxt) siglr() uintptr { return uintptr(c.link()) } func (c *sigctxt) fault() uintptr { return uintptr(c.sigaddr()) } // preparePanic sets up the stack to look like a call to sigpanic. func (c *sigctxt) preparePanic(sig uint32, gp *g) { // We arrange link, and pc to pretend the panicking // function calls sigpanic directly. // Always save LINK to stack so that panics in leaf // functions are correctly handled. This smashes // the stack frame but we're not going back there // anyway. sp := c.sp() - goarch.PtrSize c.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link() pc := gp.sigpc if shouldPushSigpanic(gp, pc, uintptr(c.link())) { // Make it look the like faulting PC called sigpanic. c.set_link(uint64(pc)) } // In case we are panicking from external C code c.set_r22(uint64(uintptr(unsafe.Pointer(gp)))) c.set_pc(uint64(abi.FuncPCABIInternal(sigpanic))) } func (c *sigctxt) pushCall(targetPC, resumePC uintptr) { // Push the LR to stack, as we'll clobber it in order to // push the call. The function being pushed is responsible // for restoring the LR and setting the SP back. // This extra slot is known to gentraceback. sp := c.sp() - 8 c.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link() // Set up PC and LR to pretend the function being signaled // calls targetPC at resumePC. c.set_link(uint64(resumePC)) c.set_pc(uint64(targetPC)) }
go/src/runtime/signal_loong64.go/0
{ "file_path": "go/src/runtime/signal_loong64.go", "repo_id": "go", "token_count": 1331 }
412
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime type sigTabT struct { flags int name string } // Incoming notes are compared against this table using strncmp, so the // order matters: longer patterns must appear before their prefixes. // There are _SIG constants in os2_plan9.go for the table index of some // of these. // // If you add entries to this table, you must respect the prefix ordering // and also update the constant values is os2_plan9.go. var sigtable = [...]sigTabT{ // Traps that we cannot be recovered. {_SigThrow, "sys: trap: debug exception"}, {_SigThrow, "sys: trap: invalid opcode"}, // We can recover from some memory errors in runtime·sigpanic. {_SigPanic, "sys: trap: fault read"}, // SIGRFAULT {_SigPanic, "sys: trap: fault write"}, // SIGWFAULT // We can also recover from math errors. {_SigPanic, "sys: trap: divide error"}, // SIGINTDIV {_SigPanic, "sys: fp:"}, // SIGFLOAT // All other traps are normally handled as if they were marked SigThrow. // We mark them SigPanic here so that debug.SetPanicOnFault will work. {_SigPanic, "sys: trap:"}, // SIGTRAP // Writes to a closed pipe can be handled if desired, otherwise they're ignored. {_SigNotify, "sys: write on closed pipe"}, // Other system notes are more serious and cannot be recovered. {_SigThrow, "sys:"}, // Issued to all other procs when calling runtime·exit. {_SigGoExit, "go: exit "}, // Kill is sent by external programs to cause an exit. {_SigKill, "kill"}, // Interrupts can be handled if desired, otherwise they cause an exit. {_SigNotify + _SigKill, "interrupt"}, {_SigNotify + _SigKill, "hangup"}, // Alarms can be handled if desired, otherwise they're ignored. {_SigNotify, "alarm"}, // Aborts can be handled if desired, otherwise they cause a stack trace. {_SigNotify + _SigThrow, "abort"}, }
go/src/runtime/signal_plan9.go/0
{ "file_path": "go/src/runtime/signal_plan9.go", "repo_id": "go", "token_count": 638 }
413
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import ( "internal/abi" "internal/goarch" "internal/runtime/math" "internal/runtime/sys" "unsafe" ) type slice struct { array unsafe.Pointer len int cap int } // A notInHeapSlice is a slice backed by internal/runtime/sys.NotInHeap memory. type notInHeapSlice struct { array *notInHeap len int cap int } func panicmakeslicelen() { panic(errorString("makeslice: len out of range")) } func panicmakeslicecap() { panic(errorString("makeslice: cap out of range")) } // makeslicecopy allocates a slice of "tolen" elements of type "et", // then copies "fromlen" elements of type "et" into that new allocation from "from". func makeslicecopy(et *_type, tolen int, fromlen int, from unsafe.Pointer) unsafe.Pointer { var tomem, copymem uintptr if uintptr(tolen) > uintptr(fromlen) { var overflow bool tomem, overflow = math.MulUintptr(et.Size_, uintptr(tolen)) if overflow || tomem > maxAlloc || tolen < 0 { panicmakeslicelen() } copymem = et.Size_ * uintptr(fromlen) } else { // fromlen is a known good length providing and equal or greater than tolen, // thereby making tolen a good slice length too as from and to slices have the // same element width. tomem = et.Size_ * uintptr(tolen) copymem = tomem } var to unsafe.Pointer if !et.Pointers() { to = mallocgc(tomem, nil, false) if copymem < tomem { memclrNoHeapPointers(add(to, copymem), tomem-copymem) } } else { // Note: can't use rawmem (which avoids zeroing of memory), because then GC can scan uninitialized memory. to = mallocgc(tomem, et, true) if copymem > 0 && writeBarrier.enabled { // Only shade the pointers in old.array since we know the destination slice to // only contains nil pointers because it has been cleared during alloc. // // It's safe to pass a type to this function as an optimization because // from and to only ever refer to memory representing whole values of // type et. See the comment on bulkBarrierPreWrite. bulkBarrierPreWriteSrcOnly(uintptr(to), uintptr(from), copymem, et) } } if raceenabled { callerpc := getcallerpc() pc := abi.FuncPCABIInternal(makeslicecopy) racereadrangepc(from, copymem, callerpc, pc) } if msanenabled { msanread(from, copymem) } if asanenabled { asanread(from, copymem) } memmove(to, from, copymem) return to } // makeslice should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/bytedance/sonic // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname makeslice func makeslice(et *_type, len, cap int) unsafe.Pointer { mem, overflow := math.MulUintptr(et.Size_, uintptr(cap)) if overflow || mem > maxAlloc || len < 0 || len > cap { // NOTE: Produce a 'len out of range' error instead of a // 'cap out of range' error when someone does make([]T, bignumber). // 'cap out of range' is true too, but since the cap is only being // supplied implicitly, saying len is clearer. // See golang.org/issue/4085. mem, overflow := math.MulUintptr(et.Size_, uintptr(len)) if overflow || mem > maxAlloc || len < 0 { panicmakeslicelen() } panicmakeslicecap() } return mallocgc(mem, et, true) } func makeslice64(et *_type, len64, cap64 int64) unsafe.Pointer { len := int(len64) if int64(len) != len64 { panicmakeslicelen() } cap := int(cap64) if int64(cap) != cap64 { panicmakeslicecap() } return makeslice(et, len, cap) } // growslice allocates new backing store for a slice. // // arguments: // // oldPtr = pointer to the slice's backing array // newLen = new length (= oldLen + num) // oldCap = original slice's capacity. // num = number of elements being added // et = element type // // return values: // // newPtr = pointer to the new backing store // newLen = same value as the argument // newCap = capacity of the new backing store // // Requires that uint(newLen) > uint(oldCap). // Assumes the original slice length is newLen - num // // A new backing store is allocated with space for at least newLen elements. // Existing entries [0, oldLen) are copied over to the new backing store. // Added entries [oldLen, newLen) are not initialized by growslice // (although for pointer-containing element types, they are zeroed). They // must be initialized by the caller. // Trailing entries [newLen, newCap) are zeroed. // // growslice's odd calling convention makes the generated code that calls // this function simpler. In particular, it accepts and returns the // new length so that the old length is not live (does not need to be // spilled/restored) and the new length is returned (also does not need // to be spilled/restored). // // growslice should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/bytedance/sonic // - github.com/chenzhuoyu/iasm // - github.com/cloudwego/dynamicgo // - github.com/ugorji/go/codec // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname growslice func growslice(oldPtr unsafe.Pointer, newLen, oldCap, num int, et *_type) slice { oldLen := newLen - num if raceenabled { callerpc := getcallerpc() racereadrangepc(oldPtr, uintptr(oldLen*int(et.Size_)), callerpc, abi.FuncPCABIInternal(growslice)) } if msanenabled { msanread(oldPtr, uintptr(oldLen*int(et.Size_))) } if asanenabled { asanread(oldPtr, uintptr(oldLen*int(et.Size_))) } if newLen < 0 { panic(errorString("growslice: len out of range")) } if et.Size_ == 0 { // append should not create a slice with nil pointer but non-zero len. // We assume that append doesn't need to preserve oldPtr in this case. return slice{unsafe.Pointer(&zerobase), newLen, newLen} } newcap := nextslicecap(newLen, oldCap) var overflow bool var lenmem, newlenmem, capmem uintptr // Specialize for common values of et.Size. // For 1 we don't need any division/multiplication. // For goarch.PtrSize, compiler will optimize division/multiplication into a shift by a constant. // For powers of 2, use a variable shift. noscan := !et.Pointers() switch { case et.Size_ == 1: lenmem = uintptr(oldLen) newlenmem = uintptr(newLen) capmem = roundupsize(uintptr(newcap), noscan) overflow = uintptr(newcap) > maxAlloc newcap = int(capmem) case et.Size_ == goarch.PtrSize: lenmem = uintptr(oldLen) * goarch.PtrSize newlenmem = uintptr(newLen) * goarch.PtrSize capmem = roundupsize(uintptr(newcap)*goarch.PtrSize, noscan) overflow = uintptr(newcap) > maxAlloc/goarch.PtrSize newcap = int(capmem / goarch.PtrSize) case isPowerOfTwo(et.Size_): var shift uintptr if goarch.PtrSize == 8 { // Mask shift for better code generation. shift = uintptr(sys.TrailingZeros64(uint64(et.Size_))) & 63 } else { shift = uintptr(sys.TrailingZeros32(uint32(et.Size_))) & 31 } lenmem = uintptr(oldLen) << shift newlenmem = uintptr(newLen) << shift capmem = roundupsize(uintptr(newcap)<<shift, noscan) overflow = uintptr(newcap) > (maxAlloc >> shift) newcap = int(capmem >> shift) capmem = uintptr(newcap) << shift default: lenmem = uintptr(oldLen) * et.Size_ newlenmem = uintptr(newLen) * et.Size_ capmem, overflow = math.MulUintptr(et.Size_, uintptr(newcap)) capmem = roundupsize(capmem, noscan) newcap = int(capmem / et.Size_) capmem = uintptr(newcap) * et.Size_ } // The check of overflow in addition to capmem > maxAlloc is needed // to prevent an overflow which can be used to trigger a segfault // on 32bit architectures with this example program: // // type T [1<<27 + 1]int64 // // var d T // var s []T // // func main() { // s = append(s, d, d, d, d) // print(len(s), "\n") // } if overflow || capmem > maxAlloc { panic(errorString("growslice: len out of range")) } var p unsafe.Pointer if !et.Pointers() { p = mallocgc(capmem, nil, false) // The append() that calls growslice is going to overwrite from oldLen to newLen. // Only clear the part that will not be overwritten. // The reflect_growslice() that calls growslice will manually clear // the region not cleared here. memclrNoHeapPointers(add(p, newlenmem), capmem-newlenmem) } else { // Note: can't use rawmem (which avoids zeroing of memory), because then GC can scan uninitialized memory. p = mallocgc(capmem, et, true) if lenmem > 0 && writeBarrier.enabled { // Only shade the pointers in oldPtr since we know the destination slice p // only contains nil pointers because it has been cleared during alloc. // // It's safe to pass a type to this function as an optimization because // from and to only ever refer to memory representing whole values of // type et. See the comment on bulkBarrierPreWrite. bulkBarrierPreWriteSrcOnly(uintptr(p), uintptr(oldPtr), lenmem-et.Size_+et.PtrBytes, et) } } memmove(p, oldPtr, lenmem) return slice{p, newLen, newcap} } // nextslicecap computes the next appropriate slice length. func nextslicecap(newLen, oldCap int) int { newcap := oldCap doublecap := newcap + newcap if newLen > doublecap { return newLen } const threshold = 256 if oldCap < threshold { return doublecap } for { // Transition from growing 2x for small slices // to growing 1.25x for large slices. This formula // gives a smooth-ish transition between the two. newcap += (newcap + 3*threshold) >> 2 // We need to check `newcap >= newLen` and whether `newcap` overflowed. // newLen is guaranteed to be larger than zero, hence // when newcap overflows then `uint(newcap) > uint(newLen)`. // This allows to check for both with the same comparison. if uint(newcap) >= uint(newLen) { break } } // Set newcap to the requested cap when // the newcap calculation overflowed. if newcap <= 0 { return newLen } return newcap } // reflect_growslice should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/cloudwego/dynamicgo // // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname reflect_growslice reflect.growslice func reflect_growslice(et *_type, old slice, num int) slice { // Semantically equivalent to slices.Grow, except that the caller // is responsible for ensuring that old.len+num > old.cap. num -= old.cap - old.len // preserve memory of old[old.len:old.cap] new := growslice(old.array, old.cap+num, old.cap, num, et) // growslice does not zero out new[old.cap:new.len] since it assumes that // the memory will be overwritten by an append() that called growslice. // Since the caller of reflect_growslice is not append(), // zero out this region before returning the slice to the reflect package. if !et.Pointers() { oldcapmem := uintptr(old.cap) * et.Size_ newlenmem := uintptr(new.len) * et.Size_ memclrNoHeapPointers(add(new.array, oldcapmem), newlenmem-oldcapmem) } new.len = old.len // preserve the old length return new } func isPowerOfTwo(x uintptr) bool { return x&(x-1) == 0 } // slicecopy is used to copy from a string or slice of pointerless elements into a slice. func slicecopy(toPtr unsafe.Pointer, toLen int, fromPtr unsafe.Pointer, fromLen int, width uintptr) int { if fromLen == 0 || toLen == 0 { return 0 } n := fromLen if toLen < n { n = toLen } if width == 0 { return n } size := uintptr(n) * width if raceenabled { callerpc := getcallerpc() pc := abi.FuncPCABIInternal(slicecopy) racereadrangepc(fromPtr, size, callerpc, pc) racewriterangepc(toPtr, size, callerpc, pc) } if msanenabled { msanread(fromPtr, size) msanwrite(toPtr, size) } if asanenabled { asanread(fromPtr, size) asanwrite(toPtr, size) } if size == 1 { // common case worth about 2x to do here // TODO: is this still worth it with new memmove impl? *(*byte)(toPtr) = *(*byte)(fromPtr) // known to be a byte pointer } else { memmove(toPtr, fromPtr, size) } return n } //go:linkname bytealg_MakeNoZero internal/bytealg.MakeNoZero func bytealg_MakeNoZero(len int) []byte { if uintptr(len) > maxAlloc { panicmakeslicelen() } cap := roundupsize(uintptr(len), true) return unsafe.Slice((*byte)(mallocgc(uintptr(cap), nil, false)), cap)[:len] }
go/src/runtime/slice.go/0
{ "file_path": "go/src/runtime/slice.go", "repo_id": "go", "token_count": 4364 }
414
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import "unsafe" // Called from compiler-generated code; declared for go vet. func udiv() func _div() func _divu() func _mod() func _modu() // Called from assembly only; declared for go vet. func usplitR0() func load_g() func save_g() func emptyfunc() func _initcgo() func read_tls_fallback() //go:noescape func asmcgocall_no_g(fn, arg unsafe.Pointer) // getfp returns the frame pointer register of its caller or 0 if not implemented. // TODO: Make this a compiler intrinsic func getfp() uintptr { return 0 }
go/src/runtime/stubs_arm.go/0
{ "file_path": "go/src/runtime/stubs_arm.go", "repo_id": "go", "token_count": 216 }
415
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // System calls and other sys.stuff for arm64, Linux // #include "go_asm.h" #include "go_tls.h" #include "textflag.h" #include "cgo/abi_arm64.h" #define AT_FDCWD -100 #define CLOCK_REALTIME 0 #define CLOCK_MONOTONIC 1 #define SYS_exit 93 #define SYS_read 63 #define SYS_write 64 #define SYS_openat 56 #define SYS_close 57 #define SYS_pipe2 59 #define SYS_nanosleep 101 #define SYS_mmap 222 #define SYS_munmap 215 #define SYS_setitimer 103 #define SYS_clone 220 #define SYS_sched_yield 124 #define SYS_rt_sigreturn 139 #define SYS_rt_sigaction 134 #define SYS_rt_sigprocmask 135 #define SYS_sigaltstack 132 #define SYS_madvise 233 #define SYS_mincore 232 #define SYS_getpid 172 #define SYS_gettid 178 #define SYS_kill 129 #define SYS_tgkill 131 #define SYS_futex 98 #define SYS_sched_getaffinity 123 #define SYS_exit_group 94 #define SYS_clock_gettime 113 #define SYS_faccessat 48 #define SYS_socket 198 #define SYS_connect 203 #define SYS_brk 214 #define SYS_timer_create 107 #define SYS_timer_settime 110 #define SYS_timer_delete 111 TEXT runtime·exit(SB),NOSPLIT|NOFRAME,$0-4 MOVW code+0(FP), R0 MOVD $SYS_exit_group, R8 SVC RET // func exitThread(wait *atomic.Uint32) TEXT runtime·exitThread(SB),NOSPLIT|NOFRAME,$0-8 MOVD wait+0(FP), R0 // We're done using the stack. MOVW $0, R1 STLRW R1, (R0) MOVW $0, R0 // exit code MOVD $SYS_exit, R8 SVC JMP 0(PC) TEXT runtime·open(SB),NOSPLIT|NOFRAME,$0-20 MOVD $AT_FDCWD, R0 MOVD name+0(FP), R1 MOVW mode+8(FP), R2 MOVW perm+12(FP), R3 MOVD $SYS_openat, R8 SVC CMN $4095, R0 BCC done MOVW $-1, R0 done: MOVW R0, ret+16(FP) RET TEXT runtime·closefd(SB),NOSPLIT|NOFRAME,$0-12 MOVW fd+0(FP), R0 MOVD $SYS_close, R8 SVC CMN $4095, R0 BCC done MOVW $-1, R0 done: MOVW R0, ret+8(FP) RET TEXT runtime·write1(SB),NOSPLIT|NOFRAME,$0-28 MOVD fd+0(FP), R0 MOVD p+8(FP), R1 MOVW n+16(FP), R2 MOVD $SYS_write, R8 SVC MOVW R0, ret+24(FP) RET TEXT runtime·read(SB),NOSPLIT|NOFRAME,$0-28 MOVW fd+0(FP), R0 MOVD p+8(FP), R1 MOVW n+16(FP), R2 MOVD $SYS_read, R8 SVC MOVW R0, ret+24(FP) RET // func pipe2(flags int32) (r, w int32, errno int32) TEXT runtime·pipe2(SB),NOSPLIT|NOFRAME,$0-20 MOVD $r+8(FP), R0 MOVW flags+0(FP), R1 MOVW $SYS_pipe2, R8 SVC MOVW R0, errno+16(FP) RET TEXT runtime·usleep(SB),NOSPLIT,$24-4 MOVWU usec+0(FP), R3 MOVD R3, R5 MOVW $1000000, R4 UDIV R4, R3 MOVD R3, 8(RSP) MUL R3, R4 SUB R4, R5 MOVW $1000, R4 MUL R4, R5 MOVD R5, 16(RSP) // nanosleep(&ts, 0) ADD $8, RSP, R0 MOVD $0, R1 MOVD $SYS_nanosleep, R8 SVC RET TEXT runtime·gettid(SB),NOSPLIT,$0-4 MOVD $SYS_gettid, R8 SVC MOVW R0, ret+0(FP) RET TEXT runtime·raise(SB),NOSPLIT|NOFRAME,$0 MOVD $SYS_getpid, R8 SVC MOVW R0, R19 MOVD $SYS_gettid, R8 SVC MOVW R0, R1 // arg 2 tid MOVW R19, R0 // arg 1 pid MOVW sig+0(FP), R2 // arg 3 MOVD $SYS_tgkill, R8 SVC RET TEXT runtime·raiseproc(SB),NOSPLIT|NOFRAME,$0 MOVD $SYS_getpid, R8 SVC MOVW R0, R0 // arg 1 pid MOVW sig+0(FP), R1 // arg 2 MOVD $SYS_kill, R8 SVC RET TEXT ·getpid(SB),NOSPLIT|NOFRAME,$0-8 MOVD $SYS_getpid, R8 SVC MOVD R0, ret+0(FP) RET TEXT ·tgkill(SB),NOSPLIT,$0-24 MOVD tgid+0(FP), R0 MOVD tid+8(FP), R1 MOVD sig+16(FP), R2 MOVD $SYS_tgkill, R8 SVC RET TEXT runtime·setitimer(SB),NOSPLIT|NOFRAME,$0-24 MOVW mode+0(FP), R0 MOVD new+8(FP), R1 MOVD old+16(FP), R2 MOVD $SYS_setitimer, R8 SVC RET TEXT runtime·timer_create(SB),NOSPLIT,$0-28 MOVW clockid+0(FP), R0 MOVD sevp+8(FP), R1 MOVD timerid+16(FP), R2 MOVD $SYS_timer_create, R8 SVC MOVW R0, ret+24(FP) RET TEXT runtime·timer_settime(SB),NOSPLIT,$0-28 MOVW timerid+0(FP), R0 MOVW flags+4(FP), R1 MOVD new+8(FP), R2 MOVD old+16(FP), R3 MOVD $SYS_timer_settime, R8 SVC MOVW R0, ret+24(FP) RET TEXT runtime·timer_delete(SB),NOSPLIT,$0-12 MOVW timerid+0(FP), R0 MOVD $SYS_timer_delete, R8 SVC MOVW R0, ret+8(FP) RET TEXT runtime·mincore(SB),NOSPLIT|NOFRAME,$0-28 MOVD addr+0(FP), R0 MOVD n+8(FP), R1 MOVD dst+16(FP), R2 MOVD $SYS_mincore, R8 SVC MOVW R0, ret+24(FP) RET // func walltime() (sec int64, nsec int32) TEXT runtime·walltime(SB),NOSPLIT,$24-12 MOVD RSP, R20 // R20 is unchanged by C code MOVD RSP, R1 MOVD g_m(g), R21 // R21 = m // Set vdsoPC and vdsoSP for SIGPROF traceback. // Save the old values on stack and restore them on exit, // so this function is reentrant. MOVD m_vdsoPC(R21), R2 MOVD m_vdsoSP(R21), R3 MOVD R2, 8(RSP) MOVD R3, 16(RSP) MOVD $ret-8(FP), R2 // caller's SP MOVD LR, m_vdsoPC(R21) MOVD R2, m_vdsoSP(R21) MOVD m_curg(R21), R0 CMP g, R0 BNE noswitch MOVD m_g0(R21), R3 MOVD (g_sched+gobuf_sp)(R3), R1 // Set RSP to g0 stack noswitch: SUB $16, R1 BIC $15, R1 // Align for C code MOVD R1, RSP MOVW $CLOCK_REALTIME, R0 MOVD runtime·vdsoClockgettimeSym(SB), R2 CBZ R2, fallback // Store g on gsignal's stack, so if we receive a signal // during VDSO code we can find the g. // If we don't have a signal stack, we won't receive signal, // so don't bother saving g. // When using cgo, we already saved g on TLS, also don't save // g here. // Also don't save g if we are already on the signal stack. // We won't get a nested signal. MOVBU runtime·iscgo(SB), R22 CBNZ R22, nosaveg MOVD m_gsignal(R21), R22 // g.m.gsignal CBZ R22, nosaveg CMP g, R22 BEQ nosaveg MOVD (g_stack+stack_lo)(R22), R22 // g.m.gsignal.stack.lo MOVD g, (R22) BL (R2) MOVD ZR, (R22) // clear g slot, R22 is unchanged by C code B finish nosaveg: BL (R2) B finish fallback: MOVD $SYS_clock_gettime, R8 SVC finish: MOVD 0(RSP), R3 // sec MOVD 8(RSP), R5 // nsec MOVD R20, RSP // restore SP // Restore vdsoPC, vdsoSP // We don't worry about being signaled between the two stores. // If we are not in a signal handler, we'll restore vdsoSP to 0, // and no one will care about vdsoPC. If we are in a signal handler, // we cannot receive another signal. MOVD 16(RSP), R1 MOVD R1, m_vdsoSP(R21) MOVD 8(RSP), R1 MOVD R1, m_vdsoPC(R21) MOVD R3, sec+0(FP) MOVW R5, nsec+8(FP) RET TEXT runtime·nanotime1(SB),NOSPLIT,$24-8 MOVD RSP, R20 // R20 is unchanged by C code MOVD RSP, R1 MOVD g_m(g), R21 // R21 = m // Set vdsoPC and vdsoSP for SIGPROF traceback. // Save the old values on stack and restore them on exit, // so this function is reentrant. MOVD m_vdsoPC(R21), R2 MOVD m_vdsoSP(R21), R3 MOVD R2, 8(RSP) MOVD R3, 16(RSP) MOVD $ret-8(FP), R2 // caller's SP MOVD LR, m_vdsoPC(R21) MOVD R2, m_vdsoSP(R21) MOVD m_curg(R21), R0 CMP g, R0 BNE noswitch MOVD m_g0(R21), R3 MOVD (g_sched+gobuf_sp)(R3), R1 // Set RSP to g0 stack noswitch: SUB $32, R1 BIC $15, R1 MOVD R1, RSP MOVW $CLOCK_MONOTONIC, R0 MOVD runtime·vdsoClockgettimeSym(SB), R2 CBZ R2, fallback // Store g on gsignal's stack, so if we receive a signal // during VDSO code we can find the g. // If we don't have a signal stack, we won't receive signal, // so don't bother saving g. // When using cgo, we already saved g on TLS, also don't save // g here. // Also don't save g if we are already on the signal stack. // We won't get a nested signal. MOVBU runtime·iscgo(SB), R22 CBNZ R22, nosaveg MOVD m_gsignal(R21), R22 // g.m.gsignal CBZ R22, nosaveg CMP g, R22 BEQ nosaveg MOVD (g_stack+stack_lo)(R22), R22 // g.m.gsignal.stack.lo MOVD g, (R22) BL (R2) MOVD ZR, (R22) // clear g slot, R22 is unchanged by C code B finish nosaveg: BL (R2) B finish fallback: MOVD $SYS_clock_gettime, R8 SVC finish: MOVD 0(RSP), R3 // sec MOVD 8(RSP), R5 // nsec MOVD R20, RSP // restore SP // Restore vdsoPC, vdsoSP // We don't worry about being signaled between the two stores. // If we are not in a signal handler, we'll restore vdsoSP to 0, // and no one will care about vdsoPC. If we are in a signal handler, // we cannot receive another signal. MOVD 16(RSP), R1 MOVD R1, m_vdsoSP(R21) MOVD 8(RSP), R1 MOVD R1, m_vdsoPC(R21) // sec is in R3, nsec in R5 // return nsec in R3 MOVD $1000000000, R4 MUL R4, R3 ADD R5, R3 MOVD R3, ret+0(FP) RET TEXT runtime·rtsigprocmask(SB),NOSPLIT|NOFRAME,$0-28 MOVW how+0(FP), R0 MOVD new+8(FP), R1 MOVD old+16(FP), R2 MOVW size+24(FP), R3 MOVD $SYS_rt_sigprocmask, R8 SVC CMN $4095, R0 BCC done MOVD $0, R0 MOVD R0, (R0) // crash done: RET TEXT runtime·rt_sigaction(SB),NOSPLIT|NOFRAME,$0-36 MOVD sig+0(FP), R0 MOVD new+8(FP), R1 MOVD old+16(FP), R2 MOVD size+24(FP), R3 MOVD $SYS_rt_sigaction, R8 SVC MOVW R0, ret+32(FP) RET // Call the function stored in _cgo_sigaction using the GCC calling convention. TEXT runtime·callCgoSigaction(SB),NOSPLIT,$0 MOVD sig+0(FP), R0 MOVD new+8(FP), R1 MOVD old+16(FP), R2 MOVD _cgo_sigaction(SB), R3 SUB $16, RSP // reserve 16 bytes for sp-8 where fp may be saved. BL R3 ADD $16, RSP MOVW R0, ret+24(FP) RET TEXT runtime·sigfwd(SB),NOSPLIT,$0-32 MOVW sig+8(FP), R0 MOVD info+16(FP), R1 MOVD ctx+24(FP), R2 MOVD fn+0(FP), R11 BL (R11) RET // Called from c-abi, R0: sig, R1: info, R2: cxt TEXT runtime·sigtramp(SB),NOSPLIT|TOPFRAME,$176 // Save callee-save registers in the case of signal forwarding. // Please refer to https://golang.org/issue/31827 . SAVE_R19_TO_R28(8*4) SAVE_F8_TO_F15(8*14) // this might be called in external code context, // where g is not set. // first save R0, because runtime·load_g will clobber it MOVW R0, 8(RSP) MOVBU runtime·iscgo(SB), R0 CBZ R0, 2(PC) BL runtime·load_g(SB) // Restore signum to R0. MOVW 8(RSP), R0 // R1 and R2 already contain info and ctx, respectively. MOVD $runtime·sigtrampgo<ABIInternal>(SB), R3 BL (R3) // Restore callee-save registers. RESTORE_R19_TO_R28(8*4) RESTORE_F8_TO_F15(8*14) RET // Called from c-abi, R0: sig, R1: info, R2: cxt TEXT runtime·sigprofNonGoWrapper<>(SB),NOSPLIT,$176 // Save callee-save registers because it's a callback from c code. SAVE_R19_TO_R28(8*4) SAVE_F8_TO_F15(8*14) // R0, R1 and R2 already contain sig, info and ctx, respectively. CALL runtime·sigprofNonGo<ABIInternal>(SB) // Restore callee-save registers. RESTORE_R19_TO_R28(8*4) RESTORE_F8_TO_F15(8*14) RET // Called from c-abi, R0: sig, R1: info, R2: cxt TEXT runtime·cgoSigtramp(SB),NOSPLIT|NOFRAME,$0 // The stack unwinder, presumably written in C, may not be able to // handle Go frame correctly. So, this function is NOFRAME, and we // save/restore LR manually. MOVD LR, R10 // Save R27, g because they will be clobbered, // we need to restore them before jump to sigtramp. MOVD R27, R11 MOVD g, R12 // If no traceback function, do usual sigtramp. MOVD runtime·cgoTraceback(SB), R6 CBZ R6, sigtramp // If no traceback support function, which means that // runtime/cgo was not linked in, do usual sigtramp. MOVD _cgo_callers(SB), R7 CBZ R7, sigtramp // Figure out if we are currently in a cgo call. // If not, just do usual sigtramp. // first save R0, because runtime·load_g will clobber it. MOVD R0, R8 // Set up g register. CALL runtime·load_g(SB) MOVD R8, R0 CBZ g, sigtrampnog // g == nil MOVD g_m(g), R6 CBZ R6, sigtramp // g.m == nil MOVW m_ncgo(R6), R7 CBZW R7, sigtramp // g.m.ncgo = 0 MOVD m_curg(R6), R8 CBZ R8, sigtramp // g.m.curg == nil MOVD g_syscallsp(R8), R7 CBZ R7, sigtramp // g.m.curg.syscallsp == 0 MOVD m_cgoCallers(R6), R4 // R4 is the fifth arg in C calling convention. CBZ R4, sigtramp // g.m.cgoCallers == nil MOVW m_cgoCallersUse(R6), R8 CBNZW R8, sigtramp // g.m.cgoCallersUse != 0 // Jump to a function in runtime/cgo. // That function, written in C, will call the user's traceback // function with proper unwind info, and will then call back here. // The first three arguments, and the fifth, are already in registers. // Set the two remaining arguments now. MOVD runtime·cgoTraceback(SB), R3 MOVD $runtime·sigtramp(SB), R5 MOVD _cgo_callers(SB), R13 MOVD R10, LR // restore MOVD R11, R27 MOVD R12, g B (R13) sigtramp: MOVD R10, LR // restore MOVD R11, R27 MOVD R12, g B runtime·sigtramp(SB) sigtrampnog: // Signal arrived on a non-Go thread. If this is SIGPROF, get a // stack trace. CMPW $27, R0 // 27 == SIGPROF BNE sigtramp // Lock sigprofCallersUse (cas from 0 to 1). MOVW $1, R7 MOVD $runtime·sigprofCallersUse(SB), R8 load_store_loop: LDAXRW (R8), R9 CBNZW R9, sigtramp // Skip stack trace if already locked. STLXRW R7, (R8), R9 CBNZ R9, load_store_loop // Jump to the traceback function in runtime/cgo. // It will call back to sigprofNonGo, which will ignore the // arguments passed in registers. // First three arguments to traceback function are in registers already. MOVD runtime·cgoTraceback(SB), R3 MOVD $runtime·sigprofCallers(SB), R4 MOVD $runtime·sigprofNonGoWrapper<>(SB), R5 MOVD _cgo_callers(SB), R13 MOVD R10, LR // restore MOVD R11, R27 MOVD R12, g B (R13) TEXT runtime·sysMmap(SB),NOSPLIT|NOFRAME,$0 MOVD addr+0(FP), R0 MOVD n+8(FP), R1 MOVW prot+16(FP), R2 MOVW flags+20(FP), R3 MOVW fd+24(FP), R4 MOVW off+28(FP), R5 MOVD $SYS_mmap, R8 SVC CMN $4095, R0 BCC ok NEG R0,R0 MOVD $0, p+32(FP) MOVD R0, err+40(FP) RET ok: MOVD R0, p+32(FP) MOVD $0, err+40(FP) RET // Call the function stored in _cgo_mmap using the GCC calling convention. // This must be called on the system stack. TEXT runtime·callCgoMmap(SB),NOSPLIT,$0 MOVD addr+0(FP), R0 MOVD n+8(FP), R1 MOVW prot+16(FP), R2 MOVW flags+20(FP), R3 MOVW fd+24(FP), R4 MOVW off+28(FP), R5 MOVD _cgo_mmap(SB), R9 SUB $16, RSP // reserve 16 bytes for sp-8 where fp may be saved. BL R9 ADD $16, RSP MOVD R0, ret+32(FP) RET TEXT runtime·sysMunmap(SB),NOSPLIT|NOFRAME,$0 MOVD addr+0(FP), R0 MOVD n+8(FP), R1 MOVD $SYS_munmap, R8 SVC CMN $4095, R0 BCC cool MOVD R0, 0xf0(R0) cool: RET // Call the function stored in _cgo_munmap using the GCC calling convention. // This must be called on the system stack. TEXT runtime·callCgoMunmap(SB),NOSPLIT,$0 MOVD addr+0(FP), R0 MOVD n+8(FP), R1 MOVD _cgo_munmap(SB), R9 SUB $16, RSP // reserve 16 bytes for sp-8 where fp may be saved. BL R9 ADD $16, RSP RET TEXT runtime·madvise(SB),NOSPLIT|NOFRAME,$0 MOVD addr+0(FP), R0 MOVD n+8(FP), R1 MOVW flags+16(FP), R2 MOVD $SYS_madvise, R8 SVC MOVW R0, ret+24(FP) RET // int64 futex(int32 *uaddr, int32 op, int32 val, // struct timespec *timeout, int32 *uaddr2, int32 val2); TEXT runtime·futex(SB),NOSPLIT|NOFRAME,$0 MOVD addr+0(FP), R0 MOVW op+8(FP), R1 MOVW val+12(FP), R2 MOVD ts+16(FP), R3 MOVD addr2+24(FP), R4 MOVW val3+32(FP), R5 MOVD $SYS_futex, R8 SVC MOVW R0, ret+40(FP) RET // int64 clone(int32 flags, void *stk, M *mp, G *gp, void (*fn)(void)); TEXT runtime·clone(SB),NOSPLIT|NOFRAME,$0 MOVW flags+0(FP), R0 MOVD stk+8(FP), R1 // Copy mp, gp, fn off parent stack for use by child. MOVD mp+16(FP), R10 MOVD gp+24(FP), R11 MOVD fn+32(FP), R12 MOVD R10, -8(R1) MOVD R11, -16(R1) MOVD R12, -24(R1) MOVD $1234, R10 MOVD R10, -32(R1) MOVD $SYS_clone, R8 SVC // In parent, return. CMP ZR, R0 BEQ child MOVW R0, ret+40(FP) RET child: // In child, on new stack. MOVD -32(RSP), R10 MOVD $1234, R0 CMP R0, R10 BEQ good MOVD $0, R0 MOVD R0, (R0) // crash good: // Initialize m->procid to Linux tid MOVD $SYS_gettid, R8 SVC MOVD -24(RSP), R12 // fn MOVD -16(RSP), R11 // g MOVD -8(RSP), R10 // m CMP $0, R10 BEQ nog CMP $0, R11 BEQ nog MOVD R0, m_procid(R10) // TODO: setup TLS. // In child, set up new stack MOVD R10, g_m(R11) MOVD R11, g //CALL runtime·stackcheck(SB) nog: // Call fn MOVD R12, R0 BL (R0) // It shouldn't return. If it does, exit that thread. MOVW $111, R0 again: MOVD $SYS_exit, R8 SVC B again // keep exiting TEXT runtime·sigaltstack(SB),NOSPLIT|NOFRAME,$0 MOVD new+0(FP), R0 MOVD old+8(FP), R1 MOVD $SYS_sigaltstack, R8 SVC CMN $4095, R0 BCC ok MOVD $0, R0 MOVD R0, (R0) // crash ok: RET TEXT runtime·osyield(SB),NOSPLIT|NOFRAME,$0 MOVD $SYS_sched_yield, R8 SVC RET TEXT runtime·sched_getaffinity(SB),NOSPLIT|NOFRAME,$0 MOVD pid+0(FP), R0 MOVD len+8(FP), R1 MOVD buf+16(FP), R2 MOVD $SYS_sched_getaffinity, R8 SVC MOVW R0, ret+24(FP) RET // int access(const char *name, int mode) TEXT runtime·access(SB),NOSPLIT,$0-20 MOVD $AT_FDCWD, R0 MOVD name+0(FP), R1 MOVW mode+8(FP), R2 MOVD $SYS_faccessat, R8 SVC MOVW R0, ret+16(FP) RET // int connect(int fd, const struct sockaddr *addr, socklen_t len) TEXT runtime·connect(SB),NOSPLIT,$0-28 MOVW fd+0(FP), R0 MOVD addr+8(FP), R1 MOVW len+16(FP), R2 MOVD $SYS_connect, R8 SVC MOVW R0, ret+24(FP) RET // int socket(int domain, int typ, int prot) TEXT runtime·socket(SB),NOSPLIT,$0-20 MOVW domain+0(FP), R0 MOVW typ+4(FP), R1 MOVW prot+8(FP), R2 MOVD $SYS_socket, R8 SVC MOVW R0, ret+16(FP) RET // func sbrk0() uintptr TEXT runtime·sbrk0(SB),NOSPLIT,$0-8 // Implemented as brk(NULL). MOVD $0, R0 MOVD $SYS_brk, R8 SVC MOVD R0, ret+0(FP) RET
go/src/runtime/sys_linux_arm64.s/0
{ "file_path": "go/src/runtime/sys_linux_arm64.s", "repo_id": "go", "token_count": 8941 }
416
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build openbsd && !mips64 package runtime import ( "internal/abi" "unsafe" ) //go:nosplit //go:cgo_unsafe_args func thrsleep(ident uintptr, clock_id int32, tsp *timespec, lock uintptr, abort *uint32) int32 { ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(thrsleep_trampoline)), unsafe.Pointer(&ident)) KeepAlive(tsp) KeepAlive(abort) return ret } func thrsleep_trampoline() //go:nosplit //go:cgo_unsafe_args func thrwakeup(ident uintptr, n int32) int32 { return libcCall(unsafe.Pointer(abi.FuncPCABI0(thrwakeup_trampoline)), unsafe.Pointer(&ident)) } func thrwakeup_trampoline() //go:nosplit func osyield() { libcCall(unsafe.Pointer(abi.FuncPCABI0(sched_yield_trampoline)), unsafe.Pointer(nil)) } func sched_yield_trampoline() //go:nosplit func osyield_no_g() { asmcgocall_no_g(unsafe.Pointer(abi.FuncPCABI0(sched_yield_trampoline)), unsafe.Pointer(nil)) } //go:cgo_import_dynamic libc_thrsleep __thrsleep "libc.so" //go:cgo_import_dynamic libc_thrwakeup __thrwakeup "libc.so" //go:cgo_import_dynamic libc_sched_yield sched_yield "libc.so" //go:cgo_import_dynamic _ _ "libc.so"
go/src/runtime/sys_openbsd1.go/0
{ "file_path": "go/src/runtime/sys_openbsd1.go", "repo_id": "go", "token_count": 524 }
417
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // System calls and other sys.stuff for AMD64, SunOS // /usr/include/sys/syscall.h for syscall numbers. // #include "go_asm.h" #include "go_tls.h" #include "textflag.h" // This is needed by asm_amd64.s TEXT runtime·settls(SB),NOSPLIT,$8 RET // void libc_miniterrno(void *(*___errno)(void)); // // Set the TLS errno pointer in M. // // Called using runtime·asmcgocall from os_solaris.c:/minit. // NOT USING GO CALLING CONVENTION. TEXT runtime·miniterrno(SB),NOSPLIT,$0 // asmcgocall will put first argument into DI. CALL DI // SysV ABI so returns in AX get_tls(CX) MOVQ g(CX), BX MOVQ g_m(BX), BX MOVQ AX, (m_mOS+mOS_perrno)(BX) RET // Call a library function with SysV calling conventions. // The called function can take a maximum of 6 INTEGER class arguments, // see // Michael Matz, Jan Hubicka, Andreas Jaeger, and Mark Mitchell // System V Application Binary Interface // AMD64 Architecture Processor Supplement // section 3.2.3. // // Called by runtime·asmcgocall or runtime·cgocall. // NOT USING GO CALLING CONVENTION. TEXT runtime·asmsysvicall6(SB),NOSPLIT,$0 // asmcgocall will put first argument into DI. PUSHQ DI // save for later MOVQ libcall_fn(DI), AX MOVQ libcall_args(DI), R11 MOVQ libcall_n(DI), R10 get_tls(CX) MOVQ g(CX), BX CMPQ BX, $0 JEQ skiperrno1 MOVQ g_m(BX), BX MOVQ (m_mOS+mOS_perrno)(BX), DX CMPQ DX, $0 JEQ skiperrno1 MOVL $0, 0(DX) skiperrno1: CMPQ R11, $0 JEQ skipargs // Load 6 args into correspondent registers. MOVQ 0(R11), DI MOVQ 8(R11), SI MOVQ 16(R11), DX MOVQ 24(R11), CX MOVQ 32(R11), R8 MOVQ 40(R11), R9 skipargs: // Call SysV function CALL AX // Return result POPQ DI MOVQ AX, libcall_r1(DI) MOVQ DX, libcall_r2(DI) get_tls(CX) MOVQ g(CX), BX CMPQ BX, $0 JEQ skiperrno2 MOVQ g_m(BX), BX MOVQ (m_mOS+mOS_perrno)(BX), AX CMPQ AX, $0 JEQ skiperrno2 MOVL 0(AX), AX MOVQ AX, libcall_err(DI) skiperrno2: RET // uint32 tstart_sysvicall(M *newm); TEXT runtime·tstart_sysvicall(SB),NOSPLIT,$0 // DI contains first arg newm MOVQ m_g0(DI), DX // g // Make TLS entries point at g and m. get_tls(BX) MOVQ DX, g(BX) MOVQ DI, g_m(DX) // Layout new m scheduler stack on os stack. MOVQ SP, AX MOVQ AX, (g_stack+stack_hi)(DX) SUBQ $(0x100000), AX // stack size MOVQ AX, (g_stack+stack_lo)(DX) ADDQ $const_stackGuard, AX MOVQ AX, g_stackguard0(DX) MOVQ AX, g_stackguard1(DX) // Someday the convention will be D is always cleared. CLD CALL runtime·stackcheck(SB) // clobbers AX,CX CALL runtime·mstart(SB) XORL AX, AX // return 0 == success MOVL AX, ret+8(FP) RET // Careful, this is called by __sighndlr, a libc function. We must preserve // registers as per AMD 64 ABI. TEXT runtime·sigtramp(SB),NOSPLIT|TOPFRAME|NOFRAME,$0 // Note that we are executing on altsigstack here, so we have // more stack available than NOSPLIT would have us believe. // To defeat the linker, we make our own stack frame with // more space: SUBQ $168, SP // save registers MOVQ BX, 24(SP) MOVQ BP, 32(SP) MOVQ R12, 40(SP) MOVQ R13, 48(SP) MOVQ R14, 56(SP) MOVQ R15, 64(SP) get_tls(BX) // check that g exists MOVQ g(BX), R10 CMPQ R10, $0 JNE allgood MOVQ SI, 72(SP) MOVQ DX, 80(SP) LEAQ 72(SP), AX MOVQ DI, 0(SP) MOVQ AX, 8(SP) MOVQ $runtime·badsignal(SB), AX CALL AX JMP exit allgood: // Save m->libcall and m->scratch. We need to do this because we // might get interrupted by a signal in runtime·asmcgocall. // save m->libcall MOVQ g_m(R10), BP LEAQ m_libcall(BP), R11 MOVQ libcall_fn(R11), R10 MOVQ R10, 72(SP) MOVQ libcall_args(R11), R10 MOVQ R10, 80(SP) MOVQ libcall_n(R11), R10 MOVQ R10, 88(SP) MOVQ libcall_r1(R11), R10 MOVQ R10, 152(SP) MOVQ libcall_r2(R11), R10 MOVQ R10, 160(SP) // save m->scratch LEAQ (m_mOS+mOS_scratch)(BP), R11 MOVQ 0(R11), R10 MOVQ R10, 96(SP) MOVQ 8(R11), R10 MOVQ R10, 104(SP) MOVQ 16(R11), R10 MOVQ R10, 112(SP) MOVQ 24(R11), R10 MOVQ R10, 120(SP) MOVQ 32(R11), R10 MOVQ R10, 128(SP) MOVQ 40(R11), R10 MOVQ R10, 136(SP) // save errno, it might be EINTR; stuff we do here might reset it. MOVQ (m_mOS+mOS_perrno)(BP), R10 MOVL 0(R10), R10 MOVQ R10, 144(SP) // prepare call MOVQ DI, 0(SP) MOVQ SI, 8(SP) MOVQ DX, 16(SP) CALL runtime·sigtrampgo(SB) get_tls(BX) MOVQ g(BX), BP MOVQ g_m(BP), BP // restore libcall LEAQ m_libcall(BP), R11 MOVQ 72(SP), R10 MOVQ R10, libcall_fn(R11) MOVQ 80(SP), R10 MOVQ R10, libcall_args(R11) MOVQ 88(SP), R10 MOVQ R10, libcall_n(R11) MOVQ 152(SP), R10 MOVQ R10, libcall_r1(R11) MOVQ 160(SP), R10 MOVQ R10, libcall_r2(R11) // restore scratch LEAQ (m_mOS+mOS_scratch)(BP), R11 MOVQ 96(SP), R10 MOVQ R10, 0(R11) MOVQ 104(SP), R10 MOVQ R10, 8(R11) MOVQ 112(SP), R10 MOVQ R10, 16(R11) MOVQ 120(SP), R10 MOVQ R10, 24(R11) MOVQ 128(SP), R10 MOVQ R10, 32(R11) MOVQ 136(SP), R10 MOVQ R10, 40(R11) // restore errno MOVQ (m_mOS+mOS_perrno)(BP), R11 MOVQ 144(SP), R10 MOVL R10, 0(R11) exit: // restore registers MOVQ 24(SP), BX MOVQ 32(SP), BP MOVQ 40(SP), R12 MOVQ 48(SP), R13 MOVQ 56(SP), R14 MOVQ 64(SP), R15 ADDQ $168, SP RET TEXT runtime·sigfwd(SB),NOSPLIT,$0-32 MOVQ fn+0(FP), AX MOVL sig+8(FP), DI MOVQ info+16(FP), SI MOVQ ctx+24(FP), DX MOVQ SP, BX // callee-saved ANDQ $~15, SP // alignment for x86_64 ABI CALL AX MOVQ BX, SP RET // Called from runtime·usleep (Go). Can be called on Go stack, on OS stack, // can also be called in cgo callback path without a g->m. TEXT runtime·usleep1(SB),NOSPLIT,$0 MOVL usec+0(FP), DI MOVQ $usleep2<>(SB), AX // to hide from 6l // Execute call on m->g0. get_tls(R15) CMPQ R15, $0 JE noswitch MOVQ g(R15), R13 CMPQ R13, $0 JE noswitch MOVQ g_m(R13), R13 CMPQ R13, $0 JE noswitch // TODO(aram): do something about the cpu profiler here. MOVQ m_g0(R13), R14 CMPQ g(R15), R14 JNE switch // executing on m->g0 already CALL AX RET switch: // Switch to m->g0 stack and back. MOVQ (g_sched+gobuf_sp)(R14), R14 MOVQ SP, -8(R14) LEAQ -8(R14), SP CALL AX MOVQ 0(SP), SP RET noswitch: // Not a Go-managed thread. Do not switch stack. CALL AX RET // Runs on OS stack. duration (in µs units) is in DI. TEXT usleep2<>(SB),NOSPLIT,$0 LEAQ libc_usleep(SB), AX CALL AX RET // Runs on OS stack, called from runtime·osyield. TEXT runtime·osyield1(SB),NOSPLIT,$0 LEAQ libc_sched_yield(SB), AX CALL AX RET
go/src/runtime/sys_solaris_amd64.s/0
{ "file_path": "go/src/runtime/sys_solaris_amd64.s", "repo_id": "go", "token_count": 3368 }
418
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build amd64 || arm64 || loong64 || mips64 || mips64le || ppc64 || ppc64le || riscv64 || s390x || wasm package runtime import ( "internal/goarch" "internal/goos" "unsafe" ) const ( // addrBits is the number of bits needed to represent a virtual address. // // See heapAddrBits for a table of address space sizes on // various architectures. 48 bits is enough for all // architectures except s390x. // // On AMD64, virtual addresses are 48-bit (or 57-bit) numbers sign extended to 64. // We shift the address left 16 to eliminate the sign extended part and make // room in the bottom for the count. // // On s390x, virtual addresses are 64-bit. There's not much we // can do about this, so we just hope that the kernel doesn't // get to really high addresses and panic if it does. addrBits = 48 // In addition to the 16 bits taken from the top, we can take 3 from the // bottom, because node must be pointer-aligned, giving a total of 19 bits // of count. tagBits = 64 - addrBits + 3 // On AIX, 64-bit addresses are split into 36-bit segment number and 28-bit // offset in segment. Segment numbers in the range 0x0A0000000-0x0AFFFFFFF(LSA) // are available for mmap. // We assume all tagged addresses are from memory allocated with mmap. // We use one bit to distinguish between the two ranges. aixAddrBits = 57 aixTagBits = 64 - aixAddrBits + 3 // riscv64 SV57 mode gives 56 bits of userspace VA. // tagged pointer code supports it, // but broader support for SV57 mode is incomplete, // and there may be other issues (see #54104). riscv64AddrBits = 56 riscv64TagBits = 64 - riscv64AddrBits + 3 ) // The number of bits stored in the numeric tag of a taggedPointer const taggedPointerBits = (goos.IsAix * aixTagBits) + (goarch.IsRiscv64 * riscv64TagBits) + ((1 - goos.IsAix) * (1 - goarch.IsRiscv64) * tagBits) // taggedPointerPack created a taggedPointer from a pointer and a tag. // Tag bits that don't fit in the result are discarded. func taggedPointerPack(ptr unsafe.Pointer, tag uintptr) taggedPointer { if GOOS == "aix" { if GOARCH != "ppc64" { throw("check this code for aix on non-ppc64") } return taggedPointer(uint64(uintptr(ptr))<<(64-aixAddrBits) | uint64(tag&(1<<aixTagBits-1))) } if GOARCH == "riscv64" { return taggedPointer(uint64(uintptr(ptr))<<(64-riscv64AddrBits) | uint64(tag&(1<<riscv64TagBits-1))) } return taggedPointer(uint64(uintptr(ptr))<<(64-addrBits) | uint64(tag&(1<<tagBits-1))) } // Pointer returns the pointer from a taggedPointer. func (tp taggedPointer) pointer() unsafe.Pointer { if GOARCH == "amd64" { // amd64 systems can place the stack above the VA hole, so we need to sign extend // val before unpacking. return unsafe.Pointer(uintptr(int64(tp) >> tagBits << 3)) } if GOOS == "aix" { return unsafe.Pointer(uintptr((tp >> aixTagBits << 3) | 0xa<<56)) } if GOARCH == "riscv64" { return unsafe.Pointer(uintptr(tp >> riscv64TagBits << 3)) } return unsafe.Pointer(uintptr(tp >> tagBits << 3)) } // Tag returns the tag from a taggedPointer. func (tp taggedPointer) tag() uintptr { return uintptr(tp & (1<<taggedPointerBits - 1)) }
go/src/runtime/tagptr_64bit.go/0
{ "file_path": "go/src/runtime/tagptr_64bit.go", "repo_id": "go", "token_count": 1157 }
419
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "internal/syscall/windows" "runtime" "sync" "syscall" "unsafe" ) func init() { register("RaiseException", RaiseException) register("ZeroDivisionException", ZeroDivisionException) register("StackMemory", StackMemory) } func RaiseException() { const EXCEPTION_NONCONTINUABLE = 1 mod := syscall.MustLoadDLL("kernel32.dll") proc := mod.MustFindProc("RaiseException") proc.Call(0xbad, EXCEPTION_NONCONTINUABLE, 0, 0) println("RaiseException should not return") } func ZeroDivisionException() { x := 1 y := 0 z := x / y println(z) } func getPagefileUsage() (uintptr, error) { p, err := syscall.GetCurrentProcess() if err != nil { return 0, err } var m windows.PROCESS_MEMORY_COUNTERS err = windows.GetProcessMemoryInfo(p, &m, uint32(unsafe.Sizeof(m))) if err != nil { return 0, err } return m.PagefileUsage, nil } func StackMemory() { mem1, err := getPagefileUsage() if err != nil { panic(err) } const threadCount = 100 var wg sync.WaitGroup for i := 0; i < threadCount; i++ { wg.Add(1) go func() { runtime.LockOSThread() wg.Done() select {} }() } wg.Wait() mem2, err := getPagefileUsage() if err != nil { panic(err) } // assumes that this process creates 1 thread for each // thread locked goroutine plus extra 10 threads // like sysmon and others print((mem2 - mem1) / (threadCount + 10)) }
go/src/runtime/testdata/testprog/syscall_windows.go/0
{ "file_path": "go/src/runtime/testdata/testprog/syscall_windows.go", "repo_id": "go", "token_count": 574 }
420
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !plan9 && !windows // +build !plan9,!windows package main /* #include <signal.h> #include <stdlib.h> #include <string.h> static void abrthandler(int signum) { if (signum == SIGABRT) { exit(0); // success } } void registerAbortHandler() { struct sigaction act; memset(&act, 0, sizeof act); act.sa_handler = abrthandler; sigaction(SIGABRT, &act, NULL); } static void __attribute__ ((constructor)) sigsetup(void) { if (getenv("CGOCATCHPANIC_EARLY_HANDLER") == NULL) return; registerAbortHandler(); } */ import "C" import "os" func init() { register("CgoCatchPanic", CgoCatchPanic) } // Test that the SIGABRT raised by panic can be caught by an early signal handler. func CgoCatchPanic() { if _, ok := os.LookupEnv("CGOCATCHPANIC_EARLY_HANDLER"); !ok { C.registerAbortHandler() } panic("catch me") }
go/src/runtime/testdata/testprogcgo/catchpanic.go/0
{ "file_path": "go/src/runtime/testdata/testprogcgo/catchpanic.go", "repo_id": "go", "token_count": 374 }
421
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The C definitions for gprof.go. That file uses //export so // it can't put function definitions in the "C" import comment. #include <stdint.h> #include <stdlib.h> // Functions exported from Go. extern void GoSleep(); struct cgoContextArg { uintptr_t context; }; void gprofCgoContext(void *arg) { ((struct cgoContextArg*)arg)->context = 1; } void gprofCgoTraceback(void *arg) { // spend some time here so the P is more likely to be retaken. volatile int i; for (i = 0; i < 123456789; i++); } void CallGoSleep() { GoSleep(); }
go/src/runtime/testdata/testprogcgo/gprof_c.c/0
{ "file_path": "go/src/runtime/testdata/testprogcgo/gprof_c.c", "repo_id": "go", "token_count": 234 }
422
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !plan9 && !windows // +build !plan9,!windows // Test handling of Go-allocated signal stacks when calling from // C-created threads with and without signal stacks. (See issue // #22930.) package main /* #include <pthread.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #ifdef _AIX // On AIX, SIGSTKSZ is too small to handle Go sighandler. #define CSIGSTKSZ 0x4000 #else #define CSIGSTKSZ SIGSTKSZ #endif extern void SigStackCallback(); static void* WithSigStack(void* arg __attribute__((unused))) { // Set up an alternate system stack. void* base = mmap(0, CSIGSTKSZ, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); if (base == MAP_FAILED) { perror("mmap failed"); abort(); } stack_t st = {}, ost = {}; st.ss_sp = (char*)base; st.ss_flags = 0; st.ss_size = CSIGSTKSZ; if (sigaltstack(&st, &ost) < 0) { perror("sigaltstack failed"); abort(); } // Call Go. SigStackCallback(); // Disable signal stack and protect it so we can detect reuse. if (ost.ss_flags & SS_DISABLE) { // Darwin libsystem has a bug where it checks ss_size // even if SS_DISABLE is set. (The kernel gets it right.) ost.ss_size = CSIGSTKSZ; } if (sigaltstack(&ost, NULL) < 0) { perror("sigaltstack restore failed"); abort(); } mprotect(base, CSIGSTKSZ, PROT_NONE); return NULL; } static void* WithoutSigStack(void* arg __attribute__((unused))) { SigStackCallback(); return NULL; } static void DoThread(int sigstack) { pthread_t tid; if (sigstack) { pthread_create(&tid, NULL, WithSigStack, NULL); } else { pthread_create(&tid, NULL, WithoutSigStack, NULL); } pthread_join(tid, NULL); } */ import "C" func init() { register("SigStack", SigStack) } func SigStack() { C.DoThread(0) C.DoThread(1) C.DoThread(0) C.DoThread(1) println("OK") } var BadPtr *int //export SigStackCallback func SigStackCallback() { // Cause the Go signal handler to run. defer func() { recover() }() *BadPtr = 42 }
go/src/runtime/testdata/testprogcgo/sigstack.go/0
{ "file_path": "go/src/runtime/testdata/testprogcgo/sigstack.go", "repo_id": "go", "token_count": 830 }
423
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The C definitions for tracebackctxt.go. That file uses //export so // it can't put function definitions in the "C" import comment. #include <stdlib.h> #include <stdint.h> // Functions exported from Go. extern void G1(void); extern void G2(void); extern void TracebackContextPreemptionGoFunction(int); void C1() { G1(); } void C2() { G2(); } struct cgoContextArg { uintptr_t context; }; struct cgoTracebackArg { uintptr_t context; uintptr_t sigContext; uintptr_t* buf; uintptr_t max; }; struct cgoSymbolizerArg { uintptr_t pc; const char* file; uintptr_t lineno; const char* func; uintptr_t entry; uintptr_t more; uintptr_t data; }; // Uses atomic adds and subtracts to catch the possibility of // erroneous calls from multiple threads; that should be impossible in // this test case, but we check just in case. static int contextCount; int getContextCount() { return __sync_add_and_fetch(&contextCount, 0); } void tcContext(void* parg) { struct cgoContextArg* arg = (struct cgoContextArg*)(parg); if (arg->context == 0) { arg->context = __sync_add_and_fetch(&contextCount, 1); } else { if (arg->context != __sync_add_and_fetch(&contextCount, 0)) { abort(); } __sync_sub_and_fetch(&contextCount, 1); } } void tcContextSimple(void* parg) { struct cgoContextArg* arg = (struct cgoContextArg*)(parg); if (arg->context == 0) { arg->context = 1; } } void tcTraceback(void* parg) { int base, i; struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg); if (arg->context == 0 && arg->sigContext == 0) { // This shouldn't happen in this program. abort(); } // Return a variable number of PC values. base = arg->context << 8; for (i = 0; i < arg->context; i++) { if (i < arg->max) { arg->buf[i] = base + i; } } } void tcSymbolizer(void *parg) { struct cgoSymbolizerArg* arg = (struct cgoSymbolizerArg*)(parg); if (arg->pc == 0) { return; } // Report two lines per PC returned by traceback, to test more handling. arg->more = arg->file == NULL; arg->file = "tracebackctxt.go"; arg->func = "cFunction"; arg->lineno = arg->pc + (arg->more << 16); } void TracebackContextPreemptionCallGo(int i) { TracebackContextPreemptionGoFunction(i); }
go/src/runtime/testdata/testprogcgo/tracebackctxt_c.c/0
{ "file_path": "go/src/runtime/testdata/testprogcgo/tracebackctxt_c.c", "repo_id": "go", "token_count": 892 }
424
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifdef GOOS_android #define TLS_linux #define TLSG_IS_VARIABLE #endif #ifdef GOOS_linux #define TLS_linux #endif #ifdef TLS_linux #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0 #endif #ifdef GOOS_darwin #define TLS_darwin #endif #ifdef GOOS_ios #define TLS_darwin #endif #ifdef TLS_darwin #define TLSG_IS_VARIABLE #define MRS_TPIDR_R0 WORD $0xd53bd060 // MRS TPIDRRO_EL0, R0 #endif #ifdef GOOS_freebsd #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0 #endif #ifdef GOOS_netbsd #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDRRO_EL0, R0 #endif #ifdef GOOS_openbsd #define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0 #endif #ifdef GOOS_windows #define TLS_windows #endif #ifdef TLS_windows #define TLSG_IS_VARIABLE #define MRS_TPIDR_R0 MOVD R18_PLATFORM, R0 #endif // Define something that will break the build if // the GOOS is unknown. #ifndef MRS_TPIDR_R0 #define MRS_TPIDR_R0 unknown_TLS_implementation_in_tls_arm64_h #endif
go/src/runtime/tls_arm64.h/0
{ "file_path": "go/src/runtime/tls_arm64.h", "repo_id": "go", "token_count": 491 }
425
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime_test import ( . "runtime" "strconv" "sync" "testing" ) func TestTraceMap(t *testing.T) { var m TraceMap // Try all these operations multiple times between resets, to make sure // we're resetting properly. for range 3 { var d = [...]string{ "a", "b", "aa", "ab", "ba", "bb", } for i, s := range d { id, inserted := m.PutString(s) if !inserted { t.Errorf("expected to have inserted string %q, but did not", s) } if id != uint64(i+1) { t.Errorf("expected string %q to have ID %d, but got %d instead", s, i+1, id) } } for i, s := range d { id, inserted := m.PutString(s) if inserted { t.Errorf("inserted string %q, but expected to have not done so", s) } if id != uint64(i+1) { t.Errorf("expected string %q to have ID %d, but got %d instead", s, i+1, id) } } m.Reset() } } func TestTraceMapConcurrent(t *testing.T) { var m TraceMap var wg sync.WaitGroup for i := range 3 { wg.Add(1) go func(i int) { defer wg.Done() si := strconv.Itoa(i) var d = [...]string{ "a" + si, "b" + si, "aa" + si, "ab" + si, "ba" + si, "bb" + si, } ids := make([]uint64, 0, len(d)) for _, s := range d { id, inserted := m.PutString(s) if !inserted { t.Errorf("expected to have inserted string %q, but did not", s) } ids = append(ids, id) } for i, s := range d { id, inserted := m.PutString(s) if inserted { t.Errorf("inserted string %q, but expected to have not done so", s) } if id != ids[i] { t.Errorf("expected string %q to have ID %d, but got %d instead", s, ids[i], id) } } }(i) } wg.Wait() m.Reset() }
go/src/runtime/trace2map_test.go/0
{ "file_path": "go/src/runtime/trace2map_test.go", "repo_id": "go", "token_count": 865 }
426
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Trace string management. package runtime // Trace strings. const maxTraceStringLen = 1024 // traceStringTable is map of string -> unique ID that also manages // writing strings out into the trace. type traceStringTable struct { // lock protects buf. lock mutex buf *traceBuf // string batches to write out to the trace. // tab is a mapping of string -> unique ID. tab traceMap } // put adds a string to the table, emits it, and returns a unique ID for it. func (t *traceStringTable) put(gen uintptr, s string) uint64 { // Put the string in the table. ss := stringStructOf(&s) id, added := t.tab.put(ss.str, uintptr(ss.len)) if added { // Write the string to the buffer. systemstack(func() { t.writeString(gen, id, s) }) } return id } // emit emits a string and creates an ID for it, but doesn't add it to the table. Returns the ID. func (t *traceStringTable) emit(gen uintptr, s string) uint64 { // Grab an ID and write the string to the buffer. id := t.tab.stealID() systemstack(func() { t.writeString(gen, id, s) }) return id } // writeString writes the string to t.buf. // // Must run on the systemstack because it acquires t.lock. // //go:systemstack func (t *traceStringTable) writeString(gen uintptr, id uint64, s string) { // Truncate the string if necessary. if len(s) > maxTraceStringLen { s = s[:maxTraceStringLen] } lock(&t.lock) w := unsafeTraceWriter(gen, t.buf) // Ensure we have a place to write to. var flushed bool w, flushed = w.ensure(2 + 2*traceBytesPerNumber + len(s) /* traceEvStrings + traceEvString + ID + len + string data */) if flushed { // Annotate the batch as containing strings. w.byte(byte(traceEvStrings)) } // Write out the string. w.byte(byte(traceEvString)) w.varint(id) w.varint(uint64(len(s))) w.stringData(s) // Store back buf in case it was updated during ensure. t.buf = w.traceBuf unlock(&t.lock) } // reset clears the string table and flushes any buffers it has. // // Must be called only once the caller is certain nothing else will be // added to this table. func (t *traceStringTable) reset(gen uintptr) { if t.buf != nil { systemstack(func() { lock(&trace.lock) traceBufFlush(t.buf, gen) unlock(&trace.lock) }) t.buf = nil } // Reset the table. t.tab.reset() }
go/src/runtime/tracestring.go/0
{ "file_path": "go/src/runtime/tracestring.go", "repo_id": "go", "token_count": 847 }
427
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux && (386 || amd64 || arm || arm64 || loong64 || mips64 || mips64le || ppc64 || ppc64le || riscv64 || s390x) package runtime import "unsafe" // Look up symbols in the Linux vDSO. // This code was originally based on the sample Linux vDSO parser at // https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/vDSO/parse_vdso.c // This implements the ELF dynamic linking spec at // http://sco.com/developers/gabi/latest/ch5.dynamic.html // The version section is documented at // https://refspecs.linuxfoundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/symversion.html const ( _AT_SYSINFO_EHDR = 33 _PT_LOAD = 1 /* Loadable program segment */ _PT_DYNAMIC = 2 /* Dynamic linking information */ _DT_NULL = 0 /* Marks end of dynamic section */ _DT_HASH = 4 /* Dynamic symbol hash table */ _DT_STRTAB = 5 /* Address of string table */ _DT_SYMTAB = 6 /* Address of symbol table */ _DT_GNU_HASH = 0x6ffffef5 /* GNU-style dynamic symbol hash table */ _DT_VERSYM = 0x6ffffff0 _DT_VERDEF = 0x6ffffffc _VER_FLG_BASE = 0x1 /* Version definition of file itself */ _SHN_UNDEF = 0 /* Undefined section */ _SHT_DYNSYM = 11 /* Dynamic linker symbol table */ _STT_FUNC = 2 /* Symbol is a code object */ _STT_NOTYPE = 0 /* Symbol type is not specified */ _STB_GLOBAL = 1 /* Global symbol */ _STB_WEAK = 2 /* Weak symbol */ _EI_NIDENT = 16 // Maximum indices for the array types used when traversing the vDSO ELF structures. // Computed from architecture-specific max provided by vdso_linux_*.go vdsoSymTabSize = vdsoArrayMax / unsafe.Sizeof(elfSym{}) vdsoDynSize = vdsoArrayMax / unsafe.Sizeof(elfDyn{}) vdsoSymStringsSize = vdsoArrayMax // byte vdsoVerSymSize = vdsoArrayMax / 2 // uint16 vdsoHashSize = vdsoArrayMax / 4 // uint32 // vdsoBloomSizeScale is a scaling factor for gnuhash tables which are uint32 indexed, // but contain uintptrs vdsoBloomSizeScale = unsafe.Sizeof(uintptr(0)) / 4 // uint32 ) /* How to extract and insert information held in the st_info field. */ func _ELF_ST_BIND(val byte) byte { return val >> 4 } func _ELF_ST_TYPE(val byte) byte { return val & 0xf } type vdsoSymbolKey struct { name string symHash uint32 gnuHash uint32 ptr *uintptr } type vdsoVersionKey struct { version string verHash uint32 } type vdsoInfo struct { valid bool /* Load information */ loadAddr uintptr loadOffset uintptr /* loadAddr - recorded vaddr */ /* Symbol table */ symtab *[vdsoSymTabSize]elfSym symstrings *[vdsoSymStringsSize]byte chain []uint32 bucket []uint32 symOff uint32 isGNUHash bool /* Version table */ versym *[vdsoVerSymSize]uint16 verdef *elfVerdef } // see vdso_linux_*.go for vdsoSymbolKeys[] and vdso*Sym vars func vdsoInitFromSysinfoEhdr(info *vdsoInfo, hdr *elfEhdr) { info.valid = false info.loadAddr = uintptr(unsafe.Pointer(hdr)) pt := unsafe.Pointer(info.loadAddr + uintptr(hdr.e_phoff)) // We need two things from the segment table: the load offset // and the dynamic table. var foundVaddr bool var dyn *[vdsoDynSize]elfDyn for i := uint16(0); i < hdr.e_phnum; i++ { pt := (*elfPhdr)(add(pt, uintptr(i)*unsafe.Sizeof(elfPhdr{}))) switch pt.p_type { case _PT_LOAD: if !foundVaddr { foundVaddr = true info.loadOffset = info.loadAddr + uintptr(pt.p_offset-pt.p_vaddr) } case _PT_DYNAMIC: dyn = (*[vdsoDynSize]elfDyn)(unsafe.Pointer(info.loadAddr + uintptr(pt.p_offset))) } } if !foundVaddr || dyn == nil { return // Failed } // Fish out the useful bits of the dynamic table. var hash, gnuhash *[vdsoHashSize]uint32 info.symstrings = nil info.symtab = nil info.versym = nil info.verdef = nil for i := 0; dyn[i].d_tag != _DT_NULL; i++ { dt := &dyn[i] p := info.loadOffset + uintptr(dt.d_val) switch dt.d_tag { case _DT_STRTAB: info.symstrings = (*[vdsoSymStringsSize]byte)(unsafe.Pointer(p)) case _DT_SYMTAB: info.symtab = (*[vdsoSymTabSize]elfSym)(unsafe.Pointer(p)) case _DT_HASH: hash = (*[vdsoHashSize]uint32)(unsafe.Pointer(p)) case _DT_GNU_HASH: gnuhash = (*[vdsoHashSize]uint32)(unsafe.Pointer(p)) case _DT_VERSYM: info.versym = (*[vdsoVerSymSize]uint16)(unsafe.Pointer(p)) case _DT_VERDEF: info.verdef = (*elfVerdef)(unsafe.Pointer(p)) } } if info.symstrings == nil || info.symtab == nil || (hash == nil && gnuhash == nil) { return // Failed } if info.verdef == nil { info.versym = nil } if gnuhash != nil { // Parse the GNU hash table header. nbucket := gnuhash[0] info.symOff = gnuhash[1] bloomSize := gnuhash[2] info.bucket = gnuhash[4+bloomSize*uint32(vdsoBloomSizeScale):][:nbucket] info.chain = gnuhash[4+bloomSize*uint32(vdsoBloomSizeScale)+nbucket:] info.isGNUHash = true } else { // Parse the hash table header. nbucket := hash[0] nchain := hash[1] info.bucket = hash[2 : 2+nbucket] info.chain = hash[2+nbucket : 2+nbucket+nchain] } // That's all we need. info.valid = true } func vdsoFindVersion(info *vdsoInfo, ver *vdsoVersionKey) int32 { if !info.valid { return 0 } def := info.verdef for { if def.vd_flags&_VER_FLG_BASE == 0 { aux := (*elfVerdaux)(add(unsafe.Pointer(def), uintptr(def.vd_aux))) if def.vd_hash == ver.verHash && ver.version == gostringnocopy(&info.symstrings[aux.vda_name]) { return int32(def.vd_ndx & 0x7fff) } } if def.vd_next == 0 { break } def = (*elfVerdef)(add(unsafe.Pointer(def), uintptr(def.vd_next))) } return -1 // cannot match any version } func vdsoParseSymbols(info *vdsoInfo, version int32) { if !info.valid { return } apply := func(symIndex uint32, k vdsoSymbolKey) bool { sym := &info.symtab[symIndex] typ := _ELF_ST_TYPE(sym.st_info) bind := _ELF_ST_BIND(sym.st_info) // On ppc64x, VDSO functions are of type _STT_NOTYPE. if typ != _STT_FUNC && typ != _STT_NOTYPE || bind != _STB_GLOBAL && bind != _STB_WEAK || sym.st_shndx == _SHN_UNDEF { return false } if k.name != gostringnocopy(&info.symstrings[sym.st_name]) { return false } // Check symbol version. if info.versym != nil && version != 0 && int32(info.versym[symIndex]&0x7fff) != version { return false } *k.ptr = info.loadOffset + uintptr(sym.st_value) return true } if !info.isGNUHash { // Old-style DT_HASH table. for _, k := range vdsoSymbolKeys { if len(info.bucket) > 0 { for chain := info.bucket[k.symHash%uint32(len(info.bucket))]; chain != 0; chain = info.chain[chain] { if apply(chain, k) { break } } } } return } // New-style DT_GNU_HASH table. for _, k := range vdsoSymbolKeys { symIndex := info.bucket[k.gnuHash%uint32(len(info.bucket))] if symIndex < info.symOff { continue } for ; ; symIndex++ { hash := info.chain[symIndex-info.symOff] if hash|1 == k.gnuHash|1 { // Found a hash match. if apply(symIndex, k) { break } } if hash&1 != 0 { // End of chain. break } } } } func vdsoauxv(tag, val uintptr) { switch tag { case _AT_SYSINFO_EHDR: if val == 0 { // Something went wrong return } var info vdsoInfo // TODO(rsc): I don't understand why the compiler thinks info escapes // when passed to the three functions below. info1 := (*vdsoInfo)(noescape(unsafe.Pointer(&info))) vdsoInitFromSysinfoEhdr(info1, (*elfEhdr)(unsafe.Pointer(val))) vdsoParseSymbols(info1, vdsoFindVersion(info1, &vdsoLinuxVersion)) } } // vdsoMarker reports whether PC is on the VDSO page. // //go:nosplit func inVDSOPage(pc uintptr) bool { for _, k := range vdsoSymbolKeys { if *k.ptr != 0 { page := *k.ptr &^ (physPageSize - 1) return pc >= page && pc < page+physPageSize } } return false }
go/src/runtime/vdso_linux.go/0
{ "file_path": "go/src/runtime/vdso_linux.go", "repo_id": "go", "token_count": 3342 }
428
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sort_test import ( "fmt" "sort" ) type Person struct { Name string Age int } func (p Person) String() string { return fmt.Sprintf("%s: %d", p.Name, p.Age) } // ByAge implements sort.Interface for []Person based on // the Age field. type ByAge []Person func (a ByAge) Len() int { return len(a) } func (a ByAge) Swap(i, j int) { a[i], a[j] = a[j], a[i] } func (a ByAge) Less(i, j int) bool { return a[i].Age < a[j].Age } func Example() { people := []Person{ {"Bob", 31}, {"John", 42}, {"Michael", 17}, {"Jenny", 26}, } fmt.Println(people) // There are two ways to sort a slice. First, one can define // a set of methods for the slice type, as with ByAge, and // call sort.Sort. In this first example we use that technique. sort.Sort(ByAge(people)) fmt.Println(people) // The other way is to use sort.Slice with a custom Less // function, which can be provided as a closure. In this // case no methods are needed. (And if they exist, they // are ignored.) Here we re-sort in reverse order: compare // the closure with ByAge.Less. sort.Slice(people, func(i, j int) bool { return people[i].Age > people[j].Age }) fmt.Println(people) // Output: // [Bob: 31 John: 42 Michael: 17 Jenny: 26] // [Michael: 17 Jenny: 26 Bob: 31 John: 42] // [John: 42 Bob: 31 Jenny: 26 Michael: 17] }
go/src/sort/example_interface_test.go/0
{ "file_path": "go/src/sort/example_interface_test.go", "repo_id": "go", "token_count": 547 }
429
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package strconv implements conversions to and from string representations // of basic data types. // // # Numeric Conversions // // The most common numeric conversions are [Atoi] (string to int) and [Itoa] (int to string). // // i, err := strconv.Atoi("-42") // s := strconv.Itoa(-42) // // These assume decimal and the Go int type. // // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: // // b, err := strconv.ParseBool("true") // f, err := strconv.ParseFloat("3.1415", 64) // i, err := strconv.ParseInt("-42", 10, 64) // u, err := strconv.ParseUint("42", 10, 64) // // The parse functions return the widest type (float64, int64, and uint64), // but if the size argument specifies a narrower width the result can be // converted to that narrower type without data loss: // // s := "2147483647" // biggest int32 // i64, err := strconv.ParseInt(s, 10, 32) // ... // i := int32(i64) // // [FormatBool], [FormatFloat], [FormatInt], and [FormatUint] convert values to strings: // // s := strconv.FormatBool(true) // s := strconv.FormatFloat(3.1415, 'E', -1, 64) // s := strconv.FormatInt(-42, 16) // s := strconv.FormatUint(42, 16) // // [AppendBool], [AppendFloat], [AppendInt], and [AppendUint] are similar but // append the formatted value to a destination slice. // // # String Conversions // // [Quote] and [QuoteToASCII] convert strings to quoted Go string literals. // The latter guarantees that the result is an ASCII string, by escaping // any non-ASCII Unicode with \u: // // q := strconv.Quote("Hello, 世界") // q := strconv.QuoteToASCII("Hello, 世界") // // [QuoteRune] and [QuoteRuneToASCII] are similar but accept runes and // return quoted Go rune literals. // // [Unquote] and [UnquoteChar] unquote Go string and rune literals. package strconv
go/src/strconv/doc.go/0
{ "file_path": "go/src/strconv/doc.go", "repo_id": "go", "token_count": 659 }
430
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package strconv_test import ( "runtime" . "strconv" "strings" "testing" ) var ( globalBuf [64]byte nextToOne = "1.00000000000000011102230246251565404236316680908203125" + strings.Repeat("0", 10000) + "1" mallocTest = []struct { count int desc string fn func() }{ {0, `AppendInt(localBuf[:0], 123, 10)`, func() { var localBuf [64]byte AppendInt(localBuf[:0], 123, 10) }}, {0, `AppendInt(globalBuf[:0], 123, 10)`, func() { AppendInt(globalBuf[:0], 123, 10) }}, {0, `AppendFloat(localBuf[:0], 1.23, 'g', 5, 64)`, func() { var localBuf [64]byte AppendFloat(localBuf[:0], 1.23, 'g', 5, 64) }}, {0, `AppendFloat(globalBuf[:0], 1.23, 'g', 5, 64)`, func() { AppendFloat(globalBuf[:0], 1.23, 'g', 5, 64) }}, // In practice we see 7 for the next one, but allow some slop. // Before pre-allocation in appendQuotedWith, we saw 39. {10, `AppendQuoteToASCII(nil, oneMB)`, func() { AppendQuoteToASCII(nil, string(oneMB)) }}, {0, `ParseFloat("123.45", 64)`, func() { ParseFloat("123.45", 64) }}, {0, `ParseFloat("123.456789123456789", 64)`, func() { ParseFloat("123.456789123456789", 64) }}, {0, `ParseFloat("1.000000000000000111022302462515654042363166809082031251", 64)`, func() { ParseFloat("1.000000000000000111022302462515654042363166809082031251", 64) }}, {0, `ParseFloat("1.0000000000000001110223024625156540423631668090820312500...001", 64)`, func() { ParseFloat(nextToOne, 64) }}, } ) var oneMB []byte // Will be allocated to 1MB of random data by TestCountMallocs. func TestCountMallocs(t *testing.T) { if testing.Short() { t.Skip("skipping malloc count in short mode") } if runtime.GOMAXPROCS(0) > 1 { t.Skip("skipping; GOMAXPROCS>1") } // Allocate a big messy buffer for AppendQuoteToASCII's test. oneMB = make([]byte, 1e6) for i := range oneMB { oneMB[i] = byte(i) } for _, mt := range mallocTest { allocs := testing.AllocsPerRun(100, mt.fn) if max := float64(mt.count); allocs > max { t.Errorf("%s: %v allocs, want <=%v", mt.desc, allocs, max) } } } // Sink makes sure the compiler cannot optimize away the benchmarks. var Sink struct { Bool bool Int int Int64 int64 Uint64 uint64 Float64 float64 Complex128 complex128 Error error Bytes []byte } func TestAllocationsFromBytes(t *testing.T) { const runsPerTest = 100 bytes := struct{ Bool, Number, String, Buffer []byte }{ Bool: []byte("false"), Number: []byte("123456789"), String: []byte("hello, world!"), Buffer: make([]byte, 1024), } checkNoAllocs := func(f func()) func(t *testing.T) { return func(t *testing.T) { t.Helper() if allocs := testing.AllocsPerRun(runsPerTest, f); allocs != 0 { t.Errorf("got %v allocs, want 0 allocs", allocs) } } } t.Run("Atoi", checkNoAllocs(func() { Sink.Int, Sink.Error = Atoi(string(bytes.Number)) })) t.Run("ParseBool", checkNoAllocs(func() { Sink.Bool, Sink.Error = ParseBool(string(bytes.Bool)) })) t.Run("ParseInt", checkNoAllocs(func() { Sink.Int64, Sink.Error = ParseInt(string(bytes.Number), 10, 64) })) t.Run("ParseUint", checkNoAllocs(func() { Sink.Uint64, Sink.Error = ParseUint(string(bytes.Number), 10, 64) })) t.Run("ParseFloat", checkNoAllocs(func() { Sink.Float64, Sink.Error = ParseFloat(string(bytes.Number), 64) })) t.Run("ParseComplex", checkNoAllocs(func() { Sink.Complex128, Sink.Error = ParseComplex(string(bytes.Number), 128) })) t.Run("CanBackquote", checkNoAllocs(func() { Sink.Bool = CanBackquote(string(bytes.String)) })) t.Run("AppendQuote", checkNoAllocs(func() { Sink.Bytes = AppendQuote(bytes.Buffer[:0], string(bytes.String)) })) t.Run("AppendQuoteToASCII", checkNoAllocs(func() { Sink.Bytes = AppendQuoteToASCII(bytes.Buffer[:0], string(bytes.String)) })) t.Run("AppendQuoteToGraphic", checkNoAllocs(func() { Sink.Bytes = AppendQuoteToGraphic(bytes.Buffer[:0], string(bytes.String)) })) } func TestErrorPrefixes(t *testing.T) { _, errInt := Atoi("INVALID") _, errBool := ParseBool("INVALID") _, errFloat := ParseFloat("INVALID", 64) _, errInt64 := ParseInt("INVALID", 10, 64) _, errUint64 := ParseUint("INVALID", 10, 64) vectors := []struct { err error // Input error want string // Function name wanted }{ {errInt, "Atoi"}, {errBool, "ParseBool"}, {errFloat, "ParseFloat"}, {errInt64, "ParseInt"}, {errUint64, "ParseUint"}, } for _, v := range vectors { nerr, ok := v.err.(*NumError) if !ok { t.Errorf("test %s, error was not a *NumError", v.want) continue } if got := nerr.Func; got != v.want { t.Errorf("mismatching Func: got %s, want %s", got, v.want) } } }
go/src/strconv/strconv_test.go/0
{ "file_path": "go/src/strconv/strconv_test.go", "repo_id": "go", "token_count": 2086 }
431
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package strings implements simple functions to manipulate UTF-8 encoded strings. // // For information about UTF-8 strings in Go, see https://blog.golang.org/strings. package strings import ( "internal/bytealg" "internal/stringslite" "unicode" "unicode/utf8" ) const maxInt = int(^uint(0) >> 1) // explode splits s into a slice of UTF-8 strings, // one string per Unicode character up to a maximum of n (n < 0 means no limit). // Invalid UTF-8 bytes are sliced individually. func explode(s string, n int) []string { l := utf8.RuneCountInString(s) if n < 0 || n > l { n = l } a := make([]string, n) for i := 0; i < n-1; i++ { _, size := utf8.DecodeRuneInString(s) a[i] = s[:size] s = s[size:] } if n > 0 { a[n-1] = s } return a } // Count counts the number of non-overlapping instances of substr in s. // If substr is an empty string, Count returns 1 + the number of Unicode code points in s. func Count(s, substr string) int { // special case if len(substr) == 0 { return utf8.RuneCountInString(s) + 1 } if len(substr) == 1 { return bytealg.CountString(s, substr[0]) } n := 0 for { i := Index(s, substr) if i == -1 { return n } n++ s = s[i+len(substr):] } } // Contains reports whether substr is within s. func Contains(s, substr string) bool { return Index(s, substr) >= 0 } // ContainsAny reports whether any Unicode code points in chars are within s. func ContainsAny(s, chars string) bool { return IndexAny(s, chars) >= 0 } // ContainsRune reports whether the Unicode code point r is within s. func ContainsRune(s string, r rune) bool { return IndexRune(s, r) >= 0 } // ContainsFunc reports whether any Unicode code points r within s satisfy f(r). func ContainsFunc(s string, f func(rune) bool) bool { return IndexFunc(s, f) >= 0 } // LastIndex returns the index of the last instance of substr in s, or -1 if substr is not present in s. func LastIndex(s, substr string) int { n := len(substr) switch { case n == 0: return len(s) case n == 1: return bytealg.LastIndexByteString(s, substr[0]) case n == len(s): if substr == s { return 0 } return -1 case n > len(s): return -1 } // Rabin-Karp search from the end of the string hashss, pow := bytealg.HashStrRev(substr) last := len(s) - n var h uint32 for i := len(s) - 1; i >= last; i-- { h = h*bytealg.PrimeRK + uint32(s[i]) } if h == hashss && s[last:] == substr { return last } for i := last - 1; i >= 0; i-- { h *= bytealg.PrimeRK h += uint32(s[i]) h -= pow * uint32(s[i+n]) if h == hashss && s[i:i+n] == substr { return i } } return -1 } // IndexByte returns the index of the first instance of c in s, or -1 if c is not present in s. func IndexByte(s string, c byte) int { return stringslite.IndexByte(s, c) } // IndexRune returns the index of the first instance of the Unicode code point // r, or -1 if rune is not present in s. // If r is [utf8.RuneError], it returns the first instance of any // invalid UTF-8 byte sequence. func IndexRune(s string, r rune) int { switch { case 0 <= r && r < utf8.RuneSelf: return IndexByte(s, byte(r)) case r == utf8.RuneError: for i, r := range s { if r == utf8.RuneError { return i } } return -1 case !utf8.ValidRune(r): return -1 default: return Index(s, string(r)) } } // IndexAny returns the index of the first instance of any Unicode code point // from chars in s, or -1 if no Unicode code point from chars is present in s. func IndexAny(s, chars string) int { if chars == "" { // Avoid scanning all of s. return -1 } if len(chars) == 1 { // Avoid scanning all of s. r := rune(chars[0]) if r >= utf8.RuneSelf { r = utf8.RuneError } return IndexRune(s, r) } if len(s) > 8 { if as, isASCII := makeASCIISet(chars); isASCII { for i := 0; i < len(s); i++ { if as.contains(s[i]) { return i } } return -1 } } for i, c := range s { if IndexRune(chars, c) >= 0 { return i } } return -1 } // LastIndexAny returns the index of the last instance of any Unicode code // point from chars in s, or -1 if no Unicode code point from chars is // present in s. func LastIndexAny(s, chars string) int { if chars == "" { // Avoid scanning all of s. return -1 } if len(s) == 1 { rc := rune(s[0]) if rc >= utf8.RuneSelf { rc = utf8.RuneError } if IndexRune(chars, rc) >= 0 { return 0 } return -1 } if len(s) > 8 { if as, isASCII := makeASCIISet(chars); isASCII { for i := len(s) - 1; i >= 0; i-- { if as.contains(s[i]) { return i } } return -1 } } if len(chars) == 1 { rc := rune(chars[0]) if rc >= utf8.RuneSelf { rc = utf8.RuneError } for i := len(s); i > 0; { r, size := utf8.DecodeLastRuneInString(s[:i]) i -= size if rc == r { return i } } return -1 } for i := len(s); i > 0; { r, size := utf8.DecodeLastRuneInString(s[:i]) i -= size if IndexRune(chars, r) >= 0 { return i } } return -1 } // LastIndexByte returns the index of the last instance of c in s, or -1 if c is not present in s. func LastIndexByte(s string, c byte) int { return bytealg.LastIndexByteString(s, c) } // Generic split: splits after each instance of sep, // including sepSave bytes of sep in the subarrays. func genSplit(s, sep string, sepSave, n int) []string { if n == 0 { return nil } if sep == "" { return explode(s, n) } if n < 0 { n = Count(s, sep) + 1 } if n > len(s)+1 { n = len(s) + 1 } a := make([]string, n) n-- i := 0 for i < n { m := Index(s, sep) if m < 0 { break } a[i] = s[:m+sepSave] s = s[m+len(sep):] i++ } a[i] = s return a[:i+1] } // SplitN slices s into substrings separated by sep and returns a slice of // the substrings between those separators. // // The count determines the number of substrings to return: // - n > 0: at most n substrings; the last substring will be the unsplit remainder; // - n == 0: the result is nil (zero substrings); // - n < 0: all substrings. // // Edge cases for s and sep (for example, empty strings) are handled // as described in the documentation for [Split]. // // To split around the first instance of a separator, see [Cut]. func SplitN(s, sep string, n int) []string { return genSplit(s, sep, 0, n) } // SplitAfterN slices s into substrings after each instance of sep and // returns a slice of those substrings. // // The count determines the number of substrings to return: // - n > 0: at most n substrings; the last substring will be the unsplit remainder; // - n == 0: the result is nil (zero substrings); // - n < 0: all substrings. // // Edge cases for s and sep (for example, empty strings) are handled // as described in the documentation for [SplitAfter]. func SplitAfterN(s, sep string, n int) []string { return genSplit(s, sep, len(sep), n) } // Split slices s into all substrings separated by sep and returns a slice of // the substrings between those separators. // // If s does not contain sep and sep is not empty, Split returns a // slice of length 1 whose only element is s. // // If sep is empty, Split splits after each UTF-8 sequence. If both s // and sep are empty, Split returns an empty slice. // // It is equivalent to [SplitN] with a count of -1. // // To split around the first instance of a separator, see [Cut]. func Split(s, sep string) []string { return genSplit(s, sep, 0, -1) } // SplitAfter slices s into all substrings after each instance of sep and // returns a slice of those substrings. // // If s does not contain sep and sep is not empty, SplitAfter returns // a slice of length 1 whose only element is s. // // If sep is empty, SplitAfter splits after each UTF-8 sequence. If // both s and sep are empty, SplitAfter returns an empty slice. // // It is equivalent to [SplitAfterN] with a count of -1. func SplitAfter(s, sep string) []string { return genSplit(s, sep, len(sep), -1) } var asciiSpace = [256]uint8{'\t': 1, '\n': 1, '\v': 1, '\f': 1, '\r': 1, ' ': 1} // Fields splits the string s around each instance of one or more consecutive white space // characters, as defined by [unicode.IsSpace], returning a slice of substrings of s or an // empty slice if s contains only white space. func Fields(s string) []string { // First count the fields. // This is an exact count if s is ASCII, otherwise it is an approximation. n := 0 wasSpace := 1 // setBits is used to track which bits are set in the bytes of s. setBits := uint8(0) for i := 0; i < len(s); i++ { r := s[i] setBits |= r isSpace := int(asciiSpace[r]) n += wasSpace & ^isSpace wasSpace = isSpace } if setBits >= utf8.RuneSelf { // Some runes in the input string are not ASCII. return FieldsFunc(s, unicode.IsSpace) } // ASCII fast path a := make([]string, n) na := 0 fieldStart := 0 i := 0 // Skip spaces in the front of the input. for i < len(s) && asciiSpace[s[i]] != 0 { i++ } fieldStart = i for i < len(s) { if asciiSpace[s[i]] == 0 { i++ continue } a[na] = s[fieldStart:i] na++ i++ // Skip spaces in between fields. for i < len(s) && asciiSpace[s[i]] != 0 { i++ } fieldStart = i } if fieldStart < len(s) { // Last field might end at EOF. a[na] = s[fieldStart:] } return a } // FieldsFunc splits the string s at each run of Unicode code points c satisfying f(c) // and returns an array of slices of s. If all code points in s satisfy f(c) or the // string is empty, an empty slice is returned. // // FieldsFunc makes no guarantees about the order in which it calls f(c) // and assumes that f always returns the same value for a given c. func FieldsFunc(s string, f func(rune) bool) []string { // A span is used to record a slice of s of the form s[start:end]. // The start index is inclusive and the end index is exclusive. type span struct { start int end int } spans := make([]span, 0, 32) // Find the field start and end indices. // Doing this in a separate pass (rather than slicing the string s // and collecting the result substrings right away) is significantly // more efficient, possibly due to cache effects. start := -1 // valid span start if >= 0 for end, rune := range s { if f(rune) { if start >= 0 { spans = append(spans, span{start, end}) // Set start to a negative value. // Note: using -1 here consistently and reproducibly // slows down this code by a several percent on amd64. start = ^start } } else { if start < 0 { start = end } } } // Last field might end at EOF. if start >= 0 { spans = append(spans, span{start, len(s)}) } // Create strings from recorded field indices. a := make([]string, len(spans)) for i, span := range spans { a[i] = s[span.start:span.end] } return a } // Join concatenates the elements of its first argument to create a single string. The separator // string sep is placed between elements in the resulting string. func Join(elems []string, sep string) string { switch len(elems) { case 0: return "" case 1: return elems[0] } var n int if len(sep) > 0 { if len(sep) >= maxInt/(len(elems)-1) { panic("strings: Join output length overflow") } n += len(sep) * (len(elems) - 1) } for _, elem := range elems { if len(elem) > maxInt-n { panic("strings: Join output length overflow") } n += len(elem) } var b Builder b.Grow(n) b.WriteString(elems[0]) for _, s := range elems[1:] { b.WriteString(sep) b.WriteString(s) } return b.String() } // HasPrefix reports whether the string s begins with prefix. func HasPrefix(s, prefix string) bool { return stringslite.HasPrefix(s, prefix) } // HasSuffix reports whether the string s ends with suffix. func HasSuffix(s, suffix string) bool { return stringslite.HasSuffix(s, suffix) } // Map returns a copy of the string s with all its characters modified // according to the mapping function. If mapping returns a negative value, the character is // dropped from the string with no replacement. func Map(mapping func(rune) rune, s string) string { // In the worst case, the string can grow when mapped, making // things unpleasant. But it's so rare we barge in assuming it's // fine. It could also shrink but that falls out naturally. // The output buffer b is initialized on demand, the first // time a character differs. var b Builder for i, c := range s { r := mapping(c) if r == c && c != utf8.RuneError { continue } var width int if c == utf8.RuneError { c, width = utf8.DecodeRuneInString(s[i:]) if width != 1 && r == c { continue } } else { width = utf8.RuneLen(c) } b.Grow(len(s) + utf8.UTFMax) b.WriteString(s[:i]) if r >= 0 { b.WriteRune(r) } s = s[i+width:] break } // Fast path for unchanged input if b.Cap() == 0 { // didn't call b.Grow above return s } for _, c := range s { r := mapping(c) if r >= 0 { // common case // Due to inlining, it is more performant to determine if WriteByte should be // invoked rather than always call WriteRune if r < utf8.RuneSelf { b.WriteByte(byte(r)) } else { // r is not an ASCII rune. b.WriteRune(r) } } } return b.String() } // According to static analysis, spaces, dashes, zeros, equals, and tabs // are the most commonly repeated string literal, // often used for display on fixed-width terminal windows. // Pre-declare constants for these for O(1) repetition in the common-case. const ( repeatedSpaces = "" + " " + " " repeatedDashes = "" + "----------------------------------------------------------------" + "----------------------------------------------------------------" repeatedZeroes = "" + "0000000000000000000000000000000000000000000000000000000000000000" repeatedEquals = "" + "================================================================" + "================================================================" repeatedTabs = "" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" + "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t" ) // Repeat returns a new string consisting of count copies of the string s. // // It panics if count is negative or if the result of (len(s) * count) // overflows. func Repeat(s string, count int) string { switch count { case 0: return "" case 1: return s } // Since we cannot return an error on overflow, // we should panic if the repeat will generate an overflow. // See golang.org/issue/16237. if count < 0 { panic("strings: negative Repeat count") } if len(s) > maxInt/count { panic("strings: Repeat output length overflow") } n := len(s) * count if len(s) == 0 { return "" } // Optimize for commonly repeated strings of relatively short length. switch s[0] { case ' ', '-', '0', '=', '\t': switch { case n <= len(repeatedSpaces) && HasPrefix(repeatedSpaces, s): return repeatedSpaces[:n] case n <= len(repeatedDashes) && HasPrefix(repeatedDashes, s): return repeatedDashes[:n] case n <= len(repeatedZeroes) && HasPrefix(repeatedZeroes, s): return repeatedZeroes[:n] case n <= len(repeatedEquals) && HasPrefix(repeatedEquals, s): return repeatedEquals[:n] case n <= len(repeatedTabs) && HasPrefix(repeatedTabs, s): return repeatedTabs[:n] } } // Past a certain chunk size it is counterproductive to use // larger chunks as the source of the write, as when the source // is too large we are basically just thrashing the CPU D-cache. // So if the result length is larger than an empirically-found // limit (8KB), we stop growing the source string once the limit // is reached and keep reusing the same source string - that // should therefore be always resident in the L1 cache - until we // have completed the construction of the result. // This yields significant speedups (up to +100%) in cases where // the result length is large (roughly, over L2 cache size). const chunkLimit = 8 * 1024 chunkMax := n if n > chunkLimit { chunkMax = chunkLimit / len(s) * len(s) if chunkMax == 0 { chunkMax = len(s) } } var b Builder b.Grow(n) b.WriteString(s) for b.Len() < n { chunk := n - b.Len() if chunk > b.Len() { chunk = b.Len() } if chunk > chunkMax { chunk = chunkMax } b.WriteString(b.String()[:chunk]) } return b.String() } // ToUpper returns s with all Unicode letters mapped to their upper case. func ToUpper(s string) string { isASCII, hasLower := true, false for i := 0; i < len(s); i++ { c := s[i] if c >= utf8.RuneSelf { isASCII = false break } hasLower = hasLower || ('a' <= c && c <= 'z') } if isASCII { // optimize for ASCII-only strings. if !hasLower { return s } var ( b Builder pos int ) b.Grow(len(s)) for i := 0; i < len(s); i++ { c := s[i] if 'a' <= c && c <= 'z' { c -= 'a' - 'A' if pos < i { b.WriteString(s[pos:i]) } b.WriteByte(c) pos = i + 1 } } if pos < len(s) { b.WriteString(s[pos:]) } return b.String() } return Map(unicode.ToUpper, s) } // ToLower returns s with all Unicode letters mapped to their lower case. func ToLower(s string) string { isASCII, hasUpper := true, false for i := 0; i < len(s); i++ { c := s[i] if c >= utf8.RuneSelf { isASCII = false break } hasUpper = hasUpper || ('A' <= c && c <= 'Z') } if isASCII { // optimize for ASCII-only strings. if !hasUpper { return s } var ( b Builder pos int ) b.Grow(len(s)) for i := 0; i < len(s); i++ { c := s[i] if 'A' <= c && c <= 'Z' { c += 'a' - 'A' if pos < i { b.WriteString(s[pos:i]) } b.WriteByte(c) pos = i + 1 } } if pos < len(s) { b.WriteString(s[pos:]) } return b.String() } return Map(unicode.ToLower, s) } // ToTitle returns a copy of the string s with all Unicode letters mapped to // their Unicode title case. func ToTitle(s string) string { return Map(unicode.ToTitle, s) } // ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their // upper case using the case mapping specified by c. func ToUpperSpecial(c unicode.SpecialCase, s string) string { return Map(c.ToUpper, s) } // ToLowerSpecial returns a copy of the string s with all Unicode letters mapped to their // lower case using the case mapping specified by c. func ToLowerSpecial(c unicode.SpecialCase, s string) string { return Map(c.ToLower, s) } // ToTitleSpecial returns a copy of the string s with all Unicode letters mapped to their // Unicode title case, giving priority to the special casing rules. func ToTitleSpecial(c unicode.SpecialCase, s string) string { return Map(c.ToTitle, s) } // ToValidUTF8 returns a copy of the string s with each run of invalid UTF-8 byte sequences // replaced by the replacement string, which may be empty. func ToValidUTF8(s, replacement string) string { var b Builder for i, c := range s { if c != utf8.RuneError { continue } _, wid := utf8.DecodeRuneInString(s[i:]) if wid == 1 { b.Grow(len(s) + len(replacement)) b.WriteString(s[:i]) s = s[i:] break } } // Fast path for unchanged input if b.Cap() == 0 { // didn't call b.Grow above return s } invalid := false // previous byte was from an invalid UTF-8 sequence for i := 0; i < len(s); { c := s[i] if c < utf8.RuneSelf { i++ invalid = false b.WriteByte(c) continue } _, wid := utf8.DecodeRuneInString(s[i:]) if wid == 1 { i++ if !invalid { invalid = true b.WriteString(replacement) } continue } invalid = false b.WriteString(s[i : i+wid]) i += wid } return b.String() } // isSeparator reports whether the rune could mark a word boundary. // TODO: update when package unicode captures more of the properties. func isSeparator(r rune) bool { // ASCII alphanumerics and underscore are not separators if r <= 0x7F { switch { case '0' <= r && r <= '9': return false case 'a' <= r && r <= 'z': return false case 'A' <= r && r <= 'Z': return false case r == '_': return false } return true } // Letters and digits are not separators if unicode.IsLetter(r) || unicode.IsDigit(r) { return false } // Otherwise, all we can do for now is treat spaces as separators. return unicode.IsSpace(r) } // Title returns a copy of the string s with all Unicode letters that begin words // mapped to their Unicode title case. // // Deprecated: The rule Title uses for word boundaries does not handle Unicode // punctuation properly. Use golang.org/x/text/cases instead. func Title(s string) string { // Use a closure here to remember state. // Hackish but effective. Depends on Map scanning in order and calling // the closure once per rune. prev := ' ' return Map( func(r rune) rune { if isSeparator(prev) { prev = r return unicode.ToTitle(r) } prev = r return r }, s) } // TrimLeftFunc returns a slice of the string s with all leading // Unicode code points c satisfying f(c) removed. func TrimLeftFunc(s string, f func(rune) bool) string { i := indexFunc(s, f, false) if i == -1 { return "" } return s[i:] } // TrimRightFunc returns a slice of the string s with all trailing // Unicode code points c satisfying f(c) removed. func TrimRightFunc(s string, f func(rune) bool) string { i := lastIndexFunc(s, f, false) if i >= 0 && s[i] >= utf8.RuneSelf { _, wid := utf8.DecodeRuneInString(s[i:]) i += wid } else { i++ } return s[0:i] } // TrimFunc returns a slice of the string s with all leading // and trailing Unicode code points c satisfying f(c) removed. func TrimFunc(s string, f func(rune) bool) string { return TrimRightFunc(TrimLeftFunc(s, f), f) } // IndexFunc returns the index into s of the first Unicode // code point satisfying f(c), or -1 if none do. func IndexFunc(s string, f func(rune) bool) int { return indexFunc(s, f, true) } // LastIndexFunc returns the index into s of the last // Unicode code point satisfying f(c), or -1 if none do. func LastIndexFunc(s string, f func(rune) bool) int { return lastIndexFunc(s, f, true) } // indexFunc is the same as IndexFunc except that if // truth==false, the sense of the predicate function is // inverted. func indexFunc(s string, f func(rune) bool, truth bool) int { for i, r := range s { if f(r) == truth { return i } } return -1 } // lastIndexFunc is the same as LastIndexFunc except that if // truth==false, the sense of the predicate function is // inverted. func lastIndexFunc(s string, f func(rune) bool, truth bool) int { for i := len(s); i > 0; { r, size := utf8.DecodeLastRuneInString(s[0:i]) i -= size if f(r) == truth { return i } } return -1 } // asciiSet is a 32-byte value, where each bit represents the presence of a // given ASCII character in the set. The 128-bits of the lower 16 bytes, // starting with the least-significant bit of the lowest word to the // most-significant bit of the highest word, map to the full range of all // 128 ASCII characters. The 128-bits of the upper 16 bytes will be zeroed, // ensuring that any non-ASCII character will be reported as not in the set. // This allocates a total of 32 bytes even though the upper half // is unused to avoid bounds checks in asciiSet.contains. type asciiSet [8]uint32 // makeASCIISet creates a set of ASCII characters and reports whether all // characters in chars are ASCII. func makeASCIISet(chars string) (as asciiSet, ok bool) { for i := 0; i < len(chars); i++ { c := chars[i] if c >= utf8.RuneSelf { return as, false } as[c/32] |= 1 << (c % 32) } return as, true } // contains reports whether c is inside the set. func (as *asciiSet) contains(c byte) bool { return (as[c/32] & (1 << (c % 32))) != 0 } // Trim returns a slice of the string s with all leading and // trailing Unicode code points contained in cutset removed. func Trim(s, cutset string) string { if s == "" || cutset == "" { return s } if len(cutset) == 1 && cutset[0] < utf8.RuneSelf { return trimLeftByte(trimRightByte(s, cutset[0]), cutset[0]) } if as, ok := makeASCIISet(cutset); ok { return trimLeftASCII(trimRightASCII(s, &as), &as) } return trimLeftUnicode(trimRightUnicode(s, cutset), cutset) } // TrimLeft returns a slice of the string s with all leading // Unicode code points contained in cutset removed. // // To remove a prefix, use [TrimPrefix] instead. func TrimLeft(s, cutset string) string { if s == "" || cutset == "" { return s } if len(cutset) == 1 && cutset[0] < utf8.RuneSelf { return trimLeftByte(s, cutset[0]) } if as, ok := makeASCIISet(cutset); ok { return trimLeftASCII(s, &as) } return trimLeftUnicode(s, cutset) } func trimLeftByte(s string, c byte) string { for len(s) > 0 && s[0] == c { s = s[1:] } return s } func trimLeftASCII(s string, as *asciiSet) string { for len(s) > 0 { if !as.contains(s[0]) { break } s = s[1:] } return s } func trimLeftUnicode(s, cutset string) string { for len(s) > 0 { r, n := rune(s[0]), 1 if r >= utf8.RuneSelf { r, n = utf8.DecodeRuneInString(s) } if !ContainsRune(cutset, r) { break } s = s[n:] } return s } // TrimRight returns a slice of the string s, with all trailing // Unicode code points contained in cutset removed. // // To remove a suffix, use [TrimSuffix] instead. func TrimRight(s, cutset string) string { if s == "" || cutset == "" { return s } if len(cutset) == 1 && cutset[0] < utf8.RuneSelf { return trimRightByte(s, cutset[0]) } if as, ok := makeASCIISet(cutset); ok { return trimRightASCII(s, &as) } return trimRightUnicode(s, cutset) } func trimRightByte(s string, c byte) string { for len(s) > 0 && s[len(s)-1] == c { s = s[:len(s)-1] } return s } func trimRightASCII(s string, as *asciiSet) string { for len(s) > 0 { if !as.contains(s[len(s)-1]) { break } s = s[:len(s)-1] } return s } func trimRightUnicode(s, cutset string) string { for len(s) > 0 { r, n := rune(s[len(s)-1]), 1 if r >= utf8.RuneSelf { r, n = utf8.DecodeLastRuneInString(s) } if !ContainsRune(cutset, r) { break } s = s[:len(s)-n] } return s } // TrimSpace returns a slice of the string s, with all leading // and trailing white space removed, as defined by Unicode. func TrimSpace(s string) string { // Fast path for ASCII: look for the first ASCII non-space byte start := 0 for ; start < len(s); start++ { c := s[start] if c >= utf8.RuneSelf { // If we run into a non-ASCII byte, fall back to the // slower unicode-aware method on the remaining bytes return TrimFunc(s[start:], unicode.IsSpace) } if asciiSpace[c] == 0 { break } } // Now look for the first ASCII non-space byte from the end stop := len(s) for ; stop > start; stop-- { c := s[stop-1] if c >= utf8.RuneSelf { // start has been already trimmed above, should trim end only return TrimRightFunc(s[start:stop], unicode.IsSpace) } if asciiSpace[c] == 0 { break } } // At this point s[start:stop] starts and ends with an ASCII // non-space bytes, so we're done. Non-ASCII cases have already // been handled above. return s[start:stop] } // TrimPrefix returns s without the provided leading prefix string. // If s doesn't start with prefix, s is returned unchanged. func TrimPrefix(s, prefix string) string { return stringslite.TrimPrefix(s, prefix) } // TrimSuffix returns s without the provided trailing suffix string. // If s doesn't end with suffix, s is returned unchanged. func TrimSuffix(s, suffix string) string { return stringslite.TrimSuffix(s, suffix) } // Replace returns a copy of the string s with the first n // non-overlapping instances of old replaced by new. // If old is empty, it matches at the beginning of the string // and after each UTF-8 sequence, yielding up to k+1 replacements // for a k-rune string. // If n < 0, there is no limit on the number of replacements. func Replace(s, old, new string, n int) string { if old == new || n == 0 { return s // avoid allocation } // Compute number of replacements. if m := Count(s, old); m == 0 { return s // avoid allocation } else if n < 0 || m < n { n = m } // Apply replacements to buffer. var b Builder b.Grow(len(s) + n*(len(new)-len(old))) start := 0 for i := 0; i < n; i++ { j := start if len(old) == 0 { if i > 0 { _, wid := utf8.DecodeRuneInString(s[start:]) j += wid } } else { j += Index(s[start:], old) } b.WriteString(s[start:j]) b.WriteString(new) start = j + len(old) } b.WriteString(s[start:]) return b.String() } // ReplaceAll returns a copy of the string s with all // non-overlapping instances of old replaced by new. // If old is empty, it matches at the beginning of the string // and after each UTF-8 sequence, yielding up to k+1 replacements // for a k-rune string. func ReplaceAll(s, old, new string) string { return Replace(s, old, new, -1) } // EqualFold reports whether s and t, interpreted as UTF-8 strings, // are equal under simple Unicode case-folding, which is a more general // form of case-insensitivity. func EqualFold(s, t string) bool { // ASCII fast path i := 0 for ; i < len(s) && i < len(t); i++ { sr := s[i] tr := t[i] if sr|tr >= utf8.RuneSelf { goto hasUnicode } // Easy case. if tr == sr { continue } // Make sr < tr to simplify what follows. if tr < sr { tr, sr = sr, tr } // ASCII only, sr/tr must be upper/lower case if 'A' <= sr && sr <= 'Z' && tr == sr+'a'-'A' { continue } return false } // Check if we've exhausted both strings. return len(s) == len(t) hasUnicode: s = s[i:] t = t[i:] for _, sr := range s { // If t is exhausted the strings are not equal. if len(t) == 0 { return false } // Extract first rune from second string. var tr rune if t[0] < utf8.RuneSelf { tr, t = rune(t[0]), t[1:] } else { r, size := utf8.DecodeRuneInString(t) tr, t = r, t[size:] } // If they match, keep going; if not, return false. // Easy case. if tr == sr { continue } // Make sr < tr to simplify what follows. if tr < sr { tr, sr = sr, tr } // Fast check for ASCII. if tr < utf8.RuneSelf { // ASCII only, sr/tr must be upper/lower case if 'A' <= sr && sr <= 'Z' && tr == sr+'a'-'A' { continue } return false } // General case. SimpleFold(x) returns the next equivalent rune > x // or wraps around to smaller values. r := unicode.SimpleFold(sr) for r != sr && r < tr { r = unicode.SimpleFold(r) } if r == tr { continue } return false } // First string is empty, so check if the second one is also empty. return len(t) == 0 } // Index returns the index of the first instance of substr in s, or -1 if substr is not present in s. func Index(s, substr string) int { return stringslite.Index(s, substr) } // Cut slices s around the first instance of sep, // returning the text before and after sep. // The found result reports whether sep appears in s. // If sep does not appear in s, cut returns s, "", false. func Cut(s, sep string) (before, after string, found bool) { return stringslite.Cut(s, sep) } // CutPrefix returns s without the provided leading prefix string // and reports whether it found the prefix. // If s doesn't start with prefix, CutPrefix returns s, false. // If prefix is the empty string, CutPrefix returns s, true. func CutPrefix(s, prefix string) (after string, found bool) { return stringslite.CutPrefix(s, prefix) } // CutSuffix returns s without the provided ending suffix string // and reports whether it found the suffix. // If s doesn't end with suffix, CutSuffix returns s, false. // If suffix is the empty string, CutSuffix returns s, true. func CutSuffix(s, suffix string) (before string, found bool) { return stringslite.CutSuffix(s, suffix) }
go/src/strings/strings.go/0
{ "file_path": "go/src/strings/strings.go", "repo_id": "go", "token_count": 12183 }
432
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sync // Export for testing. var Runtime_Semacquire = runtime_Semacquire var Runtime_Semrelease = runtime_Semrelease var Runtime_procPin = runtime_procPin var Runtime_procUnpin = runtime_procUnpin // PoolDequeue exports an interface for pollDequeue testing. type PoolDequeue interface { PushHead(val any) bool PopHead() (any, bool) PopTail() (any, bool) } func NewPoolDequeue(n int) PoolDequeue { d := &poolDequeue{ vals: make([]eface, n), } // For testing purposes, set the head and tail indexes close // to wrapping around. d.headTail.Store(d.pack(1<<dequeueBits-500, 1<<dequeueBits-500)) return d } func (d *poolDequeue) PushHead(val any) bool { return d.pushHead(val) } func (d *poolDequeue) PopHead() (any, bool) { return d.popHead() } func (d *poolDequeue) PopTail() (any, bool) { return d.popTail() } func NewPoolChain() PoolDequeue { return new(poolChain) } func (c *poolChain) PushHead(val any) bool { c.pushHead(val) return true } func (c *poolChain) PopHead() (any, bool) { return c.popHead() } func (c *poolChain) PopTail() (any, bool) { return c.popTail() }
go/src/sync/export_test.go/0
{ "file_path": "go/src/sync/export_test.go", "repo_id": "go", "token_count": 453 }
433
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" // func rawVforkSyscall(trap, a1, a2, a3 uintptr) (r1, err uintptr) TEXT ·rawVforkSyscall(SB),NOSPLIT,$0-48 MOVD a1+8(FP), R0 MOVD a2+16(FP), R1 MOVD a3+24(FP), R2 MOVD $0, R3 MOVD $0, R4 MOVD $0, R5 MOVD trap+0(FP), R8 // syscall entry SVC CMN $4095, R0 BCC ok MOVD $-1, R4 MOVD R4, r1+32(FP) // r1 NEG R0, R0 MOVD R0, err+40(FP) // errno RET ok: MOVD R0, r1+32(FP) // r1 MOVD ZR, err+40(FP) // errno RET // func rawSyscallNoError(trap uintptr, a1, a2, a3 uintptr) (r1, r2 uintptr); TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48 MOVD a1+8(FP), R0 MOVD a2+16(FP), R1 MOVD a3+24(FP), R2 MOVD $0, R3 MOVD $0, R4 MOVD $0, R5 MOVD trap+0(FP), R8 // syscall entry SVC MOVD R0, r1+32(FP) MOVD R1, r2+40(FP) RET
go/src/syscall/asm_linux_arm64.s/0
{ "file_path": "go/src/syscall/asm_linux_arm64.s", "repo_id": "go", "token_count": 520 }
434
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" #include "funcdata.h" // // System call support for 386, Plan 9 // //func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err string) //func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err string) //func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) //func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) #define SYS_ERRSTR 41 /* from zsysnum_plan9.go */ // Trap # in AX, args on stack above caller pc. TEXT ·Syscall(SB),NOSPLIT,$148-32 NO_LOCAL_POINTERS CALL runtime·entersyscall(SB) MOVL trap+0(FP), AX // syscall entry // copy args down LEAL a1+4(FP), SI LEAL sysargs-144(SP), DI CLD MOVSL MOVSL MOVSL INT $64 MOVL AX, r1+16(FP) MOVL $0, r2+20(FP) CMPL AX, $-1 JNE ok3 LEAL errbuf-128(SP), AX MOVL AX, sysargs-144(SP) MOVL $128, sysargs1-140(SP) MOVL $SYS_ERRSTR, AX INT $64 CALL runtime·exitsyscall(SB) MOVL sysargs-144(SP), AX MOVL AX, errbuf-148(SP) CALL runtime·gostring(SB) LEAL str-144(SP), SI JMP copyresult3 ok3: CALL runtime·exitsyscall(SB) LEAL ·emptystring(SB), SI copyresult3: LEAL err+24(FP), DI CLD MOVSL MOVSL RET TEXT ·Syscall6(SB),NOSPLIT,$148-44 NO_LOCAL_POINTERS CALL runtime·entersyscall(SB) MOVL trap+0(FP), AX // syscall entry // copy args down LEAL a1+4(FP), SI LEAL sysargs-144(SP), DI CLD MOVSL MOVSL MOVSL MOVSL MOVSL MOVSL INT $64 MOVL AX, r1+28(FP) MOVL $0, r2+32(FP) CMPL AX, $-1 JNE ok4 LEAL errbuf-128(SP), AX MOVL AX, sysargs-144(SP) MOVL $128, sysargs1-140(SP) MOVL $SYS_ERRSTR, AX INT $64 CALL runtime·exitsyscall(SB) MOVL sysargs-144(SP), AX MOVL AX, errbuf-148(SP) CALL runtime·gostring(SB) LEAL str-144(SP), SI JMP copyresult4 ok4: CALL runtime·exitsyscall(SB) LEAL ·emptystring(SB), SI copyresult4: LEAL err+36(FP), DI CLD MOVSL MOVSL RET TEXT ·RawSyscall(SB),NOSPLIT,$0-28 MOVL trap+0(FP), AX // syscall entry // slide args down on top of system call number LEAL a1+4(FP), SI LEAL trap+0(FP), DI CLD MOVSL MOVSL MOVSL INT $64 MOVL AX, r1+16(FP) MOVL AX, r2+20(FP) MOVL AX, err+24(FP) RET TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 MOVL trap+0(FP), AX // syscall entry // slide args down on top of system call number LEAL a1+4(FP), SI LEAL trap+0(FP), DI CLD MOVSL MOVSL MOVSL MOVSL MOVSL MOVSL INT $64 MOVL AX, r1+28(FP) MOVL AX, r2+32(FP) MOVL AX, err+36(FP) RET #define SYS_SEEK 39 /* from zsysnum_plan9.go */ //func seek(placeholder uintptr, fd int, offset int64, whence int) (newoffset int64, err string) TEXT ·seek(SB),NOSPLIT,$24-36 NO_LOCAL_POINTERS LEAL newoffset+20(FP), AX MOVL AX, placeholder+0(FP) // copy args down LEAL placeholder+0(FP), SI LEAL sysargs-20(SP), DI CLD MOVSL MOVSL MOVSL MOVSL MOVSL MOVL $SYS_SEEK, AX // syscall entry INT $64 CMPL AX, $-1 JNE ok6 MOVL AX, newoffset_lo+20(FP) MOVL AX, newoffset_hi+24(FP) CALL syscall·errstr(SB) MOVL SP, SI JMP copyresult6 ok6: LEAL ·emptystring(SB), SI copyresult6: LEAL err+28(FP), DI CLD MOVSL MOVSL RET
go/src/syscall/asm_plan9_386.s/0
{ "file_path": "go/src/syscall/asm_plan9_386.s", "repo_id": "go", "token_count": 1661 }
435
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package syscall // Constants const ( // Invented values to support what package os expects. O_CREAT = 0x02000 O_APPEND = 0x00400 O_NOCTTY = 0x00000 O_NONBLOCK = 0x00000 O_SYNC = 0x00000 O_ASYNC = 0x00000 S_IFMT = 0x1f000 S_IFIFO = 0x1000 S_IFCHR = 0x2000 S_IFDIR = 0x4000 S_IFBLK = 0x6000 S_IFREG = 0x8000 S_IFLNK = 0xa000 S_IFSOCK = 0xc000 ) // Errors var ( EINVAL = NewError("bad arg in system call") ENOTDIR = NewError("not a directory") EISDIR = NewError("file is a directory") ENOENT = NewError("file does not exist") EEXIST = NewError("file already exists") EMFILE = NewError("no free file descriptors") EIO = NewError("i/o error") ENAMETOOLONG = NewError("file name too long") EINTR = NewError("interrupted") EPERM = NewError("permission denied") EBUSY = NewError("no free devices") ETIMEDOUT = NewError("connection timed out") EPLAN9 = NewError("not supported by plan 9") // The following errors do not correspond to any // Plan 9 system messages. Invented to support // what package os and others expect. EACCES = NewError("access permission denied") EAFNOSUPPORT = NewError("address family not supported by protocol") ESPIPE = NewError("illegal seek") ) // Notes const ( SIGABRT = Note("abort") SIGALRM = Note("alarm") SIGHUP = Note("hangup") SIGINT = Note("interrupt") SIGKILL = Note("kill") SIGTERM = Note("interrupt") )
go/src/syscall/errors_plan9.go/0
{ "file_path": "go/src/syscall/errors_plan9.go", "repo_id": "go", "token_count": 676 }
436
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || netbsd || openbsd package syscall import ( "unsafe" ) // pgid should really be pid_t, however _C_int (aka int32) is generally // equivalent. func Tcgetpgrp(fd int) (pgid int32, err error) { if err := ioctlPtr(fd, TIOCGPGRP, unsafe.Pointer(&pgid)); err != nil { return -1, err } return pgid, nil } func Tcsetpgrp(fd int, pgid int32) (err error) { return ioctlPtr(fd, TIOCSPGRP, unsafe.Pointer(&pgid)) }
go/src/syscall/export_bsd_test.go/0
{ "file_path": "go/src/syscall/export_bsd_test.go", "repo_id": "go", "token_count": 230 }
437
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build js && wasm package js import "sync" var ( funcsMu sync.Mutex funcs = make(map[uint32]func(Value, []Value) any) nextFuncID uint32 = 1 ) // Func is a wrapped Go function to be called by JavaScript. type Func struct { Value // the JavaScript function that invokes the Go function id uint32 } // FuncOf returns a function to be used by JavaScript. // // The Go function fn is called with the value of JavaScript's "this" keyword and the // arguments of the invocation. The return value of the invocation is // the result of the Go function mapped back to JavaScript according to ValueOf. // // Invoking the wrapped Go function from JavaScript will // pause the event loop and spawn a new goroutine. // Other wrapped functions which are triggered during a call from Go to JavaScript // get executed on the same goroutine. // // As a consequence, if one wrapped function blocks, JavaScript's event loop // is blocked until that function returns. Hence, calling any async JavaScript // API, which requires the event loop, like fetch (http.Client), will cause an // immediate deadlock. Therefore a blocking function should explicitly start a // new goroutine. // // Func.Release must be called to free up resources when the function will not be invoked any more. func FuncOf(fn func(this Value, args []Value) any) Func { funcsMu.Lock() id := nextFuncID nextFuncID++ funcs[id] = fn funcsMu.Unlock() return Func{ id: id, Value: jsGo.Call("_makeFuncWrapper", id), } } // Release frees up resources allocated for the function. // The function must not be invoked after calling Release. // It is allowed to call Release while the function is still running. func (c Func) Release() { funcsMu.Lock() delete(funcs, c.id) funcsMu.Unlock() } // setEventHandler is defined in the runtime package. func setEventHandler(fn func() bool) func init() { setEventHandler(handleEvent) } // handleEvent retrieves the pending event (window._pendingEvent) and calls the js.Func on it. // It returns true if an event was handled. func handleEvent() bool { // Retrieve the event from js cb := jsGo.Get("_pendingEvent") if cb.IsNull() { return false } jsGo.Set("_pendingEvent", Null()) id := uint32(cb.Get("id").Int()) if id == 0 { // zero indicates deadlock select {} } // Retrieve the associated js.Func funcsMu.Lock() f, ok := funcs[id] funcsMu.Unlock() if !ok { Global().Get("console").Call("error", "call to released function") return true } // Call the js.Func with arguments this := cb.Get("this") argsObj := cb.Get("args") args := make([]Value, argsObj.Length()) for i := range args { args[i] = argsObj.Index(i) } result := f(this, args) // Return the result to js cb.Set("result", result) return true }
go/src/syscall/js/func.go/0
{ "file_path": "go/src/syscall/js/func.go", "repo_id": "go", "token_count": 921 }
438
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore // mksyscall_windows wraps golang.org/x/sys/windows/mkwinsyscall. package main import ( "bytes" "os" "os/exec" "path/filepath" "runtime" ) func main() { goTool := filepath.Join(runtime.GOROOT(), "bin", "go") listCmd := exec.Command(goTool, "list", "-m") listCmd.Env = append(os.Environ(), "GO111MODULE=on") var ( cmdEnv []string modArgs []string ) if out, err := listCmd.Output(); err == nil && string(bytes.TrimSpace(out)) == "std" { // Force module mode to use mkwinsyscall at the same version as the x/sys // module vendored into the standard library. cmdEnv = append(os.Environ(), "GO111MODULE=on") // Force -mod=readonly instead of the default -mod=vendor. // // mkwinsyscall is not itself vendored into the standard library, and it is // not feasible to do so at the moment: std-vendored libraries are included // in the "std" meta-pattern (because in general they *are* linked into // users binaries separately from the original import paths), and we can't // allow a binary in the "std" meta-pattern. modArgs = []string{"-mod=readonly"} } else { // Nobody outside the standard library should be using this wrapper: other // modules can vendor in the mkwinsyscall tool directly (as described in // https://golang.org/issue/25922), so they don't need this wrapper to // set module mode and -mod=readonly explicitly. os.Stderr.WriteString("WARNING: Please switch from using:\n go run $GOROOT/src/syscall/mksyscall_windows.go\nto using:\n go run golang.org/x/sys/windows/mkwinsyscall\n") } args := append([]string{"run"}, modArgs...) args = append(args, "golang.org/x/sys/windows/mkwinsyscall") args = append(args, os.Args[1:]...) cmd := exec.Command(goTool, args...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr cmd.Env = cmdEnv err := cmd.Run() if err != nil { os.Exit(1) } }
go/src/syscall/mksyscall_windows.go/0
{ "file_path": "go/src/syscall/mksyscall_windows.go", "repo_id": "go", "token_count": 723 }
439
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix package syscall import ( "sync/atomic" ) // origRlimitNofile, if non-nil, is the original soft RLIMIT_NOFILE. var origRlimitNofile atomic.Pointer[Rlimit] // Some systems set an artificially low soft limit on open file count, for compatibility // with code that uses select and its hard-coded maximum file descriptor // (limited by the size of fd_set). // // Go does not use select, so it should not be subject to these limits. // On some systems the limit is 256, which is very easy to run into, // even in simple programs like gofmt when they parallelize walking // a file tree. // // After a long discussion on go.dev/issue/46279, we decided the // best approach was for Go to raise the limit unconditionally for itself, // and then leave old software to set the limit back as needed. // Code that really wants Go to leave the limit alone can set the hard limit, // which Go of course has no choice but to respect. func init() { var lim Rlimit if err := Getrlimit(RLIMIT_NOFILE, &lim); err == nil && lim.Cur != lim.Max { origRlimitNofile.Store(&lim) nlim := lim nlim.Cur = nlim.Max adjustFileLimit(&nlim) setrlimit(RLIMIT_NOFILE, &nlim) } } func Setrlimit(resource int, rlim *Rlimit) error { if resource == RLIMIT_NOFILE { // Store nil in origRlimitNofile to tell StartProcess // to not adjust the rlimit in the child process. origRlimitNofile.Store(nil) } return setrlimit(resource, rlim) }
go/src/syscall/rlimit.go/0
{ "file_path": "go/src/syscall/rlimit.go", "repo_id": "go", "token_count": 498 }
440
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build wasip1 package syscall import "runtime" // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.) const ( E2BIG Errno = 1 EACCES Errno = 2 EADDRINUSE Errno = 3 EADDRNOTAVAIL Errno = 4 EAFNOSUPPORT Errno = 5 EAGAIN Errno = 6 EALREADY Errno = 7 EBADF Errno = 8 EBADMSG Errno = 9 EBUSY Errno = 10 ECANCELED Errno = 11 ECHILD Errno = 12 ECONNABORTED Errno = 13 ECONNREFUSED Errno = 14 ECONNRESET Errno = 15 EDEADLK Errno = 16 EDESTADDRREQ Errno = 17 EDOM Errno = 18 EDQUOT Errno = 19 EEXIST Errno = 20 EFAULT Errno = 21 EFBIG Errno = 22 EHOSTUNREACH Errno = 23 EIDRM Errno = 24 EILSEQ Errno = 25 EINPROGRESS Errno = 26 EINTR Errno = 27 EINVAL Errno = 28 EIO Errno = 29 EISCONN Errno = 30 EISDIR Errno = 31 ELOOP Errno = 32 EMFILE Errno = 33 EMLINK Errno = 34 EMSGSIZE Errno = 35 EMULTIHOP Errno = 36 ENAMETOOLONG Errno = 37 ENETDOWN Errno = 38 ENETRESET Errno = 39 ENETUNREACH Errno = 40 ENFILE Errno = 41 ENOBUFS Errno = 42 ENODEV Errno = 43 ENOENT Errno = 44 ENOEXEC Errno = 45 ENOLCK Errno = 46 ENOLINK Errno = 47 ENOMEM Errno = 48 ENOMSG Errno = 49 ENOPROTOOPT Errno = 50 ENOSPC Errno = 51 ENOSYS Errno = 52 ENOTCONN Errno = 53 ENOTDIR Errno = 54 ENOTEMPTY Errno = 55 ENOTRECOVERABLE Errno = 56 ENOTSOCK Errno = 57 ENOTSUP Errno = 58 ENOTTY Errno = 59 ENXIO Errno = 60 EOVERFLOW Errno = 61 EOWNERDEAD Errno = 62 EPERM Errno = 63 EPIPE Errno = 64 EPROTO Errno = 65 EPROTONOSUPPORT Errno = 66 EPROTOTYPE Errno = 67 ERANGE Errno = 68 EROFS Errno = 69 ESPIPE Errno = 70 ESRCH Errno = 71 ESTALE Errno = 72 ETIMEDOUT Errno = 73 ETXTBSY Errno = 74 EXDEV Errno = 75 ENOTCAPABLE Errno = 76 // needed by src/net/error_unix_test.go EOPNOTSUPP = ENOTSUP ) // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.) var errorstr = [...]string{ E2BIG: "Argument list too long", EACCES: "Permission denied", EADDRINUSE: "Address already in use", EADDRNOTAVAIL: "Address not available", EAFNOSUPPORT: "Address family not supported by protocol family", EAGAIN: "Try again", EALREADY: "Socket already connected", EBADF: "Bad file number", EBADMSG: "Trying to read unreadable message", EBUSY: "Device or resource busy", ECANCELED: "Operation canceled.", ECHILD: "No child processes", ECONNABORTED: "Connection aborted", ECONNREFUSED: "Connection refused", ECONNRESET: "Connection reset by peer", EDEADLK: "Deadlock condition", EDESTADDRREQ: "Destination address required", EDOM: "Math arg out of domain of func", EDQUOT: "Quota exceeded", EEXIST: "File exists", EFAULT: "Bad address", EFBIG: "File too large", EHOSTUNREACH: "Host is unreachable", EIDRM: "Identifier removed", EILSEQ: "EILSEQ", EINPROGRESS: "Connection already in progress", EINTR: "Interrupted system call", EINVAL: "Invalid argument", EIO: "I/O error", EISCONN: "Socket is already connected", EISDIR: "Is a directory", ELOOP: "Too many symbolic links", EMFILE: "Too many open files", EMLINK: "Too many links", EMSGSIZE: "Message too long", EMULTIHOP: "Multihop attempted", ENAMETOOLONG: "File name too long", ENETDOWN: "Network interface is not configured", ENETRESET: "Network dropped connection on reset", ENETUNREACH: "Network is unreachable", ENFILE: "File table overflow", ENOBUFS: "No buffer space available", ENODEV: "No such device", ENOENT: "No such file or directory", ENOEXEC: "Exec format error", ENOLCK: "No record locks available", ENOLINK: "The link has been severed", ENOMEM: "Out of memory", ENOMSG: "No message of desired type", ENOPROTOOPT: "Protocol not available", ENOSPC: "No space left on device", ENOSYS: "Not implemented on " + runtime.GOOS, ENOTCONN: "Socket is not connected", ENOTDIR: "Not a directory", ENOTEMPTY: "Directory not empty", ENOTRECOVERABLE: "State not recoverable", ENOTSOCK: "Socket operation on non-socket", ENOTSUP: "Not supported", ENOTTY: "Not a typewriter", ENXIO: "No such device or address", EOVERFLOW: "Value too large for defined data type", EOWNERDEAD: "Owner died", EPERM: "Operation not permitted", EPIPE: "Broken pipe", EPROTO: "Protocol error", EPROTONOSUPPORT: "Unknown protocol", EPROTOTYPE: "Protocol wrong type for socket", ERANGE: "Math result not representable", EROFS: "Read-only file system", ESPIPE: "Illegal seek", ESRCH: "No such process", ESTALE: "Stale file handle", ETIMEDOUT: "Connection timed out", ETXTBSY: "Text file busy", EXDEV: "Cross-device link", ENOTCAPABLE: "Capabilities insufficient", } // Do the interface allocations only once for common // Errno values. var ( errEAGAIN error = EAGAIN errEINVAL error = EINVAL errENOENT error = ENOENT ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. // // We set both noinline and nosplit to reduce code size, this function has many // call sites in the syscall package, inlining it causes a significant increase // of the compiled code; the function call ultimately does not make a difference // in the performance of syscall functions since the time is dominated by calls // to the imports and path resolution. // //go:noinline //go:nosplit func errnoErr(e Errno) error { switch e { case 0: return nil case EAGAIN: return errEAGAIN case EINVAL: return errEINVAL case ENOENT: return errENOENT } return e }
go/src/syscall/tables_wasip1.go/0
{ "file_path": "go/src/syscall/tables_wasip1.go", "repo_id": "go", "token_count": 3236 }
441
// mksyscall.pl -l32 -plan9 -tags plan9,386 syscall_plan9.go // Code generated by the command above; DO NOT EDIT. //go:build plan9 && 386 package syscall import "unsafe" // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func fd2path(fd int, buf []byte) (err error) { var _p0 unsafe.Pointer if len(buf) > 0 { _p0 = unsafe.Pointer(&buf[0]) } else { _p0 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall(SYS_FD2PATH, uintptr(fd), uintptr(_p0), uintptr(len(buf))) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func pipe(p *[2]int32) (err error) { r0, _, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func await(s []byte) (n int, err error) { var _p0 unsafe.Pointer if len(s) > 0 { _p0 = unsafe.Pointer(&s[0]) } else { _p0 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall(SYS_AWAIT, uintptr(_p0), uintptr(len(s)), 0) n = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func open(path string, mode int) (fd int, err error) { var _p0 *byte _p0, err = BytePtrFromString(path) if err != nil { return } r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) fd = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func create(path string, mode int, perm uint32) (fd int, err error) { var _p0 *byte _p0, err = BytePtrFromString(path) if err != nil { return } r0, _, e1 := Syscall(SYS_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) fd = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func remove(path string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) if err != nil { return } r0, _, e1 := Syscall(SYS_REMOVE, uintptr(unsafe.Pointer(_p0)), 0, 0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func stat(path string, edir []byte) (n int, err error) { var _p0 *byte _p0, err = BytePtrFromString(path) if err != nil { return } var _p1 unsafe.Pointer if len(edir) > 0 { _p1 = unsafe.Pointer(&edir[0]) } else { _p1 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(edir))) n = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func bind(name string, old string, flag int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(name) if err != nil { return } var _p1 *byte _p1, err = BytePtrFromString(old) if err != nil { return } r0, _, e1 := Syscall(SYS_BIND, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flag)) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func mount(fd int, afd int, old string, flag int, aname string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(old) if err != nil { return } var _p1 *byte _p1, err = BytePtrFromString(aname) if err != nil { return } r0, _, e1 := Syscall6(SYS_MOUNT, uintptr(fd), uintptr(afd), uintptr(unsafe.Pointer(_p0)), uintptr(flag), uintptr(unsafe.Pointer(_p1)), 0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func wstat(path string, edir []byte) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) if err != nil { return } var _p1 unsafe.Pointer if len(edir) > 0 { _p1 = unsafe.Pointer(&edir[0]) } else { _p1 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall(SYS_WSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(edir))) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func chdir(path string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) if err != nil { return } r0, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Dup(oldfd int, newfd int) (fd int, err error) { r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), uintptr(newfd), 0) fd = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Pread(fd int, p []byte, offset int64) (n int, err error) { var _p0 unsafe.Pointer if len(p) > 0 { _p0 = unsafe.Pointer(&p[0]) } else { _p0 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) n = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Pwrite(fd int, p []byte, offset int64) (n int, err error) { var _p0 unsafe.Pointer if len(p) > 0 { _p0 = unsafe.Pointer(&p[0]) } else { _p0 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) n = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Close(fd int) (err error) { r0, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Fstat(fd int, edir []byte) (n int, err error) { var _p0 unsafe.Pointer if len(edir) > 0 { _p0 = unsafe.Pointer(&edir[0]) } else { _p0 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(_p0), uintptr(len(edir))) n = int(r0) if int32(r0) == -1 { err = e1 } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Fwstat(fd int, edir []byte) (err error) { var _p0 unsafe.Pointer if len(edir) > 0 { _p0 = unsafe.Pointer(&edir[0]) } else { _p0 = unsafe.Pointer(&_zero) } r0, _, e1 := Syscall(SYS_FWSTAT, uintptr(fd), uintptr(_p0), uintptr(len(edir))) if int32(r0) == -1 { err = e1 } return }
go/src/syscall/zsyscall_plan9_386.go/0
{ "file_path": "go/src/syscall/zsyscall_plan9_386.go", "repo_id": "go", "token_count": 2854 }
442
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package testing import ( "fmt" "slices" "strings" "time" ) type InternalExample struct { Name string F func() Output string Unordered bool } // RunExamples is an internal function but exported because it is cross-package; // it is part of the implementation of the "go test" command. func RunExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ok bool) { _, ok = runExamples(matchString, examples) return ok } func runExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ran, ok bool) { ok = true m := newMatcher(matchString, *match, "-test.run", *skip) var eg InternalExample for _, eg = range examples { _, matched, _ := m.fullName(nil, eg.Name) if !matched { continue } ran = true if !runExample(eg) { ok = false } } return ran, ok } func sortLines(output string) string { lines := strings.Split(output, "\n") slices.Sort(lines) return strings.Join(lines, "\n") } // processRunResult computes a summary and status of the result of running an example test. // stdout is the captured output from stdout of the test. // recovered is the result of invoking recover after running the test, in case it panicked. // // If stdout doesn't match the expected output or if recovered is non-nil, it'll print the cause of failure to stdout. // If the test is chatty/verbose, it'll print a success message to stdout. // If recovered is non-nil, it'll panic with that value. // If the test panicked with nil, or invoked runtime.Goexit, it'll be // made to fail and panic with errNilPanicOrGoexit func (eg *InternalExample) processRunResult(stdout string, timeSpent time.Duration, finished bool, recovered any) (passed bool) { passed = true dstr := fmtDuration(timeSpent) var fail string got := strings.TrimSpace(stdout) want := strings.TrimSpace(eg.Output) if eg.Unordered { if sortLines(got) != sortLines(want) && recovered == nil { fail = fmt.Sprintf("got:\n%s\nwant (unordered):\n%s\n", stdout, eg.Output) } } else { if got != want && recovered == nil { fail = fmt.Sprintf("got:\n%s\nwant:\n%s\n", got, want) } } if fail != "" || !finished || recovered != nil { fmt.Printf("%s--- FAIL: %s (%s)\n%s", chatty.prefix(), eg.Name, dstr, fail) passed = false } else if chatty.on { fmt.Printf("%s--- PASS: %s (%s)\n", chatty.prefix(), eg.Name, dstr) } if chatty.on && chatty.json { fmt.Printf("%s=== NAME %s\n", chatty.prefix(), "") } if recovered != nil { // Propagate the previously recovered result, by panicking. panic(recovered) } else if !finished { panic(errNilPanicOrGoexit) } return }
go/src/testing/example.go/0
{ "file_path": "go/src/testing/example.go", "repo_id": "go", "token_count": 976 }
443
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package iotest import "io" // TruncateWriter returns a Writer that writes to w // but stops silently after n bytes. func TruncateWriter(w io.Writer, n int64) io.Writer { return &truncateWriter{w, n} } type truncateWriter struct { w io.Writer n int64 } func (t *truncateWriter) Write(p []byte) (n int, err error) { if t.n <= 0 { return len(p), nil } // real write n = len(p) if int64(n) > t.n { n = int(t.n) } n, err = t.w.Write(p[0:n]) t.n -= int64(n) if err == nil { n = len(p) } return }
go/src/testing/iotest/writer.go/0
{ "file_path": "go/src/testing/iotest/writer.go", "repo_id": "go", "token_count": 270 }
444
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package testing_test import ( "bytes" "fmt" "internal/race" "internal/testenv" "os" "os/exec" "path/filepath" "regexp" "slices" "strings" "sync" "testing" "time" ) // This is exactly what a test would do without a TestMain. // It's here only so that there is at least one package in the // standard library with a TestMain, so that code is executed. func TestMain(m *testing.M) { if os.Getenv("GO_WANT_RACE_BEFORE_TESTS") == "1" { doRace() } m.Run() // Note: m.Run currently prints the final "PASS" line, so if any race is // reported here (after m.Run but before the process exits), it will print // "PASS", then print the stack traces for the race, then exit with nonzero // status. // // This is a somewhat fundamental race: because the race detector hooks into // the runtime at a very low level, no matter where we put the printing it // would be possible to report a race that occurs afterward. However, we could // theoretically move the printing after TestMain, which would at least do a // better job of diagnosing races in cleanup functions within TestMain itself. } func TestTempDirInCleanup(t *testing.T) { var dir string t.Run("test", func(t *testing.T) { t.Cleanup(func() { dir = t.TempDir() }) _ = t.TempDir() }) fi, err := os.Stat(dir) if fi != nil { t.Fatalf("Directory %q from user Cleanup still exists", dir) } if !os.IsNotExist(err) { t.Fatalf("Unexpected error: %v", err) } } func TestTempDirInBenchmark(t *testing.T) { testing.Benchmark(func(b *testing.B) { if !b.Run("test", func(b *testing.B) { // Add a loop so that the test won't fail. See issue 38677. for i := 0; i < b.N; i++ { _ = b.TempDir() } }) { t.Fatal("Sub test failure in a benchmark") } }) } func TestTempDir(t *testing.T) { testTempDir(t) t.Run("InSubtest", testTempDir) t.Run("test/subtest", testTempDir) t.Run("test\\subtest", testTempDir) t.Run("test:subtest", testTempDir) t.Run("test/..", testTempDir) t.Run("../test", testTempDir) t.Run("test[]", testTempDir) t.Run("test*", testTempDir) t.Run("äöüéè", testTempDir) } func testTempDir(t *testing.T) { dirCh := make(chan string, 1) t.Cleanup(func() { // Verify directory has been removed. select { case dir := <-dirCh: fi, err := os.Stat(dir) if os.IsNotExist(err) { // All good return } if err != nil { t.Fatal(err) } t.Errorf("directory %q still exists: %v, isDir=%v", dir, fi, fi.IsDir()) default: if !t.Failed() { t.Fatal("never received dir channel") } } }) dir := t.TempDir() if dir == "" { t.Fatal("expected dir") } dir2 := t.TempDir() if dir == dir2 { t.Fatal("subsequent calls to TempDir returned the same directory") } if filepath.Dir(dir) != filepath.Dir(dir2) { t.Fatalf("calls to TempDir do not share a parent; got %q, %q", dir, dir2) } dirCh <- dir fi, err := os.Stat(dir) if err != nil { t.Fatal(err) } if !fi.IsDir() { t.Errorf("dir %q is not a dir", dir) } files, err := os.ReadDir(dir) if err != nil { t.Fatal(err) } if len(files) > 0 { t.Errorf("unexpected %d files in TempDir: %v", len(files), files) } glob := filepath.Join(dir, "*.txt") if _, err := filepath.Glob(glob); err != nil { t.Error(err) } } func TestSetenv(t *testing.T) { tests := []struct { name string key string initialValueExists bool initialValue string newValue string }{ { name: "initial value exists", key: "GO_TEST_KEY_1", initialValueExists: true, initialValue: "111", newValue: "222", }, { name: "initial value exists but empty", key: "GO_TEST_KEY_2", initialValueExists: true, initialValue: "", newValue: "222", }, { name: "initial value is not exists", key: "GO_TEST_KEY_3", initialValueExists: false, initialValue: "", newValue: "222", }, } for _, test := range tests { if test.initialValueExists { if err := os.Setenv(test.key, test.initialValue); err != nil { t.Fatalf("unable to set env: got %v", err) } } else { os.Unsetenv(test.key) } t.Run(test.name, func(t *testing.T) { t.Setenv(test.key, test.newValue) if os.Getenv(test.key) != test.newValue { t.Fatalf("unexpected value after t.Setenv: got %s, want %s", os.Getenv(test.key), test.newValue) } }) got, exists := os.LookupEnv(test.key) if got != test.initialValue { t.Fatalf("unexpected value after t.Setenv cleanup: got %s, want %s", got, test.initialValue) } if exists != test.initialValueExists { t.Fatalf("unexpected value after t.Setenv cleanup: got %t, want %t", exists, test.initialValueExists) } } } func TestSetenvWithParallelAfterSetenv(t *testing.T) { defer func() { want := "testing: t.Parallel called after t.Setenv; cannot set environment variables in parallel tests" if got := recover(); got != want { t.Fatalf("expected panic; got %#v want %q", got, want) } }() t.Setenv("GO_TEST_KEY_1", "value") t.Parallel() } func TestSetenvWithParallelBeforeSetenv(t *testing.T) { defer func() { want := "testing: t.Setenv called after t.Parallel; cannot set environment variables in parallel tests" if got := recover(); got != want { t.Fatalf("expected panic; got %#v want %q", got, want) } }() t.Parallel() t.Setenv("GO_TEST_KEY_1", "value") } func TestSetenvWithParallelParentBeforeSetenv(t *testing.T) { t.Parallel() t.Run("child", func(t *testing.T) { defer func() { want := "testing: t.Setenv called after t.Parallel; cannot set environment variables in parallel tests" if got := recover(); got != want { t.Fatalf("expected panic; got %#v want %q", got, want) } }() t.Setenv("GO_TEST_KEY_1", "value") }) } func TestSetenvWithParallelGrandParentBeforeSetenv(t *testing.T) { t.Parallel() t.Run("child", func(t *testing.T) { t.Run("grand-child", func(t *testing.T) { defer func() { want := "testing: t.Setenv called after t.Parallel; cannot set environment variables in parallel tests" if got := recover(); got != want { t.Fatalf("expected panic; got %#v want %q", got, want) } }() t.Setenv("GO_TEST_KEY_1", "value") }) }) } // testingTrueInInit is part of TestTesting. var testingTrueInInit = false // testingTrueInPackageVarInit is part of TestTesting. var testingTrueInPackageVarInit = testing.Testing() // init is part of TestTesting. func init() { if testing.Testing() { testingTrueInInit = true } } var testingProg = ` package main import ( "fmt" "testing" ) func main() { fmt.Println(testing.Testing()) } ` func TestTesting(t *testing.T) { if !testing.Testing() { t.Errorf("testing.Testing() == %t, want %t", testing.Testing(), true) } if !testingTrueInInit { t.Errorf("testing.Testing() called by init function == %t, want %t", testingTrueInInit, true) } if !testingTrueInPackageVarInit { t.Errorf("testing.Testing() variable initialized as %t, want %t", testingTrueInPackageVarInit, true) } if testing.Short() { t.Skip("skipping building a binary in short mode") } testenv.MustHaveGoRun(t) fn := filepath.Join(t.TempDir(), "x.go") if err := os.WriteFile(fn, []byte(testingProg), 0644); err != nil { t.Fatal(err) } cmd := testenv.Command(t, testenv.GoToolPath(t), "run", fn) out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("%v failed: %v\n%s", cmd, err, out) } s := string(bytes.TrimSpace(out)) if s != "false" { t.Errorf("in non-test testing.Test() returned %q, want %q", s, "false") } } // runTest runs a helper test with -test.v, ignoring its exit status. // runTest both logs and returns the test output. func runTest(t *testing.T, test string) []byte { t.Helper() testenv.MustHaveExec(t) exe, err := os.Executable() if err != nil { t.Skipf("can't find test executable: %v", err) } cmd := testenv.Command(t, exe, "-test.run=^"+test+"$", "-test.bench="+test, "-test.v", "-test.parallel=2", "-test.benchtime=2x") cmd = testenv.CleanCmdEnv(cmd) cmd.Env = append(cmd.Env, "GO_WANT_HELPER_PROCESS=1") out, err := cmd.CombinedOutput() t.Logf("%v: %v\n%s", cmd, err, out) return out } // doRace provokes a data race that generates a race detector report if run // under the race detector and is otherwise benign. func doRace() { var x int c1 := make(chan bool) go func() { x = 1 // racy write c1 <- true }() _ = x // racy read <-c1 } func TestRaceReports(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { // Generate a race detector report in a sub test. t.Run("Sub", func(t *testing.T) { doRace() }) return } out := runTest(t, "TestRaceReports") // We should see at most one race detector report. c := bytes.Count(out, []byte("race detected")) want := 0 if race.Enabled { want = 1 } if c != want { t.Errorf("got %d race reports, want %d", c, want) } } // Issue #60083. This used to fail on the race builder. func TestRaceName(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { doRace() return } out := runTest(t, "TestRaceName") if regexp.MustCompile(`=== NAME\s*$`).Match(out) { t.Errorf("incorrectly reported test with no name") } } func TestRaceSubReports(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { t.Parallel() c1 := make(chan bool, 1) t.Run("sub", func(t *testing.T) { t.Run("subsub1", func(t *testing.T) { t.Parallel() doRace() c1 <- true }) t.Run("subsub2", func(t *testing.T) { t.Parallel() doRace() <-c1 }) }) doRace() return } out := runTest(t, "TestRaceSubReports") // There should be three race reports: one for each subtest, and one for the // race after the subtests complete. Note that because the subtests run in // parallel, the race stacks may both be printed in with one or the other // test's logs. cReport := bytes.Count(out, []byte("race detected during execution of test")) wantReport := 0 if race.Enabled { wantReport = 3 } if cReport != wantReport { t.Errorf("got %d race reports, want %d", cReport, wantReport) } // Regardless of when the stacks are printed, we expect each subtest to be // marked as failed, and that failure should propagate up to the parents. cFail := bytes.Count(out, []byte("--- FAIL:")) wantFail := 0 if race.Enabled { wantFail = 4 } if cFail != wantFail { t.Errorf(`got %d "--- FAIL:" lines, want %d`, cReport, wantReport) } } func TestRaceInCleanup(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { t.Cleanup(doRace) t.Parallel() t.Run("sub", func(t *testing.T) { t.Parallel() // No race should be reported for sub. }) return } out := runTest(t, "TestRaceInCleanup") // There should be one race report, for the parent test only. cReport := bytes.Count(out, []byte("race detected during execution of test")) wantReport := 0 if race.Enabled { wantReport = 1 } if cReport != wantReport { t.Errorf("got %d race reports, want %d", cReport, wantReport) } // Only the parent test should be marked as failed. // (The subtest does not race, and should pass.) cFail := bytes.Count(out, []byte("--- FAIL:")) wantFail := 0 if race.Enabled { wantFail = 1 } if cFail != wantFail { t.Errorf(`got %d "--- FAIL:" lines, want %d`, cReport, wantReport) } } func TestDeepSubtestRace(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { t.Run("sub", func(t *testing.T) { t.Run("subsub", func(t *testing.T) { t.Run("subsubsub", func(t *testing.T) { doRace() }) }) doRace() }) return } out := runTest(t, "TestDeepSubtestRace") c := bytes.Count(out, []byte("race detected during execution of test")) want := 0 // There should be two race reports. if race.Enabled { want = 2 } if c != want { t.Errorf("got %d race reports, want %d", c, want) } } func TestRaceDuringParallelFailsAllSubtests(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { var ready sync.WaitGroup ready.Add(2) done := make(chan struct{}) go func() { ready.Wait() doRace() // This race happens while both subtests are running. close(done) }() t.Run("sub", func(t *testing.T) { t.Run("subsub1", func(t *testing.T) { t.Parallel() ready.Done() <-done }) t.Run("subsub2", func(t *testing.T) { t.Parallel() ready.Done() <-done }) }) return } out := runTest(t, "TestRaceDuringParallelFailsAllSubtests") c := bytes.Count(out, []byte("race detected during execution of test")) want := 0 // Each subtest should report the race independently. if race.Enabled { want = 2 } if c != want { t.Errorf("got %d race reports, want %d", c, want) } } func TestRaceBeforeParallel(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { t.Run("sub", func(t *testing.T) { doRace() t.Parallel() }) return } out := runTest(t, "TestRaceBeforeParallel") c := bytes.Count(out, []byte("race detected during execution of test")) want := 0 // We should see one race detector report. if race.Enabled { want = 1 } if c != want { t.Errorf("got %d race reports, want %d", c, want) } } func TestRaceBeforeTests(t *testing.T) { testenv.MustHaveExec(t) exe, err := os.Executable() if err != nil { t.Skipf("can't find test executable: %v", err) } cmd := testenv.Command(t, exe, "-test.run=^$") cmd = testenv.CleanCmdEnv(cmd) cmd.Env = append(cmd.Env, "GO_WANT_RACE_BEFORE_TESTS=1") out, _ := cmd.CombinedOutput() t.Logf("%s", out) c := bytes.Count(out, []byte("race detected outside of test execution")) want := 0 if race.Enabled { want = 1 } if c != want { t.Errorf("got %d race reports; want %d", c, want) } } func TestBenchmarkRace(t *testing.T) { out := runTest(t, "BenchmarkRacy") c := bytes.Count(out, []byte("race detected during execution of test")) want := 0 // We should see one race detector report. if race.Enabled { want = 1 } if c != want { t.Errorf("got %d race reports; want %d", c, want) } } func BenchmarkRacy(b *testing.B) { if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" { b.Skipf("skipping intentionally-racy benchmark") } for i := 0; i < b.N; i++ { doRace() } } func TestBenchmarkSubRace(t *testing.T) { out := runTest(t, "BenchmarkSubRacy") c := bytes.Count(out, []byte("race detected during execution of test")) want := 0 // We should see two race detector reports: // one in the sub-bencmark, and one in the parent afterward. if race.Enabled { want = 2 } if c != want { t.Errorf("got %d race reports; want %d", c, want) } } func BenchmarkSubRacy(b *testing.B) { if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" { b.Skipf("skipping intentionally-racy benchmark") } b.Run("non-racy", func(b *testing.B) { tot := 0 for i := 0; i < b.N; i++ { tot++ } _ = tot }) b.Run("racy", func(b *testing.B) { for i := 0; i < b.N; i++ { doRace() } }) doRace() // should be reported separately } func TestRunningTests(t *testing.T) { t.Parallel() // Regression test for https://go.dev/issue/64404: // on timeout, the "running tests" message should not include // tests that are waiting on parked subtests. if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { for i := 0; i < 2; i++ { t.Run(fmt.Sprintf("outer%d", i), func(t *testing.T) { t.Parallel() for j := 0; j < 2; j++ { t.Run(fmt.Sprintf("inner%d", j), func(t *testing.T) { t.Parallel() for { time.Sleep(1 * time.Millisecond) } }) } }) } } timeout := 10 * time.Millisecond for { cmd := testenv.Command(t, os.Args[0], "-test.run=^"+t.Name()+"$", "-test.timeout="+timeout.String(), "-test.parallel=4") cmd.Env = append(cmd.Environ(), "GO_WANT_HELPER_PROCESS=1") out, err := cmd.CombinedOutput() t.Logf("%v:\n%s", cmd, out) if _, ok := err.(*exec.ExitError); !ok { t.Fatal(err) } // Because the outer subtests (and TestRunningTests itself) are marked as // parallel, their test functions return (and are no longer “running”) // before the inner subtests are released to run and hang. // Only those inner subtests should be reported as running. want := []string{ "TestRunningTests/outer0/inner0", "TestRunningTests/outer0/inner1", "TestRunningTests/outer1/inner0", "TestRunningTests/outer1/inner1", } got, ok := parseRunningTests(out) if slices.Equal(got, want) { break } if ok { t.Logf("found running tests:\n%s\nwant:\n%s", strings.Join(got, "\n"), strings.Join(want, "\n")) } else { t.Logf("no running tests found") } t.Logf("retrying with longer timeout") timeout *= 2 } } func TestRunningTestsInCleanup(t *testing.T) { t.Parallel() if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" { for i := 0; i < 2; i++ { t.Run(fmt.Sprintf("outer%d", i), func(t *testing.T) { // Not parallel: we expect to see only one outer test, // stuck in cleanup after its subtest finishes. t.Cleanup(func() { for { time.Sleep(1 * time.Millisecond) } }) for j := 0; j < 2; j++ { t.Run(fmt.Sprintf("inner%d", j), func(t *testing.T) { t.Parallel() }) } }) } } timeout := 10 * time.Millisecond for { cmd := testenv.Command(t, os.Args[0], "-test.run=^"+t.Name()+"$", "-test.timeout="+timeout.String()) cmd.Env = append(cmd.Environ(), "GO_WANT_HELPER_PROCESS=1") out, err := cmd.CombinedOutput() t.Logf("%v:\n%s", cmd, out) if _, ok := err.(*exec.ExitError); !ok { t.Fatal(err) } // TestRunningTestsInCleanup is blocked in the call to t.Run, // but its test function has not yet returned so it should still // be considered to be running. // outer1 hasn't even started yet, so only outer0 and the top-level // test function should be reported as running. want := []string{ "TestRunningTestsInCleanup", "TestRunningTestsInCleanup/outer0", } got, ok := parseRunningTests(out) if slices.Equal(got, want) { break } if ok { t.Logf("found running tests:\n%s\nwant:\n%s", strings.Join(got, "\n"), strings.Join(want, "\n")) } else { t.Logf("no running tests found") } t.Logf("retrying with longer timeout") timeout *= 2 } } func parseRunningTests(out []byte) (runningTests []string, ok bool) { inRunningTests := false for _, line := range strings.Split(string(out), "\n") { if inRunningTests { // Package testing adds one tab, the panic printer adds another. if trimmed, ok := strings.CutPrefix(line, "\t\t"); ok { if name, _, ok := strings.Cut(trimmed, " "); ok { runningTests = append(runningTests, name) continue } } // This line is not the name of a running test. return runningTests, true } if strings.TrimSpace(line) == "running tests:" { inRunningTests = true } } return nil, false } func TestConcurrentRun(t *testing.T) { // Regression test for https://go.dev/issue/64402: // this deadlocked after https://go.dev/cl/506755. block := make(chan struct{}) var ready, done sync.WaitGroup for i := 0; i < 2; i++ { ready.Add(1) done.Add(1) go t.Run("", func(*testing.T) { ready.Done() <-block done.Done() }) } ready.Wait() close(block) done.Wait() } func TestParentRun(t1 *testing.T) { // Regression test for https://go.dev/issue/64402: // this deadlocked after https://go.dev/cl/506755. t1.Run("outer", func(t2 *testing.T) { t2.Log("Hello outer!") t1.Run("not_inner", func(t3 *testing.T) { // Note: this is t1.Run, not t2.Run. t3.Log("Hello inner!") }) }) }
go/src/testing/testing_test.go/0
{ "file_path": "go/src/testing/testing_test.go", "repo_id": "go", "token_count": 8200 }
445
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Helper functions to make constructing templates easier. package template import ( "fmt" "io/fs" "os" "path" "path/filepath" ) // Functions and methods to parse templates. // Must is a helper that wraps a call to a function returning ([*Template], error) // and panics if the error is non-nil. It is intended for use in variable // initializations such as // // var t = template.Must(template.New("name").Parse("text")) func Must(t *Template, err error) *Template { if err != nil { panic(err) } return t } // ParseFiles creates a new [Template] and parses the template definitions from // the named files. The returned template's name will have the base name and // parsed contents of the first file. There must be at least one file. // If an error occurs, parsing stops and the returned *Template is nil. // // When parsing multiple files with the same name in different directories, // the last one mentioned will be the one that results. // For instance, ParseFiles("a/foo", "b/foo") stores "b/foo" as the template // named "foo", while "a/foo" is unavailable. func ParseFiles(filenames ...string) (*Template, error) { return parseFiles(nil, readFileOS, filenames...) } // ParseFiles parses the named files and associates the resulting templates with // t. If an error occurs, parsing stops and the returned template is nil; // otherwise it is t. There must be at least one file. // Since the templates created by ParseFiles are named by the base // (see [filepath.Base]) names of the argument files, t should usually have the // name of one of the (base) names of the files. If it does not, depending on // t's contents before calling ParseFiles, t.Execute may fail. In that // case use t.ExecuteTemplate to execute a valid template. // // When parsing multiple files with the same name in different directories, // the last one mentioned will be the one that results. func (t *Template) ParseFiles(filenames ...string) (*Template, error) { t.init() return parseFiles(t, readFileOS, filenames...) } // parseFiles is the helper for the method and function. If the argument // template is nil, it is created from the first file. func parseFiles(t *Template, readFile func(string) (string, []byte, error), filenames ...string) (*Template, error) { if len(filenames) == 0 { // Not really a problem, but be consistent. return nil, fmt.Errorf("template: no files named in call to ParseFiles") } for _, filename := range filenames { name, b, err := readFile(filename) if err != nil { return nil, err } s := string(b) // First template becomes return value if not already defined, // and we use that one for subsequent New calls to associate // all the templates together. Also, if this file has the same name // as t, this file becomes the contents of t, so // t, err := New(name).Funcs(xxx).ParseFiles(name) // works. Otherwise we create a new template associated with t. var tmpl *Template if t == nil { t = New(name) } if name == t.Name() { tmpl = t } else { tmpl = t.New(name) } _, err = tmpl.Parse(s) if err != nil { return nil, err } } return t, nil } // ParseGlob creates a new [Template] and parses the template definitions from // the files identified by the pattern. The files are matched according to the // semantics of [filepath.Match], and the pattern must match at least one file. // The returned template will have the [filepath.Base] name and (parsed) // contents of the first file matched by the pattern. ParseGlob is equivalent to // calling [ParseFiles] with the list of files matched by the pattern. // // When parsing multiple files with the same name in different directories, // the last one mentioned will be the one that results. func ParseGlob(pattern string) (*Template, error) { return parseGlob(nil, pattern) } // ParseGlob parses the template definitions in the files identified by the // pattern and associates the resulting templates with t. The files are matched // according to the semantics of [filepath.Match], and the pattern must match at // least one file. ParseGlob is equivalent to calling [Template.ParseFiles] with // the list of files matched by the pattern. // // When parsing multiple files with the same name in different directories, // the last one mentioned will be the one that results. func (t *Template) ParseGlob(pattern string) (*Template, error) { t.init() return parseGlob(t, pattern) } // parseGlob is the implementation of the function and method ParseGlob. func parseGlob(t *Template, pattern string) (*Template, error) { filenames, err := filepath.Glob(pattern) if err != nil { return nil, err } if len(filenames) == 0 { return nil, fmt.Errorf("template: pattern matches no files: %#q", pattern) } return parseFiles(t, readFileOS, filenames...) } // ParseFS is like [Template.ParseFiles] or [Template.ParseGlob] but reads from the file system fsys // instead of the host operating system's file system. // It accepts a list of glob patterns (see [path.Match]). // (Note that most file names serve as glob patterns matching only themselves.) func ParseFS(fsys fs.FS, patterns ...string) (*Template, error) { return parseFS(nil, fsys, patterns) } // ParseFS is like [Template.ParseFiles] or [Template.ParseGlob] but reads from the file system fsys // instead of the host operating system's file system. // It accepts a list of glob patterns (see [path.Match]). // (Note that most file names serve as glob patterns matching only themselves.) func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) { t.init() return parseFS(t, fsys, patterns) } func parseFS(t *Template, fsys fs.FS, patterns []string) (*Template, error) { var filenames []string for _, pattern := range patterns { list, err := fs.Glob(fsys, pattern) if err != nil { return nil, err } if len(list) == 0 { return nil, fmt.Errorf("template: pattern matches no files: %#q", pattern) } filenames = append(filenames, list...) } return parseFiles(t, readFileFS(fsys), filenames...) } func readFileOS(file string) (name string, b []byte, err error) { name = filepath.Base(file) b, err = os.ReadFile(file) return } func readFileFS(fsys fs.FS) func(string) (string, []byte, error) { return func(file string) (name string, b []byte, err error) { name = path.Base(file) b, err = fs.ReadFile(fsys, file) return } }
go/src/text/template/helper.go/0
{ "file_path": "go/src/text/template/helper.go", "repo_id": "go", "token_count": 1986 }
446
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Parse "zoneinfo" time zone file. // This is a fairly standard file format used on OS X, Linux, BSD, Sun, and others. // See tzfile(5), https://en.wikipedia.org/wiki/Zoneinfo, // and ftp://munnari.oz.au/pub/oldtz/ package time import ( "errors" "internal/bytealg" "runtime" "syscall" _ "unsafe" // for linkname ) // registerLoadFromEmbeddedTZData is called by the time/tzdata package, // if it is imported. // //go:linkname registerLoadFromEmbeddedTZData func registerLoadFromEmbeddedTZData(f func(string) (string, error)) { loadFromEmbeddedTZData = f } // loadFromEmbeddedTZData is used to load a specific tzdata file // from tzdata information embedded in the binary itself. // This is set when the time/tzdata package is imported, // via registerLoadFromEmbeddedTzdata. var loadFromEmbeddedTZData func(zipname string) (string, error) // maxFileSize is the max permitted size of files read by readFile. // As reference, the zoneinfo.zip distributed by Go is ~350 KB, // so 10MB is overkill. const maxFileSize = 10 << 20 type fileSizeError string func (f fileSizeError) Error() string { return "time: file " + string(f) + " is too large" } // Copies of io.Seek* constants to avoid importing "io": const ( seekStart = 0 seekCurrent = 1 seekEnd = 2 ) // Simple I/O interface to binary blob of data. type dataIO struct { p []byte error bool } func (d *dataIO) read(n int) []byte { if len(d.p) < n { d.p = nil d.error = true return nil } p := d.p[0:n] d.p = d.p[n:] return p } func (d *dataIO) big4() (n uint32, ok bool) { p := d.read(4) if len(p) < 4 { d.error = true return 0, false } return uint32(p[3]) | uint32(p[2])<<8 | uint32(p[1])<<16 | uint32(p[0])<<24, true } func (d *dataIO) big8() (n uint64, ok bool) { n1, ok1 := d.big4() n2, ok2 := d.big4() if !ok1 || !ok2 { d.error = true return 0, false } return (uint64(n1) << 32) | uint64(n2), true } func (d *dataIO) byte() (n byte, ok bool) { p := d.read(1) if len(p) < 1 { d.error = true return 0, false } return p[0], true } // rest returns the rest of the data in the buffer. func (d *dataIO) rest() []byte { r := d.p d.p = nil return r } // Make a string by stopping at the first NUL func byteString(p []byte) string { if i := bytealg.IndexByte(p, 0); i != -1 { p = p[:i] } return string(p) } var errBadData = errors.New("malformed time zone information") // LoadLocationFromTZData returns a Location with the given name // initialized from the IANA Time Zone database-formatted data. // The data should be in the format of a standard IANA time zone file // (for example, the content of /etc/localtime on Unix systems). func LoadLocationFromTZData(name string, data []byte) (*Location, error) { d := dataIO{data, false} // 4-byte magic "TZif" if magic := d.read(4); string(magic) != "TZif" { return nil, errBadData } // 1-byte version, then 15 bytes of padding var version int var p []byte if p = d.read(16); len(p) != 16 { return nil, errBadData } else { switch p[0] { case 0: version = 1 case '2': version = 2 case '3': version = 3 default: return nil, errBadData } } // six big-endian 32-bit integers: // number of UTC/local indicators // number of standard/wall indicators // number of leap seconds // number of transition times // number of local time zones // number of characters of time zone abbrev strings const ( NUTCLocal = iota NStdWall NLeap NTime NZone NChar ) var n [6]int for i := 0; i < 6; i++ { nn, ok := d.big4() if !ok { return nil, errBadData } if uint32(int(nn)) != nn { return nil, errBadData } n[i] = int(nn) } // If we have version 2 or 3, then the data is first written out // in a 32-bit format, then written out again in a 64-bit format. // Skip the 32-bit format and read the 64-bit one, as it can // describe a broader range of dates. is64 := false if version > 1 { // Skip the 32-bit data. skip := n[NTime]*4 + n[NTime] + n[NZone]*6 + n[NChar] + n[NLeap]*8 + n[NStdWall] + n[NUTCLocal] // Skip the version 2 header that we just read. skip += 4 + 16 d.read(skip) is64 = true // Read the counts again, they can differ. for i := 0; i < 6; i++ { nn, ok := d.big4() if !ok { return nil, errBadData } if uint32(int(nn)) != nn { return nil, errBadData } n[i] = int(nn) } } size := 4 if is64 { size = 8 } // Transition times. txtimes := dataIO{d.read(n[NTime] * size), false} // Time zone indices for transition times. txzones := d.read(n[NTime]) // Zone info structures zonedata := dataIO{d.read(n[NZone] * 6), false} // Time zone abbreviations. abbrev := d.read(n[NChar]) // Leap-second time pairs d.read(n[NLeap] * (size + 4)) // Whether tx times associated with local time types // are specified as standard time or wall time. isstd := d.read(n[NStdWall]) // Whether tx times associated with local time types // are specified as UTC or local time. isutc := d.read(n[NUTCLocal]) if d.error { // ran out of data return nil, errBadData } var extend string rest := d.rest() if len(rest) > 2 && rest[0] == '\n' && rest[len(rest)-1] == '\n' { extend = string(rest[1 : len(rest)-1]) } // Now we can build up a useful data structure. // First the zone information. // utcoff[4] isdst[1] nameindex[1] nzone := n[NZone] if nzone == 0 { // Reject tzdata files with no zones. There's nothing useful in them. // This also avoids a panic later when we add and then use a fake transition (golang.org/issue/29437). return nil, errBadData } zones := make([]zone, nzone) for i := range zones { var ok bool var n uint32 if n, ok = zonedata.big4(); !ok { return nil, errBadData } if uint32(int(n)) != n { return nil, errBadData } zones[i].offset = int(int32(n)) var b byte if b, ok = zonedata.byte(); !ok { return nil, errBadData } zones[i].isDST = b != 0 if b, ok = zonedata.byte(); !ok || int(b) >= len(abbrev) { return nil, errBadData } zones[i].name = byteString(abbrev[b:]) if runtime.GOOS == "aix" && len(name) > 8 && (name[:8] == "Etc/GMT+" || name[:8] == "Etc/GMT-") { // There is a bug with AIX 7.2 TL 0 with files in Etc, // GMT+1 will return GMT-1 instead of GMT+1 or -01. if name != "Etc/GMT+0" { // GMT+0 is OK zones[i].name = name[4:] } } } // Now the transition time info. tx := make([]zoneTrans, n[NTime]) for i := range tx { var n int64 if !is64 { if n4, ok := txtimes.big4(); !ok { return nil, errBadData } else { n = int64(int32(n4)) } } else { if n8, ok := txtimes.big8(); !ok { return nil, errBadData } else { n = int64(n8) } } tx[i].when = n if int(txzones[i]) >= len(zones) { return nil, errBadData } tx[i].index = txzones[i] if i < len(isstd) { tx[i].isstd = isstd[i] != 0 } if i < len(isutc) { tx[i].isutc = isutc[i] != 0 } } if len(tx) == 0 { // Build fake transition to cover all time. // This happens in fixed locations like "Etc/GMT0". tx = append(tx, zoneTrans{when: alpha, index: 0}) } // Committed to succeed. l := &Location{zone: zones, tx: tx, name: name, extend: extend} // Fill in the cache with information about right now, // since that will be the most common lookup. sec, _, _ := now() for i := range tx { if tx[i].when <= sec && (i+1 == len(tx) || sec < tx[i+1].when) { l.cacheStart = tx[i].when l.cacheEnd = omega l.cacheZone = &l.zone[tx[i].index] if i+1 < len(tx) { l.cacheEnd = tx[i+1].when } else if l.extend != "" { // If we're at the end of the known zone transitions, // try the extend string. if name, offset, estart, eend, isDST, ok := tzset(l.extend, l.cacheStart, sec); ok { l.cacheStart = estart l.cacheEnd = eend // Find the zone that is returned by tzset to avoid allocation if possible. if zoneIdx := findZone(l.zone, name, offset, isDST); zoneIdx != -1 { l.cacheZone = &l.zone[zoneIdx] } else { l.cacheZone = &zone{ name: name, offset: offset, isDST: isDST, } } } } break } } return l, nil } func findZone(zones []zone, name string, offset int, isDST bool) int { for i, z := range zones { if z.name == name && z.offset == offset && z.isDST == isDST { return i } } return -1 } // loadTzinfoFromDirOrZip returns the contents of the file with the given name // in dir. dir can either be an uncompressed zip file, or a directory. func loadTzinfoFromDirOrZip(dir, name string) ([]byte, error) { if len(dir) > 4 && dir[len(dir)-4:] == ".zip" { return loadTzinfoFromZip(dir, name) } if dir != "" { name = dir + "/" + name } return readFile(name) } // There are 500+ zoneinfo files. Rather than distribute them all // individually, we ship them in an uncompressed zip file. // Used this way, the zip file format serves as a commonly readable // container for the individual small files. We choose zip over tar // because zip files have a contiguous table of contents, making // individual file lookups faster, and because the per-file overhead // in a zip file is considerably less than tar's 512 bytes. // get4 returns the little-endian 32-bit value in b. func get4(b []byte) int { if len(b) < 4 { return 0 } return int(b[0]) | int(b[1])<<8 | int(b[2])<<16 | int(b[3])<<24 } // get2 returns the little-endian 16-bit value in b. func get2(b []byte) int { if len(b) < 2 { return 0 } return int(b[0]) | int(b[1])<<8 } // loadTzinfoFromZip returns the contents of the file with the given name // in the given uncompressed zip file. func loadTzinfoFromZip(zipfile, name string) ([]byte, error) { fd, err := open(zipfile) if err != nil { return nil, err } defer closefd(fd) const ( zecheader = 0x06054b50 zcheader = 0x02014b50 ztailsize = 22 zheadersize = 30 zheader = 0x04034b50 ) buf := make([]byte, ztailsize) if err := preadn(fd, buf, -ztailsize); err != nil || get4(buf) != zecheader { return nil, errors.New("corrupt zip file " + zipfile) } n := get2(buf[10:]) size := get4(buf[12:]) off := get4(buf[16:]) buf = make([]byte, size) if err := preadn(fd, buf, off); err != nil { return nil, errors.New("corrupt zip file " + zipfile) } for i := 0; i < n; i++ { // zip entry layout: // 0 magic[4] // 4 madevers[1] // 5 madeos[1] // 6 extvers[1] // 7 extos[1] // 8 flags[2] // 10 meth[2] // 12 modtime[2] // 14 moddate[2] // 16 crc[4] // 20 csize[4] // 24 uncsize[4] // 28 namelen[2] // 30 xlen[2] // 32 fclen[2] // 34 disknum[2] // 36 iattr[2] // 38 eattr[4] // 42 off[4] // 46 name[namelen] // 46+namelen+xlen+fclen - next header // if get4(buf) != zcheader { break } meth := get2(buf[10:]) size := get4(buf[24:]) namelen := get2(buf[28:]) xlen := get2(buf[30:]) fclen := get2(buf[32:]) off := get4(buf[42:]) zname := buf[46 : 46+namelen] buf = buf[46+namelen+xlen+fclen:] if string(zname) != name { continue } if meth != 0 { return nil, errors.New("unsupported compression for " + name + " in " + zipfile) } // zip per-file header layout: // 0 magic[4] // 4 extvers[1] // 5 extos[1] // 6 flags[2] // 8 meth[2] // 10 modtime[2] // 12 moddate[2] // 14 crc[4] // 18 csize[4] // 22 uncsize[4] // 26 namelen[2] // 28 xlen[2] // 30 name[namelen] // 30+namelen+xlen - file data // buf = make([]byte, zheadersize+namelen) if err := preadn(fd, buf, off); err != nil || get4(buf) != zheader || get2(buf[8:]) != meth || get2(buf[26:]) != namelen || string(buf[30:30+namelen]) != name { return nil, errors.New("corrupt zip file " + zipfile) } xlen = get2(buf[28:]) buf = make([]byte, size) if err := preadn(fd, buf, off+30+namelen+xlen); err != nil { return nil, errors.New("corrupt zip file " + zipfile) } return buf, nil } return nil, syscall.ENOENT } // loadTzinfoFromTzdata returns the time zone information of the time zone // with the given name, from a tzdata database file as they are typically // found on android. var loadTzinfoFromTzdata func(file, name string) ([]byte, error) // loadTzinfo returns the time zone information of the time zone // with the given name, from a given source. A source may be a // timezone database directory, tzdata database file or an uncompressed // zip file, containing the contents of such a directory. func loadTzinfo(name string, source string) ([]byte, error) { if len(source) >= 6 && source[len(source)-6:] == "tzdata" { return loadTzinfoFromTzdata(source, name) } return loadTzinfoFromDirOrZip(source, name) } // loadLocation returns the Location with the given name from one of // the specified sources. See loadTzinfo for a list of supported sources. // The first timezone data matching the given name that is successfully loaded // and parsed is returned as a Location. func loadLocation(name string, sources []string) (z *Location, firstErr error) { for _, source := range sources { zoneData, err := loadTzinfo(name, source) if err == nil { if z, err = LoadLocationFromTZData(name, zoneData); err == nil { return z, nil } } if firstErr == nil && err != syscall.ENOENT { firstErr = err } } if loadFromEmbeddedTZData != nil { zoneData, err := loadFromEmbeddedTZData(name) if err == nil { if z, err = LoadLocationFromTZData(name, []byte(zoneData)); err == nil { return z, nil } } if firstErr == nil && err != syscall.ENOENT { firstErr = err } } if source, ok := gorootZoneSource(runtime.GOROOT()); ok { zoneData, err := loadTzinfo(name, source) if err == nil { if z, err = LoadLocationFromTZData(name, zoneData); err == nil { return z, nil } } if firstErr == nil && err != syscall.ENOENT { firstErr = err } } if firstErr != nil { return nil, firstErr } return nil, errors.New("unknown time zone " + name) } // readFile reads and returns the content of the named file. // It is a trivial implementation of os.ReadFile, reimplemented // here to avoid depending on io/ioutil or os. // It returns an error if name exceeds maxFileSize bytes. func readFile(name string) ([]byte, error) { f, err := open(name) if err != nil { return nil, err } defer closefd(f) var ( buf [4096]byte ret []byte n int ) for { n, err = read(f, buf[:]) if n > 0 { ret = append(ret, buf[:n]...) } if n == 0 || err != nil { break } if len(ret) > maxFileSize { return nil, fileSizeError(name) } } return ret, err }
go/src/time/zoneinfo_read.go/0
{ "file_path": "go/src/time/zoneinfo_read.go", "repo_id": "go", "token_count": 6090 }
447
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. package unicode // Version is the Unicode edition from which the tables are derived. const Version = "15.0.0" // Categories is the set of Unicode category tables. var Categories = map[string]*RangeTable{ "C": C, "Cc": Cc, "Cf": Cf, "Co": Co, "Cs": Cs, "L": L, "Ll": Ll, "Lm": Lm, "Lo": Lo, "Lt": Lt, "Lu": Lu, "M": M, "Mc": Mc, "Me": Me, "Mn": Mn, "N": N, "Nd": Nd, "Nl": Nl, "No": No, "P": P, "Pc": Pc, "Pd": Pd, "Pe": Pe, "Pf": Pf, "Pi": Pi, "Po": Po, "Ps": Ps, "S": S, "Sc": Sc, "Sk": Sk, "Sm": Sm, "So": So, "Z": Z, "Zl": Zl, "Zp": Zp, "Zs": Zs, } var _C = &RangeTable{ R16: []Range16{ {0x0000, 0x001f, 1}, {0x007f, 0x009f, 1}, {0x00ad, 0x0600, 1363}, {0x0601, 0x0605, 1}, {0x061c, 0x06dd, 193}, {0x070f, 0x0890, 385}, {0x0891, 0x08e2, 81}, {0x180e, 0x200b, 2045}, {0x200c, 0x200f, 1}, {0x202a, 0x202e, 1}, {0x2060, 0x2064, 1}, {0x2066, 0x206f, 1}, {0xd800, 0xf8ff, 1}, {0xfeff, 0xfff9, 250}, {0xfffa, 0xfffb, 1}, }, R32: []Range32{ {0x110bd, 0x110cd, 16}, {0x13430, 0x1343f, 1}, {0x1bca0, 0x1bca3, 1}, {0x1d173, 0x1d17a, 1}, {0xe0001, 0xe0020, 31}, {0xe0021, 0xe007f, 1}, {0xf0000, 0xffffd, 1}, {0x100000, 0x10fffd, 1}, }, LatinOffset: 2, } var _Cc = &RangeTable{ R16: []Range16{ {0x0000, 0x001f, 1}, {0x007f, 0x009f, 1}, }, LatinOffset: 2, } var _Cf = &RangeTable{ R16: []Range16{ {0x00ad, 0x0600, 1363}, {0x0601, 0x0605, 1}, {0x061c, 0x06dd, 193}, {0x070f, 0x0890, 385}, {0x0891, 0x08e2, 81}, {0x180e, 0x200b, 2045}, {0x200c, 0x200f, 1}, {0x202a, 0x202e, 1}, {0x2060, 0x2064, 1}, {0x2066, 0x206f, 1}, {0xfeff, 0xfff9, 250}, {0xfffa, 0xfffb, 1}, }, R32: []Range32{ {0x110bd, 0x110cd, 16}, {0x13430, 0x1343f, 1}, {0x1bca0, 0x1bca3, 1}, {0x1d173, 0x1d17a, 1}, {0xe0001, 0xe0020, 31}, {0xe0021, 0xe007f, 1}, }, } var _Co = &RangeTable{ R16: []Range16{ {0xe000, 0xf8ff, 1}, }, R32: []Range32{ {0xf0000, 0xffffd, 1}, {0x100000, 0x10fffd, 1}, }, } var _Cs = &RangeTable{ R16: []Range16{ {0xd800, 0xdfff, 1}, }, } var _L = &RangeTable{ R16: []Range16{ {0x0041, 0x005a, 1}, {0x0061, 0x007a, 1}, {0x00aa, 0x00b5, 11}, {0x00ba, 0x00c0, 6}, {0x00c1, 0x00d6, 1}, {0x00d8, 0x00f6, 1}, {0x00f8, 0x02c1, 1}, {0x02c6, 0x02d1, 1}, {0x02e0, 0x02e4, 1}, {0x02ec, 0x02ee, 2}, {0x0370, 0x0374, 1}, {0x0376, 0x0377, 1}, {0x037a, 0x037d, 1}, {0x037f, 0x0386, 7}, {0x0388, 0x038a, 1}, {0x038c, 0x038e, 2}, {0x038f, 0x03a1, 1}, {0x03a3, 0x03f5, 1}, {0x03f7, 0x0481, 1}, {0x048a, 0x052f, 1}, {0x0531, 0x0556, 1}, {0x0559, 0x0560, 7}, {0x0561, 0x0588, 1}, {0x05d0, 0x05ea, 1}, {0x05ef, 0x05f2, 1}, {0x0620, 0x064a, 1}, {0x066e, 0x066f, 1}, {0x0671, 0x06d3, 1}, {0x06d5, 0x06e5, 16}, {0x06e6, 0x06ee, 8}, {0x06ef, 0x06fa, 11}, {0x06fb, 0x06fc, 1}, {0x06ff, 0x0710, 17}, {0x0712, 0x072f, 1}, {0x074d, 0x07a5, 1}, {0x07b1, 0x07ca, 25}, {0x07cb, 0x07ea, 1}, {0x07f4, 0x07f5, 1}, {0x07fa, 0x0800, 6}, {0x0801, 0x0815, 1}, {0x081a, 0x0824, 10}, {0x0828, 0x0840, 24}, {0x0841, 0x0858, 1}, {0x0860, 0x086a, 1}, {0x0870, 0x0887, 1}, {0x0889, 0x088e, 1}, {0x08a0, 0x08c9, 1}, {0x0904, 0x0939, 1}, {0x093d, 0x0950, 19}, {0x0958, 0x0961, 1}, {0x0971, 0x0980, 1}, {0x0985, 0x098c, 1}, {0x098f, 0x0990, 1}, {0x0993, 0x09a8, 1}, {0x09aa, 0x09b0, 1}, {0x09b2, 0x09b6, 4}, {0x09b7, 0x09b9, 1}, {0x09bd, 0x09ce, 17}, {0x09dc, 0x09dd, 1}, {0x09df, 0x09e1, 1}, {0x09f0, 0x09f1, 1}, {0x09fc, 0x0a05, 9}, {0x0a06, 0x0a0a, 1}, {0x0a0f, 0x0a10, 1}, {0x0a13, 0x0a28, 1}, {0x0a2a, 0x0a30, 1}, {0x0a32, 0x0a33, 1}, {0x0a35, 0x0a36, 1}, {0x0a38, 0x0a39, 1}, {0x0a59, 0x0a5c, 1}, {0x0a5e, 0x0a72, 20}, {0x0a73, 0x0a74, 1}, {0x0a85, 0x0a8d, 1}, {0x0a8f, 0x0a91, 1}, {0x0a93, 0x0aa8, 1}, {0x0aaa, 0x0ab0, 1}, {0x0ab2, 0x0ab3, 1}, {0x0ab5, 0x0ab9, 1}, {0x0abd, 0x0ad0, 19}, {0x0ae0, 0x0ae1, 1}, {0x0af9, 0x0b05, 12}, {0x0b06, 0x0b0c, 1}, {0x0b0f, 0x0b10, 1}, {0x0b13, 0x0b28, 1}, {0x0b2a, 0x0b30, 1}, {0x0b32, 0x0b33, 1}, {0x0b35, 0x0b39, 1}, {0x0b3d, 0x0b5c, 31}, {0x0b5d, 0x0b5f, 2}, {0x0b60, 0x0b61, 1}, {0x0b71, 0x0b83, 18}, {0x0b85, 0x0b8a, 1}, {0x0b8e, 0x0b90, 1}, {0x0b92, 0x0b95, 1}, {0x0b99, 0x0b9a, 1}, {0x0b9c, 0x0b9e, 2}, {0x0b9f, 0x0ba3, 4}, {0x0ba4, 0x0ba8, 4}, {0x0ba9, 0x0baa, 1}, {0x0bae, 0x0bb9, 1}, {0x0bd0, 0x0c05, 53}, {0x0c06, 0x0c0c, 1}, {0x0c0e, 0x0c10, 1}, {0x0c12, 0x0c28, 1}, {0x0c2a, 0x0c39, 1}, {0x0c3d, 0x0c58, 27}, {0x0c59, 0x0c5a, 1}, {0x0c5d, 0x0c60, 3}, {0x0c61, 0x0c80, 31}, {0x0c85, 0x0c8c, 1}, {0x0c8e, 0x0c90, 1}, {0x0c92, 0x0ca8, 1}, {0x0caa, 0x0cb3, 1}, {0x0cb5, 0x0cb9, 1}, {0x0cbd, 0x0cdd, 32}, {0x0cde, 0x0ce0, 2}, {0x0ce1, 0x0cf1, 16}, {0x0cf2, 0x0d04, 18}, {0x0d05, 0x0d0c, 1}, {0x0d0e, 0x0d10, 1}, {0x0d12, 0x0d3a, 1}, {0x0d3d, 0x0d4e, 17}, {0x0d54, 0x0d56, 1}, {0x0d5f, 0x0d61, 1}, {0x0d7a, 0x0d7f, 1}, {0x0d85, 0x0d96, 1}, {0x0d9a, 0x0db1, 1}, {0x0db3, 0x0dbb, 1}, {0x0dbd, 0x0dc0, 3}, {0x0dc1, 0x0dc6, 1}, {0x0e01, 0x0e30, 1}, {0x0e32, 0x0e33, 1}, {0x0e40, 0x0e46, 1}, {0x0e81, 0x0e82, 1}, {0x0e84, 0x0e86, 2}, {0x0e87, 0x0e8a, 1}, {0x0e8c, 0x0ea3, 1}, {0x0ea5, 0x0ea7, 2}, {0x0ea8, 0x0eb0, 1}, {0x0eb2, 0x0eb3, 1}, {0x0ebd, 0x0ec0, 3}, {0x0ec1, 0x0ec4, 1}, {0x0ec6, 0x0edc, 22}, {0x0edd, 0x0edf, 1}, {0x0f00, 0x0f40, 64}, {0x0f41, 0x0f47, 1}, {0x0f49, 0x0f6c, 1}, {0x0f88, 0x0f8c, 1}, {0x1000, 0x102a, 1}, {0x103f, 0x1050, 17}, {0x1051, 0x1055, 1}, {0x105a, 0x105d, 1}, {0x1061, 0x1065, 4}, {0x1066, 0x106e, 8}, {0x106f, 0x1070, 1}, {0x1075, 0x1081, 1}, {0x108e, 0x10a0, 18}, {0x10a1, 0x10c5, 1}, {0x10c7, 0x10cd, 6}, {0x10d0, 0x10fa, 1}, {0x10fc, 0x1248, 1}, {0x124a, 0x124d, 1}, {0x1250, 0x1256, 1}, {0x1258, 0x125a, 2}, {0x125b, 0x125d, 1}, {0x1260, 0x1288, 1}, {0x128a, 0x128d, 1}, {0x1290, 0x12b0, 1}, {0x12b2, 0x12b5, 1}, {0x12b8, 0x12be, 1}, {0x12c0, 0x12c2, 2}, {0x12c3, 0x12c5, 1}, {0x12c8, 0x12d6, 1}, {0x12d8, 0x1310, 1}, {0x1312, 0x1315, 1}, {0x1318, 0x135a, 1}, {0x1380, 0x138f, 1}, {0x13a0, 0x13f5, 1}, {0x13f8, 0x13fd, 1}, {0x1401, 0x166c, 1}, {0x166f, 0x167f, 1}, {0x1681, 0x169a, 1}, {0x16a0, 0x16ea, 1}, {0x16f1, 0x16f8, 1}, {0x1700, 0x1711, 1}, {0x171f, 0x1731, 1}, {0x1740, 0x1751, 1}, {0x1760, 0x176c, 1}, {0x176e, 0x1770, 1}, {0x1780, 0x17b3, 1}, {0x17d7, 0x17dc, 5}, {0x1820, 0x1878, 1}, {0x1880, 0x1884, 1}, {0x1887, 0x18a8, 1}, {0x18aa, 0x18b0, 6}, {0x18b1, 0x18f5, 1}, {0x1900, 0x191e, 1}, {0x1950, 0x196d, 1}, {0x1970, 0x1974, 1}, {0x1980, 0x19ab, 1}, {0x19b0, 0x19c9, 1}, {0x1a00, 0x1a16, 1}, {0x1a20, 0x1a54, 1}, {0x1aa7, 0x1b05, 94}, {0x1b06, 0x1b33, 1}, {0x1b45, 0x1b4c, 1}, {0x1b83, 0x1ba0, 1}, {0x1bae, 0x1baf, 1}, {0x1bba, 0x1be5, 1}, {0x1c00, 0x1c23, 1}, {0x1c4d, 0x1c4f, 1}, {0x1c5a, 0x1c7d, 1}, {0x1c80, 0x1c88, 1}, {0x1c90, 0x1cba, 1}, {0x1cbd, 0x1cbf, 1}, {0x1ce9, 0x1cec, 1}, {0x1cee, 0x1cf3, 1}, {0x1cf5, 0x1cf6, 1}, {0x1cfa, 0x1d00, 6}, {0x1d01, 0x1dbf, 1}, {0x1e00, 0x1f15, 1}, {0x1f18, 0x1f1d, 1}, {0x1f20, 0x1f45, 1}, {0x1f48, 0x1f4d, 1}, {0x1f50, 0x1f57, 1}, {0x1f59, 0x1f5f, 2}, {0x1f60, 0x1f7d, 1}, {0x1f80, 0x1fb4, 1}, {0x1fb6, 0x1fbc, 1}, {0x1fbe, 0x1fc2, 4}, {0x1fc3, 0x1fc4, 1}, {0x1fc6, 0x1fcc, 1}, {0x1fd0, 0x1fd3, 1}, {0x1fd6, 0x1fdb, 1}, {0x1fe0, 0x1fec, 1}, {0x1ff2, 0x1ff4, 1}, {0x1ff6, 0x1ffc, 1}, {0x2071, 0x207f, 14}, {0x2090, 0x209c, 1}, {0x2102, 0x2107, 5}, {0x210a, 0x2113, 1}, {0x2115, 0x2119, 4}, {0x211a, 0x211d, 1}, {0x2124, 0x212a, 2}, {0x212b, 0x212d, 1}, {0x212f, 0x2139, 1}, {0x213c, 0x213f, 1}, {0x2145, 0x2149, 1}, {0x214e, 0x2183, 53}, {0x2184, 0x2c00, 2684}, {0x2c01, 0x2ce4, 1}, {0x2ceb, 0x2cee, 1}, {0x2cf2, 0x2cf3, 1}, {0x2d00, 0x2d25, 1}, {0x2d27, 0x2d2d, 6}, {0x2d30, 0x2d67, 1}, {0x2d6f, 0x2d80, 17}, {0x2d81, 0x2d96, 1}, {0x2da0, 0x2da6, 1}, {0x2da8, 0x2dae, 1}, {0x2db0, 0x2db6, 1}, {0x2db8, 0x2dbe, 1}, {0x2dc0, 0x2dc6, 1}, {0x2dc8, 0x2dce, 1}, {0x2dd0, 0x2dd6, 1}, {0x2dd8, 0x2dde, 1}, {0x2e2f, 0x3005, 470}, {0x3006, 0x3031, 43}, {0x3032, 0x3035, 1}, {0x303b, 0x303c, 1}, {0x3041, 0x3096, 1}, {0x309d, 0x309f, 1}, {0x30a1, 0x30fa, 1}, {0x30fc, 0x30ff, 1}, {0x3105, 0x312f, 1}, {0x3131, 0x318e, 1}, {0x31a0, 0x31bf, 1}, {0x31f0, 0x31ff, 1}, {0x3400, 0x4dbf, 1}, {0x4e00, 0xa48c, 1}, {0xa4d0, 0xa4fd, 1}, {0xa500, 0xa60c, 1}, {0xa610, 0xa61f, 1}, {0xa62a, 0xa62b, 1}, {0xa640, 0xa66e, 1}, {0xa67f, 0xa69d, 1}, {0xa6a0, 0xa6e5, 1}, {0xa717, 0xa71f, 1}, {0xa722, 0xa788, 1}, {0xa78b, 0xa7ca, 1}, {0xa7d0, 0xa7d1, 1}, {0xa7d3, 0xa7d5, 2}, {0xa7d6, 0xa7d9, 1}, {0xa7f2, 0xa801, 1}, {0xa803, 0xa805, 1}, {0xa807, 0xa80a, 1}, {0xa80c, 0xa822, 1}, {0xa840, 0xa873, 1}, {0xa882, 0xa8b3, 1}, {0xa8f2, 0xa8f7, 1}, {0xa8fb, 0xa8fd, 2}, {0xa8fe, 0xa90a, 12}, {0xa90b, 0xa925, 1}, {0xa930, 0xa946, 1}, {0xa960, 0xa97c, 1}, {0xa984, 0xa9b2, 1}, {0xa9cf, 0xa9e0, 17}, {0xa9e1, 0xa9e4, 1}, {0xa9e6, 0xa9ef, 1}, {0xa9fa, 0xa9fe, 1}, {0xaa00, 0xaa28, 1}, {0xaa40, 0xaa42, 1}, {0xaa44, 0xaa4b, 1}, {0xaa60, 0xaa76, 1}, {0xaa7a, 0xaa7e, 4}, {0xaa7f, 0xaaaf, 1}, {0xaab1, 0xaab5, 4}, {0xaab6, 0xaab9, 3}, {0xaaba, 0xaabd, 1}, {0xaac0, 0xaac2, 2}, {0xaadb, 0xaadd, 1}, {0xaae0, 0xaaea, 1}, {0xaaf2, 0xaaf4, 1}, {0xab01, 0xab06, 1}, {0xab09, 0xab0e, 1}, {0xab11, 0xab16, 1}, {0xab20, 0xab26, 1}, {0xab28, 0xab2e, 1}, {0xab30, 0xab5a, 1}, {0xab5c, 0xab69, 1}, {0xab70, 0xabe2, 1}, {0xac00, 0xd7a3, 1}, {0xd7b0, 0xd7c6, 1}, {0xd7cb, 0xd7fb, 1}, {0xf900, 0xfa6d, 1}, {0xfa70, 0xfad9, 1}, {0xfb00, 0xfb06, 1}, {0xfb13, 0xfb17, 1}, {0xfb1d, 0xfb1f, 2}, {0xfb20, 0xfb28, 1}, {0xfb2a, 0xfb36, 1}, {0xfb38, 0xfb3c, 1}, {0xfb3e, 0xfb40, 2}, {0xfb41, 0xfb43, 2}, {0xfb44, 0xfb46, 2}, {0xfb47, 0xfbb1, 1}, {0xfbd3, 0xfd3d, 1}, {0xfd50, 0xfd8f, 1}, {0xfd92, 0xfdc7, 1}, {0xfdf0, 0xfdfb, 1}, {0xfe70, 0xfe74, 1}, {0xfe76, 0xfefc, 1}, {0xff21, 0xff3a, 1}, {0xff41, 0xff5a, 1}, {0xff66, 0xffbe, 1}, {0xffc2, 0xffc7, 1}, {0xffca, 0xffcf, 1}, {0xffd2, 0xffd7, 1}, {0xffda, 0xffdc, 1}, }, R32: []Range32{ {0x10000, 0x1000b, 1}, {0x1000d, 0x10026, 1}, {0x10028, 0x1003a, 1}, {0x1003c, 0x1003d, 1}, {0x1003f, 0x1004d, 1}, {0x10050, 0x1005d, 1}, {0x10080, 0x100fa, 1}, {0x10280, 0x1029c, 1}, {0x102a0, 0x102d0, 1}, {0x10300, 0x1031f, 1}, {0x1032d, 0x10340, 1}, {0x10342, 0x10349, 1}, {0x10350, 0x10375, 1}, {0x10380, 0x1039d, 1}, {0x103a0, 0x103c3, 1}, {0x103c8, 0x103cf, 1}, {0x10400, 0x1049d, 1}, {0x104b0, 0x104d3, 1}, {0x104d8, 0x104fb, 1}, {0x10500, 0x10527, 1}, {0x10530, 0x10563, 1}, {0x10570, 0x1057a, 1}, {0x1057c, 0x1058a, 1}, {0x1058c, 0x10592, 1}, {0x10594, 0x10595, 1}, {0x10597, 0x105a1, 1}, {0x105a3, 0x105b1, 1}, {0x105b3, 0x105b9, 1}, {0x105bb, 0x105bc, 1}, {0x10600, 0x10736, 1}, {0x10740, 0x10755, 1}, {0x10760, 0x10767, 1}, {0x10780, 0x10785, 1}, {0x10787, 0x107b0, 1}, {0x107b2, 0x107ba, 1}, {0x10800, 0x10805, 1}, {0x10808, 0x1080a, 2}, {0x1080b, 0x10835, 1}, {0x10837, 0x10838, 1}, {0x1083c, 0x1083f, 3}, {0x10840, 0x10855, 1}, {0x10860, 0x10876, 1}, {0x10880, 0x1089e, 1}, {0x108e0, 0x108f2, 1}, {0x108f4, 0x108f5, 1}, {0x10900, 0x10915, 1}, {0x10920, 0x10939, 1}, {0x10980, 0x109b7, 1}, {0x109be, 0x109bf, 1}, {0x10a00, 0x10a10, 16}, {0x10a11, 0x10a13, 1}, {0x10a15, 0x10a17, 1}, {0x10a19, 0x10a35, 1}, {0x10a60, 0x10a7c, 1}, {0x10a80, 0x10a9c, 1}, {0x10ac0, 0x10ac7, 1}, {0x10ac9, 0x10ae4, 1}, {0x10b00, 0x10b35, 1}, {0x10b40, 0x10b55, 1}, {0x10b60, 0x10b72, 1}, {0x10b80, 0x10b91, 1}, {0x10c00, 0x10c48, 1}, {0x10c80, 0x10cb2, 1}, {0x10cc0, 0x10cf2, 1}, {0x10d00, 0x10d23, 1}, {0x10e80, 0x10ea9, 1}, {0x10eb0, 0x10eb1, 1}, {0x10f00, 0x10f1c, 1}, {0x10f27, 0x10f30, 9}, {0x10f31, 0x10f45, 1}, {0x10f70, 0x10f81, 1}, {0x10fb0, 0x10fc4, 1}, {0x10fe0, 0x10ff6, 1}, {0x11003, 0x11037, 1}, {0x11071, 0x11072, 1}, {0x11075, 0x11083, 14}, {0x11084, 0x110af, 1}, {0x110d0, 0x110e8, 1}, {0x11103, 0x11126, 1}, {0x11144, 0x11147, 3}, {0x11150, 0x11172, 1}, {0x11176, 0x11183, 13}, {0x11184, 0x111b2, 1}, {0x111c1, 0x111c4, 1}, {0x111da, 0x111dc, 2}, {0x11200, 0x11211, 1}, {0x11213, 0x1122b, 1}, {0x1123f, 0x11240, 1}, {0x11280, 0x11286, 1}, {0x11288, 0x1128a, 2}, {0x1128b, 0x1128d, 1}, {0x1128f, 0x1129d, 1}, {0x1129f, 0x112a8, 1}, {0x112b0, 0x112de, 1}, {0x11305, 0x1130c, 1}, {0x1130f, 0x11310, 1}, {0x11313, 0x11328, 1}, {0x1132a, 0x11330, 1}, {0x11332, 0x11333, 1}, {0x11335, 0x11339, 1}, {0x1133d, 0x11350, 19}, {0x1135d, 0x11361, 1}, {0x11400, 0x11434, 1}, {0x11447, 0x1144a, 1}, {0x1145f, 0x11461, 1}, {0x11480, 0x114af, 1}, {0x114c4, 0x114c5, 1}, {0x114c7, 0x11580, 185}, {0x11581, 0x115ae, 1}, {0x115d8, 0x115db, 1}, {0x11600, 0x1162f, 1}, {0x11644, 0x11680, 60}, {0x11681, 0x116aa, 1}, {0x116b8, 0x11700, 72}, {0x11701, 0x1171a, 1}, {0x11740, 0x11746, 1}, {0x11800, 0x1182b, 1}, {0x118a0, 0x118df, 1}, {0x118ff, 0x11906, 1}, {0x11909, 0x1190c, 3}, {0x1190d, 0x11913, 1}, {0x11915, 0x11916, 1}, {0x11918, 0x1192f, 1}, {0x1193f, 0x11941, 2}, {0x119a0, 0x119a7, 1}, {0x119aa, 0x119d0, 1}, {0x119e1, 0x119e3, 2}, {0x11a00, 0x11a0b, 11}, {0x11a0c, 0x11a32, 1}, {0x11a3a, 0x11a50, 22}, {0x11a5c, 0x11a89, 1}, {0x11a9d, 0x11ab0, 19}, {0x11ab1, 0x11af8, 1}, {0x11c00, 0x11c08, 1}, {0x11c0a, 0x11c2e, 1}, {0x11c40, 0x11c72, 50}, {0x11c73, 0x11c8f, 1}, {0x11d00, 0x11d06, 1}, {0x11d08, 0x11d09, 1}, {0x11d0b, 0x11d30, 1}, {0x11d46, 0x11d60, 26}, {0x11d61, 0x11d65, 1}, {0x11d67, 0x11d68, 1}, {0x11d6a, 0x11d89, 1}, {0x11d98, 0x11ee0, 328}, {0x11ee1, 0x11ef2, 1}, {0x11f02, 0x11f04, 2}, {0x11f05, 0x11f10, 1}, {0x11f12, 0x11f33, 1}, {0x11fb0, 0x12000, 80}, {0x12001, 0x12399, 1}, {0x12480, 0x12543, 1}, {0x12f90, 0x12ff0, 1}, {0x13000, 0x1342f, 1}, {0x13441, 0x13446, 1}, {0x14400, 0x14646, 1}, {0x16800, 0x16a38, 1}, {0x16a40, 0x16a5e, 1}, {0x16a70, 0x16abe, 1}, {0x16ad0, 0x16aed, 1}, {0x16b00, 0x16b2f, 1}, {0x16b40, 0x16b43, 1}, {0x16b63, 0x16b77, 1}, {0x16b7d, 0x16b8f, 1}, {0x16e40, 0x16e7f, 1}, {0x16f00, 0x16f4a, 1}, {0x16f50, 0x16f93, 67}, {0x16f94, 0x16f9f, 1}, {0x16fe0, 0x16fe1, 1}, {0x16fe3, 0x17000, 29}, {0x17001, 0x187f7, 1}, {0x18800, 0x18cd5, 1}, {0x18d00, 0x18d08, 1}, {0x1aff0, 0x1aff3, 1}, {0x1aff5, 0x1affb, 1}, {0x1affd, 0x1affe, 1}, {0x1b000, 0x1b122, 1}, {0x1b132, 0x1b150, 30}, {0x1b151, 0x1b152, 1}, {0x1b155, 0x1b164, 15}, {0x1b165, 0x1b167, 1}, {0x1b170, 0x1b2fb, 1}, {0x1bc00, 0x1bc6a, 1}, {0x1bc70, 0x1bc7c, 1}, {0x1bc80, 0x1bc88, 1}, {0x1bc90, 0x1bc99, 1}, {0x1d400, 0x1d454, 1}, {0x1d456, 0x1d49c, 1}, {0x1d49e, 0x1d49f, 1}, {0x1d4a2, 0x1d4a5, 3}, {0x1d4a6, 0x1d4a9, 3}, {0x1d4aa, 0x1d4ac, 1}, {0x1d4ae, 0x1d4b9, 1}, {0x1d4bb, 0x1d4bd, 2}, {0x1d4be, 0x1d4c3, 1}, {0x1d4c5, 0x1d505, 1}, {0x1d507, 0x1d50a, 1}, {0x1d50d, 0x1d514, 1}, {0x1d516, 0x1d51c, 1}, {0x1d51e, 0x1d539, 1}, {0x1d53b, 0x1d53e, 1}, {0x1d540, 0x1d544, 1}, {0x1d546, 0x1d54a, 4}, {0x1d54b, 0x1d550, 1}, {0x1d552, 0x1d6a5, 1}, {0x1d6a8, 0x1d6c0, 1}, {0x1d6c2, 0x1d6da, 1}, {0x1d6dc, 0x1d6fa, 1}, {0x1d6fc, 0x1d714, 1}, {0x1d716, 0x1d734, 1}, {0x1d736, 0x1d74e, 1}, {0x1d750, 0x1d76e, 1}, {0x1d770, 0x1d788, 1}, {0x1d78a, 0x1d7a8, 1}, {0x1d7aa, 0x1d7c2, 1}, {0x1d7c4, 0x1d7cb, 1}, {0x1df00, 0x1df1e, 1}, {0x1df25, 0x1df2a, 1}, {0x1e030, 0x1e06d, 1}, {0x1e100, 0x1e12c, 1}, {0x1e137, 0x1e13d, 1}, {0x1e14e, 0x1e290, 322}, {0x1e291, 0x1e2ad, 1}, {0x1e2c0, 0x1e2eb, 1}, {0x1e4d0, 0x1e4eb, 1}, {0x1e7e0, 0x1e7e6, 1}, {0x1e7e8, 0x1e7eb, 1}, {0x1e7ed, 0x1e7ee, 1}, {0x1e7f0, 0x1e7fe, 1}, {0x1e800, 0x1e8c4, 1}, {0x1e900, 0x1e943, 1}, {0x1e94b, 0x1ee00, 1205}, {0x1ee01, 0x1ee03, 1}, {0x1ee05, 0x1ee1f, 1}, {0x1ee21, 0x1ee22, 1}, {0x1ee24, 0x1ee27, 3}, {0x1ee29, 0x1ee32, 1}, {0x1ee34, 0x1ee37, 1}, {0x1ee39, 0x1ee3b, 2}, {0x1ee42, 0x1ee47, 5}, {0x1ee49, 0x1ee4d, 2}, {0x1ee4e, 0x1ee4f, 1}, {0x1ee51, 0x1ee52, 1}, {0x1ee54, 0x1ee57, 3}, {0x1ee59, 0x1ee61, 2}, {0x1ee62, 0x1ee64, 2}, {0x1ee67, 0x1ee6a, 1}, {0x1ee6c, 0x1ee72, 1}, {0x1ee74, 0x1ee77, 1}, {0x1ee79, 0x1ee7c, 1}, {0x1ee7e, 0x1ee80, 2}, {0x1ee81, 0x1ee89, 1}, {0x1ee8b, 0x1ee9b, 1}, {0x1eea1, 0x1eea3, 1}, {0x1eea5, 0x1eea9, 1}, {0x1eeab, 0x1eebb, 1}, {0x20000, 0x2a6df, 1}, {0x2a700, 0x2b739, 1}, {0x2b740, 0x2b81d, 1}, {0x2b820, 0x2cea1, 1}, {0x2ceb0, 0x2ebe0, 1}, {0x2f800, 0x2fa1d, 1}, {0x30000, 0x3134a, 1}, {0x31350, 0x323af, 1}, }, LatinOffset: 6, } var _Ll = &RangeTable{ R16: []Range16{ {0x0061, 0x007a, 1}, {0x00b5, 0x00df, 42}, {0x00e0, 0x00f6, 1}, {0x00f8, 0x00ff, 1}, {0x0101, 0x0137, 2}, {0x0138, 0x0148, 2}, {0x0149, 0x0177, 2}, {0x017a, 0x017e, 2}, {0x017f, 0x0180, 1}, {0x0183, 0x0185, 2}, {0x0188, 0x018c, 4}, {0x018d, 0x0192, 5}, {0x0195, 0x0199, 4}, {0x019a, 0x019b, 1}, {0x019e, 0x01a1, 3}, {0x01a3, 0x01a5, 2}, {0x01a8, 0x01aa, 2}, {0x01ab, 0x01ad, 2}, {0x01b0, 0x01b4, 4}, {0x01b6, 0x01b9, 3}, {0x01ba, 0x01bd, 3}, {0x01be, 0x01bf, 1}, {0x01c6, 0x01cc, 3}, {0x01ce, 0x01dc, 2}, {0x01dd, 0x01ef, 2}, {0x01f0, 0x01f3, 3}, {0x01f5, 0x01f9, 4}, {0x01fb, 0x0233, 2}, {0x0234, 0x0239, 1}, {0x023c, 0x023f, 3}, {0x0240, 0x0242, 2}, {0x0247, 0x024f, 2}, {0x0250, 0x0293, 1}, {0x0295, 0x02af, 1}, {0x0371, 0x0373, 2}, {0x0377, 0x037b, 4}, {0x037c, 0x037d, 1}, {0x0390, 0x03ac, 28}, {0x03ad, 0x03ce, 1}, {0x03d0, 0x03d1, 1}, {0x03d5, 0x03d7, 1}, {0x03d9, 0x03ef, 2}, {0x03f0, 0x03f3, 1}, {0x03f5, 0x03fb, 3}, {0x03fc, 0x0430, 52}, {0x0431, 0x045f, 1}, {0x0461, 0x0481, 2}, {0x048b, 0x04bf, 2}, {0x04c2, 0x04ce, 2}, {0x04cf, 0x052f, 2}, {0x0560, 0x0588, 1}, {0x10d0, 0x10fa, 1}, {0x10fd, 0x10ff, 1}, {0x13f8, 0x13fd, 1}, {0x1c80, 0x1c88, 1}, {0x1d00, 0x1d2b, 1}, {0x1d6b, 0x1d77, 1}, {0x1d79, 0x1d9a, 1}, {0x1e01, 0x1e95, 2}, {0x1e96, 0x1e9d, 1}, {0x1e9f, 0x1eff, 2}, {0x1f00, 0x1f07, 1}, {0x1f10, 0x1f15, 1}, {0x1f20, 0x1f27, 1}, {0x1f30, 0x1f37, 1}, {0x1f40, 0x1f45, 1}, {0x1f50, 0x1f57, 1}, {0x1f60, 0x1f67, 1}, {0x1f70, 0x1f7d, 1}, {0x1f80, 0x1f87, 1}, {0x1f90, 0x1f97, 1}, {0x1fa0, 0x1fa7, 1}, {0x1fb0, 0x1fb4, 1}, {0x1fb6, 0x1fb7, 1}, {0x1fbe, 0x1fc2, 4}, {0x1fc3, 0x1fc4, 1}, {0x1fc6, 0x1fc7, 1}, {0x1fd0, 0x1fd3, 1}, {0x1fd6, 0x1fd7, 1}, {0x1fe0, 0x1fe7, 1}, {0x1ff2, 0x1ff4, 1}, {0x1ff6, 0x1ff7, 1}, {0x210a, 0x210e, 4}, {0x210f, 0x2113, 4}, {0x212f, 0x2139, 5}, {0x213c, 0x213d, 1}, {0x2146, 0x2149, 1}, {0x214e, 0x2184, 54}, {0x2c30, 0x2c5f, 1}, {0x2c61, 0x2c65, 4}, {0x2c66, 0x2c6c, 2}, {0x2c71, 0x2c73, 2}, {0x2c74, 0x2c76, 2}, {0x2c77, 0x2c7b, 1}, {0x2c81, 0x2ce3, 2}, {0x2ce4, 0x2cec, 8}, {0x2cee, 0x2cf3, 5}, {0x2d00, 0x2d25, 1}, {0x2d27, 0x2d2d, 6}, {0xa641, 0xa66d, 2}, {0xa681, 0xa69b, 2}, {0xa723, 0xa72f, 2}, {0xa730, 0xa731, 1}, {0xa733, 0xa771, 2}, {0xa772, 0xa778, 1}, {0xa77a, 0xa77c, 2}, {0xa77f, 0xa787, 2}, {0xa78c, 0xa78e, 2}, {0xa791, 0xa793, 2}, {0xa794, 0xa795, 1}, {0xa797, 0xa7a9, 2}, {0xa7af, 0xa7b5, 6}, {0xa7b7, 0xa7c3, 2}, {0xa7c8, 0xa7ca, 2}, {0xa7d1, 0xa7d9, 2}, {0xa7f6, 0xa7fa, 4}, {0xab30, 0xab5a, 1}, {0xab60, 0xab68, 1}, {0xab70, 0xabbf, 1}, {0xfb00, 0xfb06, 1}, {0xfb13, 0xfb17, 1}, {0xff41, 0xff5a, 1}, }, R32: []Range32{ {0x10428, 0x1044f, 1}, {0x104d8, 0x104fb, 1}, {0x10597, 0x105a1, 1}, {0x105a3, 0x105b1, 1}, {0x105b3, 0x105b9, 1}, {0x105bb, 0x105bc, 1}, {0x10cc0, 0x10cf2, 1}, {0x118c0, 0x118df, 1}, {0x16e60, 0x16e7f, 1}, {0x1d41a, 0x1d433, 1}, {0x1d44e, 0x1d454, 1}, {0x1d456, 0x1d467, 1}, {0x1d482, 0x1d49b, 1}, {0x1d4b6, 0x1d4b9, 1}, {0x1d4bb, 0x1d4bd, 2}, {0x1d4be, 0x1d4c3, 1}, {0x1d4c5, 0x1d4cf, 1}, {0x1d4ea, 0x1d503, 1}, {0x1d51e, 0x1d537, 1}, {0x1d552, 0x1d56b, 1}, {0x1d586, 0x1d59f, 1}, {0x1d5ba, 0x1d5d3, 1}, {0x1d5ee, 0x1d607, 1}, {0x1d622, 0x1d63b, 1}, {0x1d656, 0x1d66f, 1}, {0x1d68a, 0x1d6a5, 1}, {0x1d6c2, 0x1d6da, 1}, {0x1d6dc, 0x1d6e1, 1}, {0x1d6fc, 0x1d714, 1}, {0x1d716, 0x1d71b, 1}, {0x1d736, 0x1d74e, 1}, {0x1d750, 0x1d755, 1}, {0x1d770, 0x1d788, 1}, {0x1d78a, 0x1d78f, 1}, {0x1d7aa, 0x1d7c2, 1}, {0x1d7c4, 0x1d7c9, 1}, {0x1d7cb, 0x1df00, 1845}, {0x1df01, 0x1df09, 1}, {0x1df0b, 0x1df1e, 1}, {0x1df25, 0x1df2a, 1}, {0x1e922, 0x1e943, 1}, }, LatinOffset: 4, } var _Lm = &RangeTable{ R16: []Range16{ {0x02b0, 0x02c1, 1}, {0x02c6, 0x02d1, 1}, {0x02e0, 0x02e4, 1}, {0x02ec, 0x02ee, 2}, {0x0374, 0x037a, 6}, {0x0559, 0x0640, 231}, {0x06e5, 0x06e6, 1}, {0x07f4, 0x07f5, 1}, {0x07fa, 0x081a, 32}, {0x0824, 0x0828, 4}, {0x08c9, 0x0971, 168}, {0x0e46, 0x0ec6, 128}, {0x10fc, 0x17d7, 1755}, {0x1843, 0x1aa7, 612}, {0x1c78, 0x1c7d, 1}, {0x1d2c, 0x1d6a, 1}, {0x1d78, 0x1d9b, 35}, {0x1d9c, 0x1dbf, 1}, {0x2071, 0x207f, 14}, {0x2090, 0x209c, 1}, {0x2c7c, 0x2c7d, 1}, {0x2d6f, 0x2e2f, 192}, {0x3005, 0x3031, 44}, {0x3032, 0x3035, 1}, {0x303b, 0x309d, 98}, {0x309e, 0x30fc, 94}, {0x30fd, 0x30fe, 1}, {0xa015, 0xa4f8, 1251}, {0xa4f9, 0xa4fd, 1}, {0xa60c, 0xa67f, 115}, {0xa69c, 0xa69d, 1}, {0xa717, 0xa71f, 1}, {0xa770, 0xa788, 24}, {0xa7f2, 0xa7f4, 1}, {0xa7f8, 0xa7f9, 1}, {0xa9cf, 0xa9e6, 23}, {0xaa70, 0xaadd, 109}, {0xaaf3, 0xaaf4, 1}, {0xab5c, 0xab5f, 1}, {0xab69, 0xff70, 21511}, {0xff9e, 0xff9f, 1}, }, R32: []Range32{ {0x10780, 0x10785, 1}, {0x10787, 0x107b0, 1}, {0x107b2, 0x107ba, 1}, {0x16b40, 0x16b43, 1}, {0x16f93, 0x16f9f, 1}, {0x16fe0, 0x16fe1, 1}, {0x16fe3, 0x1aff0, 16397}, {0x1aff1, 0x1aff3, 1}, {0x1aff5, 0x1affb, 1}, {0x1affd, 0x1affe, 1}, {0x1e030, 0x1e06d, 1}, {0x1e137, 0x1e13d, 1}, {0x1e4eb, 0x1e94b, 1120}, }, } var _Lo = &RangeTable{ R16: []Range16{ {0x00aa, 0x00ba, 16}, {0x01bb, 0x01c0, 5}, {0x01c1, 0x01c3, 1}, {0x0294, 0x05d0, 828}, {0x05d1, 0x05ea, 1}, {0x05ef, 0x05f2, 1}, {0x0620, 0x063f, 1}, {0x0641, 0x064a, 1}, {0x066e, 0x066f, 1}, {0x0671, 0x06d3, 1}, {0x06d5, 0x06ee, 25}, {0x06ef, 0x06fa, 11}, {0x06fb, 0x06fc, 1}, {0x06ff, 0x0710, 17}, {0x0712, 0x072f, 1}, {0x074d, 0x07a5, 1}, {0x07b1, 0x07ca, 25}, {0x07cb, 0x07ea, 1}, {0x0800, 0x0815, 1}, {0x0840, 0x0858, 1}, {0x0860, 0x086a, 1}, {0x0870, 0x0887, 1}, {0x0889, 0x088e, 1}, {0x08a0, 0x08c8, 1}, {0x0904, 0x0939, 1}, {0x093d, 0x0950, 19}, {0x0958, 0x0961, 1}, {0x0972, 0x0980, 1}, {0x0985, 0x098c, 1}, {0x098f, 0x0990, 1}, {0x0993, 0x09a8, 1}, {0x09aa, 0x09b0, 1}, {0x09b2, 0x09b6, 4}, {0x09b7, 0x09b9, 1}, {0x09bd, 0x09ce, 17}, {0x09dc, 0x09dd, 1}, {0x09df, 0x09e1, 1}, {0x09f0, 0x09f1, 1}, {0x09fc, 0x0a05, 9}, {0x0a06, 0x0a0a, 1}, {0x0a0f, 0x0a10, 1}, {0x0a13, 0x0a28, 1}, {0x0a2a, 0x0a30, 1}, {0x0a32, 0x0a33, 1}, {0x0a35, 0x0a36, 1}, {0x0a38, 0x0a39, 1}, {0x0a59, 0x0a5c, 1}, {0x0a5e, 0x0a72, 20}, {0x0a73, 0x0a74, 1}, {0x0a85, 0x0a8d, 1}, {0x0a8f, 0x0a91, 1}, {0x0a93, 0x0aa8, 1}, {0x0aaa, 0x0ab0, 1}, {0x0ab2, 0x0ab3, 1}, {0x0ab5, 0x0ab9, 1}, {0x0abd, 0x0ad0, 19}, {0x0ae0, 0x0ae1, 1}, {0x0af9, 0x0b05, 12}, {0x0b06, 0x0b0c, 1}, {0x0b0f, 0x0b10, 1}, {0x0b13, 0x0b28, 1}, {0x0b2a, 0x0b30, 1}, {0x0b32, 0x0b33, 1}, {0x0b35, 0x0b39, 1}, {0x0b3d, 0x0b5c, 31}, {0x0b5d, 0x0b5f, 2}, {0x0b60, 0x0b61, 1}, {0x0b71, 0x0b83, 18}, {0x0b85, 0x0b8a, 1}, {0x0b8e, 0x0b90, 1}, {0x0b92, 0x0b95, 1}, {0x0b99, 0x0b9a, 1}, {0x0b9c, 0x0b9e, 2}, {0x0b9f, 0x0ba3, 4}, {0x0ba4, 0x0ba8, 4}, {0x0ba9, 0x0baa, 1}, {0x0bae, 0x0bb9, 1}, {0x0bd0, 0x0c05, 53}, {0x0c06, 0x0c0c, 1}, {0x0c0e, 0x0c10, 1}, {0x0c12, 0x0c28, 1}, {0x0c2a, 0x0c39, 1}, {0x0c3d, 0x0c58, 27}, {0x0c59, 0x0c5a, 1}, {0x0c5d, 0x0c60, 3}, {0x0c61, 0x0c80, 31}, {0x0c85, 0x0c8c, 1}, {0x0c8e, 0x0c90, 1}, {0x0c92, 0x0ca8, 1}, {0x0caa, 0x0cb3, 1}, {0x0cb5, 0x0cb9, 1}, {0x0cbd, 0x0cdd, 32}, {0x0cde, 0x0ce0, 2}, {0x0ce1, 0x0cf1, 16}, {0x0cf2, 0x0d04, 18}, {0x0d05, 0x0d0c, 1}, {0x0d0e, 0x0d10, 1}, {0x0d12, 0x0d3a, 1}, {0x0d3d, 0x0d4e, 17}, {0x0d54, 0x0d56, 1}, {0x0d5f, 0x0d61, 1}, {0x0d7a, 0x0d7f, 1}, {0x0d85, 0x0d96, 1}, {0x0d9a, 0x0db1, 1}, {0x0db3, 0x0dbb, 1}, {0x0dbd, 0x0dc0, 3}, {0x0dc1, 0x0dc6, 1}, {0x0e01, 0x0e30, 1}, {0x0e32, 0x0e33, 1}, {0x0e40, 0x0e45, 1}, {0x0e81, 0x0e82, 1}, {0x0e84, 0x0e86, 2}, {0x0e87, 0x0e8a, 1}, {0x0e8c, 0x0ea3, 1}, {0x0ea5, 0x0ea7, 2}, {0x0ea8, 0x0eb0, 1}, {0x0eb2, 0x0eb3, 1}, {0x0ebd, 0x0ec0, 3}, {0x0ec1, 0x0ec4, 1}, {0x0edc, 0x0edf, 1}, {0x0f00, 0x0f40, 64}, {0x0f41, 0x0f47, 1}, {0x0f49, 0x0f6c, 1}, {0x0f88, 0x0f8c, 1}, {0x1000, 0x102a, 1}, {0x103f, 0x1050, 17}, {0x1051, 0x1055, 1}, {0x105a, 0x105d, 1}, {0x1061, 0x1065, 4}, {0x1066, 0x106e, 8}, {0x106f, 0x1070, 1}, {0x1075, 0x1081, 1}, {0x108e, 0x1100, 114}, {0x1101, 0x1248, 1}, {0x124a, 0x124d, 1}, {0x1250, 0x1256, 1}, {0x1258, 0x125a, 2}, {0x125b, 0x125d, 1}, {0x1260, 0x1288, 1}, {0x128a, 0x128d, 1}, {0x1290, 0x12b0, 1}, {0x12b2, 0x12b5, 1}, {0x12b8, 0x12be, 1}, {0x12c0, 0x12c2, 2}, {0x12c3, 0x12c5, 1}, {0x12c8, 0x12d6, 1}, {0x12d8, 0x1310, 1}, {0x1312, 0x1315, 1}, {0x1318, 0x135a, 1}, {0x1380, 0x138f, 1}, {0x1401, 0x166c, 1}, {0x166f, 0x167f, 1}, {0x1681, 0x169a, 1}, {0x16a0, 0x16ea, 1}, {0x16f1, 0x16f8, 1}, {0x1700, 0x1711, 1}, {0x171f, 0x1731, 1}, {0x1740, 0x1751, 1}, {0x1760, 0x176c, 1}, {0x176e, 0x1770, 1}, {0x1780, 0x17b3, 1}, {0x17dc, 0x1820, 68}, {0x1821, 0x1842, 1}, {0x1844, 0x1878, 1}, {0x1880, 0x1884, 1}, {0x1887, 0x18a8, 1}, {0x18aa, 0x18b0, 6}, {0x18b1, 0x18f5, 1}, {0x1900, 0x191e, 1}, {0x1950, 0x196d, 1}, {0x1970, 0x1974, 1}, {0x1980, 0x19ab, 1}, {0x19b0, 0x19c9, 1}, {0x1a00, 0x1a16, 1}, {0x1a20, 0x1a54, 1}, {0x1b05, 0x1b33, 1}, {0x1b45, 0x1b4c, 1}, {0x1b83, 0x1ba0, 1}, {0x1bae, 0x1baf, 1}, {0x1bba, 0x1be5, 1}, {0x1c00, 0x1c23, 1}, {0x1c4d, 0x1c4f, 1}, {0x1c5a, 0x1c77, 1}, {0x1ce9, 0x1cec, 1}, {0x1cee, 0x1cf3, 1}, {0x1cf5, 0x1cf6, 1}, {0x1cfa, 0x2135, 1083}, {0x2136, 0x2138, 1}, {0x2d30, 0x2d67, 1}, {0x2d80, 0x2d96, 1}, {0x2da0, 0x2da6, 1}, {0x2da8, 0x2dae, 1}, {0x2db0, 0x2db6, 1}, {0x2db8, 0x2dbe, 1}, {0x2dc0, 0x2dc6, 1}, {0x2dc8, 0x2dce, 1}, {0x2dd0, 0x2dd6, 1}, {0x2dd8, 0x2dde, 1}, {0x3006, 0x303c, 54}, {0x3041, 0x3096, 1}, {0x309f, 0x30a1, 2}, {0x30a2, 0x30fa, 1}, {0x30ff, 0x3105, 6}, {0x3106, 0x312f, 1}, {0x3131, 0x318e, 1}, {0x31a0, 0x31bf, 1}, {0x31f0, 0x31ff, 1}, {0x3400, 0x4dbf, 1}, {0x4e00, 0xa014, 1}, {0xa016, 0xa48c, 1}, {0xa4d0, 0xa4f7, 1}, {0xa500, 0xa60b, 1}, {0xa610, 0xa61f, 1}, {0xa62a, 0xa62b, 1}, {0xa66e, 0xa6a0, 50}, {0xa6a1, 0xa6e5, 1}, {0xa78f, 0xa7f7, 104}, {0xa7fb, 0xa801, 1}, {0xa803, 0xa805, 1}, {0xa807, 0xa80a, 1}, {0xa80c, 0xa822, 1}, {0xa840, 0xa873, 1}, {0xa882, 0xa8b3, 1}, {0xa8f2, 0xa8f7, 1}, {0xa8fb, 0xa8fd, 2}, {0xa8fe, 0xa90a, 12}, {0xa90b, 0xa925, 1}, {0xa930, 0xa946, 1}, {0xa960, 0xa97c, 1}, {0xa984, 0xa9b2, 1}, {0xa9e0, 0xa9e4, 1}, {0xa9e7, 0xa9ef, 1}, {0xa9fa, 0xa9fe, 1}, {0xaa00, 0xaa28, 1}, {0xaa40, 0xaa42, 1}, {0xaa44, 0xaa4b, 1}, {0xaa60, 0xaa6f, 1}, {0xaa71, 0xaa76, 1}, {0xaa7a, 0xaa7e, 4}, {0xaa7f, 0xaaaf, 1}, {0xaab1, 0xaab5, 4}, {0xaab6, 0xaab9, 3}, {0xaaba, 0xaabd, 1}, {0xaac0, 0xaac2, 2}, {0xaadb, 0xaadc, 1}, {0xaae0, 0xaaea, 1}, {0xaaf2, 0xab01, 15}, {0xab02, 0xab06, 1}, {0xab09, 0xab0e, 1}, {0xab11, 0xab16, 1}, {0xab20, 0xab26, 1}, {0xab28, 0xab2e, 1}, {0xabc0, 0xabe2, 1}, {0xac00, 0xd7a3, 1}, {0xd7b0, 0xd7c6, 1}, {0xd7cb, 0xd7fb, 1}, {0xf900, 0xfa6d, 1}, {0xfa70, 0xfad9, 1}, {0xfb1d, 0xfb1f, 2}, {0xfb20, 0xfb28, 1}, {0xfb2a, 0xfb36, 1}, {0xfb38, 0xfb3c, 1}, {0xfb3e, 0xfb40, 2}, {0xfb41, 0xfb43, 2}, {0xfb44, 0xfb46, 2}, {0xfb47, 0xfbb1, 1}, {0xfbd3, 0xfd3d, 1}, {0xfd50, 0xfd8f, 1}, {0xfd92, 0xfdc7, 1}, {0xfdf0, 0xfdfb, 1}, {0xfe70, 0xfe74, 1}, {0xfe76, 0xfefc, 1}, {0xff66, 0xff6f, 1}, {0xff71, 0xff9d, 1}, {0xffa0, 0xffbe, 1}, {0xffc2, 0xffc7, 1}, {0xffca, 0xffcf, 1}, {0xffd2, 0xffd7, 1}, {0xffda, 0xffdc, 1}, }, R32: []Range32{ {0x10000, 0x1000b, 1}, {0x1000d, 0x10026, 1}, {0x10028, 0x1003a, 1}, {0x1003c, 0x1003d, 1}, {0x1003f, 0x1004d, 1}, {0x10050, 0x1005d, 1}, {0x10080, 0x100fa, 1}, {0x10280, 0x1029c, 1}, {0x102a0, 0x102d0, 1}, {0x10300, 0x1031f, 1}, {0x1032d, 0x10340, 1}, {0x10342, 0x10349, 1}, {0x10350, 0x10375, 1}, {0x10380, 0x1039d, 1}, {0x103a0, 0x103c3, 1}, {0x103c8, 0x103cf, 1}, {0x10450, 0x1049d, 1}, {0x10500, 0x10527, 1}, {0x10530, 0x10563, 1}, {0x10600, 0x10736, 1}, {0x10740, 0x10755, 1}, {0x10760, 0x10767, 1}, {0x10800, 0x10805, 1}, {0x10808, 0x1080a, 2}, {0x1080b, 0x10835, 1}, {0x10837, 0x10838, 1}, {0x1083c, 0x1083f, 3}, {0x10840, 0x10855, 1}, {0x10860, 0x10876, 1}, {0x10880, 0x1089e, 1}, {0x108e0, 0x108f2, 1}, {0x108f4, 0x108f5, 1}, {0x10900, 0x10915, 1}, {0x10920, 0x10939, 1}, {0x10980, 0x109b7, 1}, {0x109be, 0x109bf, 1}, {0x10a00, 0x10a10, 16}, {0x10a11, 0x10a13, 1}, {0x10a15, 0x10a17, 1}, {0x10a19, 0x10a35, 1}, {0x10a60, 0x10a7c, 1}, {0x10a80, 0x10a9c, 1}, {0x10ac0, 0x10ac7, 1}, {0x10ac9, 0x10ae4, 1}, {0x10b00, 0x10b35, 1}, {0x10b40, 0x10b55, 1}, {0x10b60, 0x10b72, 1}, {0x10b80, 0x10b91, 1}, {0x10c00, 0x10c48, 1}, {0x10d00, 0x10d23, 1}, {0x10e80, 0x10ea9, 1}, {0x10eb0, 0x10eb1, 1}, {0x10f00, 0x10f1c, 1}, {0x10f27, 0x10f30, 9}, {0x10f31, 0x10f45, 1}, {0x10f70, 0x10f81, 1}, {0x10fb0, 0x10fc4, 1}, {0x10fe0, 0x10ff6, 1}, {0x11003, 0x11037, 1}, {0x11071, 0x11072, 1}, {0x11075, 0x11083, 14}, {0x11084, 0x110af, 1}, {0x110d0, 0x110e8, 1}, {0x11103, 0x11126, 1}, {0x11144, 0x11147, 3}, {0x11150, 0x11172, 1}, {0x11176, 0x11183, 13}, {0x11184, 0x111b2, 1}, {0x111c1, 0x111c4, 1}, {0x111da, 0x111dc, 2}, {0x11200, 0x11211, 1}, {0x11213, 0x1122b, 1}, {0x1123f, 0x11240, 1}, {0x11280, 0x11286, 1}, {0x11288, 0x1128a, 2}, {0x1128b, 0x1128d, 1}, {0x1128f, 0x1129d, 1}, {0x1129f, 0x112a8, 1}, {0x112b0, 0x112de, 1}, {0x11305, 0x1130c, 1}, {0x1130f, 0x11310, 1}, {0x11313, 0x11328, 1}, {0x1132a, 0x11330, 1}, {0x11332, 0x11333, 1}, {0x11335, 0x11339, 1}, {0x1133d, 0x11350, 19}, {0x1135d, 0x11361, 1}, {0x11400, 0x11434, 1}, {0x11447, 0x1144a, 1}, {0x1145f, 0x11461, 1}, {0x11480, 0x114af, 1}, {0x114c4, 0x114c5, 1}, {0x114c7, 0x11580, 185}, {0x11581, 0x115ae, 1}, {0x115d8, 0x115db, 1}, {0x11600, 0x1162f, 1}, {0x11644, 0x11680, 60}, {0x11681, 0x116aa, 1}, {0x116b8, 0x11700, 72}, {0x11701, 0x1171a, 1}, {0x11740, 0x11746, 1}, {0x11800, 0x1182b, 1}, {0x118ff, 0x11906, 1}, {0x11909, 0x1190c, 3}, {0x1190d, 0x11913, 1}, {0x11915, 0x11916, 1}, {0x11918, 0x1192f, 1}, {0x1193f, 0x11941, 2}, {0x119a0, 0x119a7, 1}, {0x119aa, 0x119d0, 1}, {0x119e1, 0x119e3, 2}, {0x11a00, 0x11a0b, 11}, {0x11a0c, 0x11a32, 1}, {0x11a3a, 0x11a50, 22}, {0x11a5c, 0x11a89, 1}, {0x11a9d, 0x11ab0, 19}, {0x11ab1, 0x11af8, 1}, {0x11c00, 0x11c08, 1}, {0x11c0a, 0x11c2e, 1}, {0x11c40, 0x11c72, 50}, {0x11c73, 0x11c8f, 1}, {0x11d00, 0x11d06, 1}, {0x11d08, 0x11d09, 1}, {0x11d0b, 0x11d30, 1}, {0x11d46, 0x11d60, 26}, {0x11d61, 0x11d65, 1}, {0x11d67, 0x11d68, 1}, {0x11d6a, 0x11d89, 1}, {0x11d98, 0x11ee0, 328}, {0x11ee1, 0x11ef2, 1}, {0x11f02, 0x11f04, 2}, {0x11f05, 0x11f10, 1}, {0x11f12, 0x11f33, 1}, {0x11fb0, 0x12000, 80}, {0x12001, 0x12399, 1}, {0x12480, 0x12543, 1}, {0x12f90, 0x12ff0, 1}, {0x13000, 0x1342f, 1}, {0x13441, 0x13446, 1}, {0x14400, 0x14646, 1}, {0x16800, 0x16a38, 1}, {0x16a40, 0x16a5e, 1}, {0x16a70, 0x16abe, 1}, {0x16ad0, 0x16aed, 1}, {0x16b00, 0x16b2f, 1}, {0x16b63, 0x16b77, 1}, {0x16b7d, 0x16b8f, 1}, {0x16f00, 0x16f4a, 1}, {0x16f50, 0x17000, 176}, {0x17001, 0x187f7, 1}, {0x18800, 0x18cd5, 1}, {0x18d00, 0x18d08, 1}, {0x1b000, 0x1b122, 1}, {0x1b132, 0x1b150, 30}, {0x1b151, 0x1b152, 1}, {0x1b155, 0x1b164, 15}, {0x1b165, 0x1b167, 1}, {0x1b170, 0x1b2fb, 1}, {0x1bc00, 0x1bc6a, 1}, {0x1bc70, 0x1bc7c, 1}, {0x1bc80, 0x1bc88, 1}, {0x1bc90, 0x1bc99, 1}, {0x1df0a, 0x1e100, 502}, {0x1e101, 0x1e12c, 1}, {0x1e14e, 0x1e290, 322}, {0x1e291, 0x1e2ad, 1}, {0x1e2c0, 0x1e2eb, 1}, {0x1e4d0, 0x1e4ea, 1}, {0x1e7e0, 0x1e7e6, 1}, {0x1e7e8, 0x1e7eb, 1}, {0x1e7ed, 0x1e7ee, 1}, {0x1e7f0, 0x1e7fe, 1}, {0x1e800, 0x1e8c4, 1}, {0x1ee00, 0x1ee03, 1}, {0x1ee05, 0x1ee1f, 1}, {0x1ee21, 0x1ee22, 1}, {0x1ee24, 0x1ee27, 3}, {0x1ee29, 0x1ee32, 1}, {0x1ee34, 0x1ee37, 1}, {0x1ee39, 0x1ee3b, 2}, {0x1ee42, 0x1ee47, 5}, {0x1ee49, 0x1ee4d, 2}, {0x1ee4e, 0x1ee4f, 1}, {0x1ee51, 0x1ee52, 1}, {0x1ee54, 0x1ee57, 3}, {0x1ee59, 0x1ee61, 2}, {0x1ee62, 0x1ee64, 2}, {0x1ee67, 0x1ee6a, 1}, {0x1ee6c, 0x1ee72, 1}, {0x1ee74, 0x1ee77, 1}, {0x1ee79, 0x1ee7c, 1}, {0x1ee7e, 0x1ee80, 2}, {0x1ee81, 0x1ee89, 1}, {0x1ee8b, 0x1ee9b, 1}, {0x1eea1, 0x1eea3, 1}, {0x1eea5, 0x1eea9, 1}, {0x1eeab, 0x1eebb, 1}, {0x20000, 0x2a6df, 1}, {0x2a700, 0x2b739, 1}, {0x2b740, 0x2b81d, 1}, {0x2b820, 0x2cea1, 1}, {0x2ceb0, 0x2ebe0, 1}, {0x2f800, 0x2fa1d, 1}, {0x30000, 0x3134a, 1}, {0x31350, 0x323af, 1}, }, LatinOffset: 1, } var _Lt = &RangeTable{ R16: []Range16{ {0x01c5, 0x01cb, 3}, {0x01f2, 0x1f88, 7574}, {0x1f89, 0x1f8f, 1}, {0x1f98, 0x1f9f, 1}, {0x1fa8, 0x1faf, 1}, {0x1fbc, 0x1fcc, 16}, {0x1ffc, 0x1ffc, 1}, }, } var _Lu = &RangeTable{ R16: []Range16{ {0x0041, 0x005a, 1}, {0x00c0, 0x00d6, 1}, {0x00d8, 0x00de, 1}, {0x0100, 0x0136, 2}, {0x0139, 0x0147, 2}, {0x014a, 0x0178, 2}, {0x0179, 0x017d, 2}, {0x0181, 0x0182, 1}, {0x0184, 0x0186, 2}, {0x0187, 0x0189, 2}, {0x018a, 0x018b, 1}, {0x018e, 0x0191, 1}, {0x0193, 0x0194, 1}, {0x0196, 0x0198, 1}, {0x019c, 0x019d, 1}, {0x019f, 0x01a0, 1}, {0x01a2, 0x01a6, 2}, {0x01a7, 0x01a9, 2}, {0x01ac, 0x01ae, 2}, {0x01af, 0x01b1, 2}, {0x01b2, 0x01b3, 1}, {0x01b5, 0x01b7, 2}, {0x01b8, 0x01bc, 4}, {0x01c4, 0x01cd, 3}, {0x01cf, 0x01db, 2}, {0x01de, 0x01ee, 2}, {0x01f1, 0x01f4, 3}, {0x01f6, 0x01f8, 1}, {0x01fa, 0x0232, 2}, {0x023a, 0x023b, 1}, {0x023d, 0x023e, 1}, {0x0241, 0x0243, 2}, {0x0244, 0x0246, 1}, {0x0248, 0x024e, 2}, {0x0370, 0x0372, 2}, {0x0376, 0x037f, 9}, {0x0386, 0x0388, 2}, {0x0389, 0x038a, 1}, {0x038c, 0x038e, 2}, {0x038f, 0x0391, 2}, {0x0392, 0x03a1, 1}, {0x03a3, 0x03ab, 1}, {0x03cf, 0x03d2, 3}, {0x03d3, 0x03d4, 1}, {0x03d8, 0x03ee, 2}, {0x03f4, 0x03f7, 3}, {0x03f9, 0x03fa, 1}, {0x03fd, 0x042f, 1}, {0x0460, 0x0480, 2}, {0x048a, 0x04c0, 2}, {0x04c1, 0x04cd, 2}, {0x04d0, 0x052e, 2}, {0x0531, 0x0556, 1}, {0x10a0, 0x10c5, 1}, {0x10c7, 0x10cd, 6}, {0x13a0, 0x13f5, 1}, {0x1c90, 0x1cba, 1}, {0x1cbd, 0x1cbf, 1}, {0x1e00, 0x1e94, 2}, {0x1e9e, 0x1efe, 2}, {0x1f08, 0x1f0f, 1}, {0x1f18, 0x1f1d, 1}, {0x1f28, 0x1f2f, 1}, {0x1f38, 0x1f3f, 1}, {0x1f48, 0x1f4d, 1}, {0x1f59, 0x1f5f, 2}, {0x1f68, 0x1f6f, 1}, {0x1fb8, 0x1fbb, 1}, {0x1fc8, 0x1fcb, 1}, {0x1fd8, 0x1fdb, 1}, {0x1fe8, 0x1fec, 1}, {0x1ff8, 0x1ffb, 1}, {0x2102, 0x2107, 5}, {0x210b, 0x210d, 1}, {0x2110, 0x2112, 1}, {0x2115, 0x2119, 4}, {0x211a, 0x211d, 1}, {0x2124, 0x212a, 2}, {0x212b, 0x212d, 1}, {0x2130, 0x2133, 1}, {0x213e, 0x213f, 1}, {0x2145, 0x2183, 62}, {0x2c00, 0x2c2f, 1}, {0x2c60, 0x2c62, 2}, {0x2c63, 0x2c64, 1}, {0x2c67, 0x2c6d, 2}, {0x2c6e, 0x2c70, 1}, {0x2c72, 0x2c75, 3}, {0x2c7e, 0x2c80, 1}, {0x2c82, 0x2ce2, 2}, {0x2ceb, 0x2ced, 2}, {0x2cf2, 0xa640, 31054}, {0xa642, 0xa66c, 2}, {0xa680, 0xa69a, 2}, {0xa722, 0xa72e, 2}, {0xa732, 0xa76e, 2}, {0xa779, 0xa77d, 2}, {0xa77e, 0xa786, 2}, {0xa78b, 0xa78d, 2}, {0xa790, 0xa792, 2}, {0xa796, 0xa7aa, 2}, {0xa7ab, 0xa7ae, 1}, {0xa7b0, 0xa7b4, 1}, {0xa7b6, 0xa7c4, 2}, {0xa7c5, 0xa7c7, 1}, {0xa7c9, 0xa7d0, 7}, {0xa7d6, 0xa7d8, 2}, {0xa7f5, 0xff21, 22316}, {0xff22, 0xff3a, 1}, }, R32: []Range32{ {0x10400, 0x10427, 1}, {0x104b0, 0x104d3, 1}, {0x10570, 0x1057a, 1}, {0x1057c, 0x1058a, 1}, {0x1058c, 0x10592, 1}, {0x10594, 0x10595, 1}, {0x10c80, 0x10cb2, 1}, {0x118a0, 0x118bf, 1}, {0x16e40, 0x16e5f, 1}, {0x1d400, 0x1d419, 1}, {0x1d434, 0x1d44d, 1}, {0x1d468, 0x1d481, 1}, {0x1d49c, 0x1d49e, 2}, {0x1d49f, 0x1d4a5, 3}, {0x1d4a6, 0x1d4a9, 3}, {0x1d4aa, 0x1d4ac, 1}, {0x1d4ae, 0x1d4b5, 1}, {0x1d4d0, 0x1d4e9, 1}, {0x1d504, 0x1d505, 1}, {0x1d507, 0x1d50a, 1}, {0x1d50d, 0x1d514, 1}, {0x1d516, 0x1d51c, 1}, {0x1d538, 0x1d539, 1}, {0x1d53b, 0x1d53e, 1}, {0x1d540, 0x1d544, 1}, {0x1d546, 0x1d54a, 4}, {0x1d54b, 0x1d550, 1}, {0x1d56c, 0x1d585, 1}, {0x1d5a0, 0x1d5b9, 1}, {0x1d5d4, 0x1d5ed, 1}, {0x1d608, 0x1d621, 1}, {0x1d63c, 0x1d655, 1}, {0x1d670, 0x1d689, 1}, {0x1d6a8, 0x1d6c0, 1}, {0x1d6e2, 0x1d6fa, 1}, {0x1d71c, 0x1d734, 1}, {0x1d756, 0x1d76e, 1}, {0x1d790, 0x1d7a8, 1}, {0x1d7ca, 0x1e900, 4406}, {0x1e901, 0x1e921, 1}, }, LatinOffset: 3, } var _M = &RangeTable{ R16: []Range16{ {0x0300, 0x036f, 1}, {0x0483, 0x0489, 1}, {0x0591, 0x05bd, 1}, {0x05bf, 0x05c1, 2}, {0x05c2, 0x05c4, 2}, {0x05c5, 0x05c7, 2}, {0x0610, 0x061a, 1}, {0x064b, 0x065f, 1}, {0x0670, 0x06d6, 102}, {0x06d7, 0x06dc, 1}, {0x06df, 0x06e4, 1}, {0x06e7, 0x06e8, 1}, {0x06ea, 0x06ed, 1}, {0x0711, 0x0730, 31}, {0x0731, 0x074a, 1}, {0x07a6, 0x07b0, 1}, {0x07eb, 0x07f3, 1}, {0x07fd, 0x0816, 25}, {0x0817, 0x0819, 1}, {0x081b, 0x0823, 1}, {0x0825, 0x0827, 1}, {0x0829, 0x082d, 1}, {0x0859, 0x085b, 1}, {0x0898, 0x089f, 1}, {0x08ca, 0x08e1, 1}, {0x08e3, 0x0903, 1}, {0x093a, 0x093c, 1}, {0x093e, 0x094f, 1}, {0x0951, 0x0957, 1}, {0x0962, 0x0963, 1}, {0x0981, 0x0983, 1}, {0x09bc, 0x09be, 2}, {0x09bf, 0x09c4, 1}, {0x09c7, 0x09c8, 1}, {0x09cb, 0x09cd, 1}, {0x09d7, 0x09e2, 11}, {0x09e3, 0x09fe, 27}, {0x0a01, 0x0a03, 1}, {0x0a3c, 0x0a3e, 2}, {0x0a3f, 0x0a42, 1}, {0x0a47, 0x0a48, 1}, {0x0a4b, 0x0a4d, 1}, {0x0a51, 0x0a70, 31}, {0x0a71, 0x0a75, 4}, {0x0a81, 0x0a83, 1}, {0x0abc, 0x0abe, 2}, {0x0abf, 0x0ac5, 1}, {0x0ac7, 0x0ac9, 1}, {0x0acb, 0x0acd, 1}, {0x0ae2, 0x0ae3, 1}, {0x0afa, 0x0aff, 1}, {0x0b01, 0x0b03, 1}, {0x0b3c, 0x0b3e, 2}, {0x0b3f, 0x0b44, 1}, {0x0b47, 0x0b48, 1}, {0x0b4b, 0x0b4d, 1}, {0x0b55, 0x0b57, 1}, {0x0b62, 0x0b63, 1}, {0x0b82, 0x0bbe, 60}, {0x0bbf, 0x0bc2, 1}, {0x0bc6, 0x0bc8, 1}, {0x0bca, 0x0bcd, 1}, {0x0bd7, 0x0c00, 41}, {0x0c01, 0x0c04, 1}, {0x0c3c, 0x0c3e, 2}, {0x0c3f, 0x0c44, 1}, {0x0c46, 0x0c48, 1}, {0x0c4a, 0x0c4d, 1}, {0x0c55, 0x0c56, 1}, {0x0c62, 0x0c63, 1}, {0x0c81, 0x0c83, 1}, {0x0cbc, 0x0cbe, 2}, {0x0cbf, 0x0cc4, 1}, {0x0cc6, 0x0cc8, 1}, {0x0cca, 0x0ccd, 1}, {0x0cd5, 0x0cd6, 1}, {0x0ce2, 0x0ce3, 1}, {0x0cf3, 0x0d00, 13}, {0x0d01, 0x0d03, 1}, {0x0d3b, 0x0d3c, 1}, {0x0d3e, 0x0d44, 1}, {0x0d46, 0x0d48, 1}, {0x0d4a, 0x0d4d, 1}, {0x0d57, 0x0d62, 11}, {0x0d63, 0x0d81, 30}, {0x0d82, 0x0d83, 1}, {0x0dca, 0x0dcf, 5}, {0x0dd0, 0x0dd4, 1}, {0x0dd6, 0x0dd8, 2}, {0x0dd9, 0x0ddf, 1}, {0x0df2, 0x0df3, 1}, {0x0e31, 0x0e34, 3}, {0x0e35, 0x0e3a, 1}, {0x0e47, 0x0e4e, 1}, {0x0eb1, 0x0eb4, 3}, {0x0eb5, 0x0ebc, 1}, {0x0ec8, 0x0ece, 1}, {0x0f18, 0x0f19, 1}, {0x0f35, 0x0f39, 2}, {0x0f3e, 0x0f3f, 1}, {0x0f71, 0x0f84, 1}, {0x0f86, 0x0f87, 1}, {0x0f8d, 0x0f97, 1}, {0x0f99, 0x0fbc, 1}, {0x0fc6, 0x102b, 101}, {0x102c, 0x103e, 1}, {0x1056, 0x1059, 1}, {0x105e, 0x1060, 1}, {0x1062, 0x1064, 1}, {0x1067, 0x106d, 1}, {0x1071, 0x1074, 1}, {0x1082, 0x108d, 1}, {0x108f, 0x109a, 11}, {0x109b, 0x109d, 1}, {0x135d, 0x135f, 1}, {0x1712, 0x1715, 1}, {0x1732, 0x1734, 1}, {0x1752, 0x1753, 1}, {0x1772, 0x1773, 1}, {0x17b4, 0x17d3, 1}, {0x17dd, 0x180b, 46}, {0x180c, 0x180d, 1}, {0x180f, 0x1885, 118}, {0x1886, 0x18a9, 35}, {0x1920, 0x192b, 1}, {0x1930, 0x193b, 1}, {0x1a17, 0x1a1b, 1}, {0x1a55, 0x1a5e, 1}, {0x1a60, 0x1a7c, 1}, {0x1a7f, 0x1ab0, 49}, {0x1ab1, 0x1ace, 1}, {0x1b00, 0x1b04, 1}, {0x1b34, 0x1b44, 1}, {0x1b6b, 0x1b73, 1}, {0x1b80, 0x1b82, 1}, {0x1ba1, 0x1bad, 1}, {0x1be6, 0x1bf3, 1}, {0x1c24, 0x1c37, 1}, {0x1cd0, 0x1cd2, 1}, {0x1cd4, 0x1ce8, 1}, {0x1ced, 0x1cf4, 7}, {0x1cf7, 0x1cf9, 1}, {0x1dc0, 0x1dff, 1}, {0x20d0, 0x20f0, 1}, {0x2cef, 0x2cf1, 1}, {0x2d7f, 0x2de0, 97}, {0x2de1, 0x2dff, 1}, {0x302a, 0x302f, 1}, {0x3099, 0x309a, 1}, {0xa66f, 0xa672, 1}, {0xa674, 0xa67d, 1}, {0xa69e, 0xa69f, 1}, {0xa6f0, 0xa6f1, 1}, {0xa802, 0xa806, 4}, {0xa80b, 0xa823, 24}, {0xa824, 0xa827, 1}, {0xa82c, 0xa880, 84}, {0xa881, 0xa8b4, 51}, {0xa8b5, 0xa8c5, 1}, {0xa8e0, 0xa8f1, 1}, {0xa8ff, 0xa926, 39}, {0xa927, 0xa92d, 1}, {0xa947, 0xa953, 1}, {0xa980, 0xa983, 1}, {0xa9b3, 0xa9c0, 1}, {0xa9e5, 0xaa29, 68}, {0xaa2a, 0xaa36, 1}, {0xaa43, 0xaa4c, 9}, {0xaa4d, 0xaa7b, 46}, {0xaa7c, 0xaa7d, 1}, {0xaab0, 0xaab2, 2}, {0xaab3, 0xaab4, 1}, {0xaab7, 0xaab8, 1}, {0xaabe, 0xaabf, 1}, {0xaac1, 0xaaeb, 42}, {0xaaec, 0xaaef, 1}, {0xaaf5, 0xaaf6, 1}, {0xabe3, 0xabea, 1}, {0xabec, 0xabed, 1}, {0xfb1e, 0xfe00, 738}, {0xfe01, 0xfe0f, 1}, {0xfe20, 0xfe2f, 1}, }, R32: []Range32{ {0x101fd, 0x102e0, 227}, {0x10376, 0x1037a, 1}, {0x10a01, 0x10a03, 1}, {0x10a05, 0x10a06, 1}, {0x10a0c, 0x10a0f, 1}, {0x10a38, 0x10a3a, 1}, {0x10a3f, 0x10ae5, 166}, {0x10ae6, 0x10d24, 574}, {0x10d25, 0x10d27, 1}, {0x10eab, 0x10eac, 1}, {0x10efd, 0x10eff, 1}, {0x10f46, 0x10f50, 1}, {0x10f82, 0x10f85, 1}, {0x11000, 0x11002, 1}, {0x11038, 0x11046, 1}, {0x11070, 0x11073, 3}, {0x11074, 0x1107f, 11}, {0x11080, 0x11082, 1}, {0x110b0, 0x110ba, 1}, {0x110c2, 0x11100, 62}, {0x11101, 0x11102, 1}, {0x11127, 0x11134, 1}, {0x11145, 0x11146, 1}, {0x11173, 0x11180, 13}, {0x11181, 0x11182, 1}, {0x111b3, 0x111c0, 1}, {0x111c9, 0x111cc, 1}, {0x111ce, 0x111cf, 1}, {0x1122c, 0x11237, 1}, {0x1123e, 0x11241, 3}, {0x112df, 0x112ea, 1}, {0x11300, 0x11303, 1}, {0x1133b, 0x1133c, 1}, {0x1133e, 0x11344, 1}, {0x11347, 0x11348, 1}, {0x1134b, 0x1134d, 1}, {0x11357, 0x11362, 11}, {0x11363, 0x11366, 3}, {0x11367, 0x1136c, 1}, {0x11370, 0x11374, 1}, {0x11435, 0x11446, 1}, {0x1145e, 0x114b0, 82}, {0x114b1, 0x114c3, 1}, {0x115af, 0x115b5, 1}, {0x115b8, 0x115c0, 1}, {0x115dc, 0x115dd, 1}, {0x11630, 0x11640, 1}, {0x116ab, 0x116b7, 1}, {0x1171d, 0x1172b, 1}, {0x1182c, 0x1183a, 1}, {0x11930, 0x11935, 1}, {0x11937, 0x11938, 1}, {0x1193b, 0x1193e, 1}, {0x11940, 0x11942, 2}, {0x11943, 0x119d1, 142}, {0x119d2, 0x119d7, 1}, {0x119da, 0x119e0, 1}, {0x119e4, 0x11a01, 29}, {0x11a02, 0x11a0a, 1}, {0x11a33, 0x11a39, 1}, {0x11a3b, 0x11a3e, 1}, {0x11a47, 0x11a51, 10}, {0x11a52, 0x11a5b, 1}, {0x11a8a, 0x11a99, 1}, {0x11c2f, 0x11c36, 1}, {0x11c38, 0x11c3f, 1}, {0x11c92, 0x11ca7, 1}, {0x11ca9, 0x11cb6, 1}, {0x11d31, 0x11d36, 1}, {0x11d3a, 0x11d3c, 2}, {0x11d3d, 0x11d3f, 2}, {0x11d40, 0x11d45, 1}, {0x11d47, 0x11d8a, 67}, {0x11d8b, 0x11d8e, 1}, {0x11d90, 0x11d91, 1}, {0x11d93, 0x11d97, 1}, {0x11ef3, 0x11ef6, 1}, {0x11f00, 0x11f01, 1}, {0x11f03, 0x11f34, 49}, {0x11f35, 0x11f3a, 1}, {0x11f3e, 0x11f42, 1}, {0x13440, 0x13447, 7}, {0x13448, 0x13455, 1}, {0x16af0, 0x16af4, 1}, {0x16b30, 0x16b36, 1}, {0x16f4f, 0x16f51, 2}, {0x16f52, 0x16f87, 1}, {0x16f8f, 0x16f92, 1}, {0x16fe4, 0x16ff0, 12}, {0x16ff1, 0x1bc9d, 19628}, {0x1bc9e, 0x1cf00, 4706}, {0x1cf01, 0x1cf2d, 1}, {0x1cf30, 0x1cf46, 1}, {0x1d165, 0x1d169, 1}, {0x1d16d, 0x1d172, 1}, {0x1d17b, 0x1d182, 1}, {0x1d185, 0x1d18b, 1}, {0x1d1aa, 0x1d1ad, 1}, {0x1d242, 0x1d244, 1}, {0x1da00, 0x1da36, 1}, {0x1da3b, 0x1da6c, 1}, {0x1da75, 0x1da84, 15}, {0x1da9b, 0x1da9f, 1}, {0x1daa1, 0x1daaf, 1}, {0x1e000, 0x1e006, 1}, {0x1e008, 0x1e018, 1}, {0x1e01b, 0x1e021, 1}, {0x1e023, 0x1e024, 1}, {0x1e026, 0x1e02a, 1}, {0x1e08f, 0x1e130, 161}, {0x1e131, 0x1e136, 1}, {0x1e2ae, 0x1e2ec, 62}, {0x1e2ed, 0x1e2ef, 1}, {0x1e4ec, 0x1e4ef, 1}, {0x1e8d0, 0x1e8d6, 1}, {0x1e944, 0x1e94a, 1}, {0xe0100, 0xe01ef, 1}, }, } var _Mc = &RangeTable{ R16: []Range16{ {0x0903, 0x093b, 56}, {0x093e, 0x0940, 1}, {0x0949, 0x094c, 1}, {0x094e, 0x094f, 1}, {0x0982, 0x0983, 1}, {0x09be, 0x09c0, 1}, {0x09c7, 0x09c8, 1}, {0x09cb, 0x09cc, 1}, {0x09d7, 0x0a03, 44}, {0x0a3e, 0x0a40, 1}, {0x0a83, 0x0abe, 59}, {0x0abf, 0x0ac0, 1}, {0x0ac9, 0x0acb, 2}, {0x0acc, 0x0b02, 54}, {0x0b03, 0x0b3e, 59}, {0x0b40, 0x0b47, 7}, {0x0b48, 0x0b4b, 3}, {0x0b4c, 0x0b57, 11}, {0x0bbe, 0x0bbf, 1}, {0x0bc1, 0x0bc2, 1}, {0x0bc6, 0x0bc8, 1}, {0x0bca, 0x0bcc, 1}, {0x0bd7, 0x0c01, 42}, {0x0c02, 0x0c03, 1}, {0x0c41, 0x0c44, 1}, {0x0c82, 0x0c83, 1}, {0x0cbe, 0x0cc0, 2}, {0x0cc1, 0x0cc4, 1}, {0x0cc7, 0x0cc8, 1}, {0x0cca, 0x0ccb, 1}, {0x0cd5, 0x0cd6, 1}, {0x0cf3, 0x0d02, 15}, {0x0d03, 0x0d3e, 59}, {0x0d3f, 0x0d40, 1}, {0x0d46, 0x0d48, 1}, {0x0d4a, 0x0d4c, 1}, {0x0d57, 0x0d82, 43}, {0x0d83, 0x0dcf, 76}, {0x0dd0, 0x0dd1, 1}, {0x0dd8, 0x0ddf, 1}, {0x0df2, 0x0df3, 1}, {0x0f3e, 0x0f3f, 1}, {0x0f7f, 0x102b, 172}, {0x102c, 0x1031, 5}, {0x1038, 0x103b, 3}, {0x103c, 0x1056, 26}, {0x1057, 0x1062, 11}, {0x1063, 0x1064, 1}, {0x1067, 0x106d, 1}, {0x1083, 0x1084, 1}, {0x1087, 0x108c, 1}, {0x108f, 0x109a, 11}, {0x109b, 0x109c, 1}, {0x1715, 0x1734, 31}, {0x17b6, 0x17be, 8}, {0x17bf, 0x17c5, 1}, {0x17c7, 0x17c8, 1}, {0x1923, 0x1926, 1}, {0x1929, 0x192b, 1}, {0x1930, 0x1931, 1}, {0x1933, 0x1938, 1}, {0x1a19, 0x1a1a, 1}, {0x1a55, 0x1a57, 2}, {0x1a61, 0x1a63, 2}, {0x1a64, 0x1a6d, 9}, {0x1a6e, 0x1a72, 1}, {0x1b04, 0x1b35, 49}, {0x1b3b, 0x1b3d, 2}, {0x1b3e, 0x1b41, 1}, {0x1b43, 0x1b44, 1}, {0x1b82, 0x1ba1, 31}, {0x1ba6, 0x1ba7, 1}, {0x1baa, 0x1be7, 61}, {0x1bea, 0x1bec, 1}, {0x1bee, 0x1bf2, 4}, {0x1bf3, 0x1c24, 49}, {0x1c25, 0x1c2b, 1}, {0x1c34, 0x1c35, 1}, {0x1ce1, 0x1cf7, 22}, {0x302e, 0x302f, 1}, {0xa823, 0xa824, 1}, {0xa827, 0xa880, 89}, {0xa881, 0xa8b4, 51}, {0xa8b5, 0xa8c3, 1}, {0xa952, 0xa953, 1}, {0xa983, 0xa9b4, 49}, {0xa9b5, 0xa9ba, 5}, {0xa9bb, 0xa9be, 3}, {0xa9bf, 0xa9c0, 1}, {0xaa2f, 0xaa30, 1}, {0xaa33, 0xaa34, 1}, {0xaa4d, 0xaa7b, 46}, {0xaa7d, 0xaaeb, 110}, {0xaaee, 0xaaef, 1}, {0xaaf5, 0xabe3, 238}, {0xabe4, 0xabe6, 2}, {0xabe7, 0xabe9, 2}, {0xabea, 0xabec, 2}, }, R32: []Range32{ {0x11000, 0x11002, 2}, {0x11082, 0x110b0, 46}, {0x110b1, 0x110b2, 1}, {0x110b7, 0x110b8, 1}, {0x1112c, 0x11145, 25}, {0x11146, 0x11182, 60}, {0x111b3, 0x111b5, 1}, {0x111bf, 0x111c0, 1}, {0x111ce, 0x1122c, 94}, {0x1122d, 0x1122e, 1}, {0x11232, 0x11233, 1}, {0x11235, 0x112e0, 171}, {0x112e1, 0x112e2, 1}, {0x11302, 0x11303, 1}, {0x1133e, 0x1133f, 1}, {0x11341, 0x11344, 1}, {0x11347, 0x11348, 1}, {0x1134b, 0x1134d, 1}, {0x11357, 0x11362, 11}, {0x11363, 0x11435, 210}, {0x11436, 0x11437, 1}, {0x11440, 0x11441, 1}, {0x11445, 0x114b0, 107}, {0x114b1, 0x114b2, 1}, {0x114b9, 0x114bb, 2}, {0x114bc, 0x114be, 1}, {0x114c1, 0x115af, 238}, {0x115b0, 0x115b1, 1}, {0x115b8, 0x115bb, 1}, {0x115be, 0x11630, 114}, {0x11631, 0x11632, 1}, {0x1163b, 0x1163c, 1}, {0x1163e, 0x116ac, 110}, {0x116ae, 0x116af, 1}, {0x116b6, 0x11720, 106}, {0x11721, 0x11726, 5}, {0x1182c, 0x1182e, 1}, {0x11838, 0x11930, 248}, {0x11931, 0x11935, 1}, {0x11937, 0x11938, 1}, {0x1193d, 0x11940, 3}, {0x11942, 0x119d1, 143}, {0x119d2, 0x119d3, 1}, {0x119dc, 0x119df, 1}, {0x119e4, 0x11a39, 85}, {0x11a57, 0x11a58, 1}, {0x11a97, 0x11c2f, 408}, {0x11c3e, 0x11ca9, 107}, {0x11cb1, 0x11cb4, 3}, {0x11d8a, 0x11d8e, 1}, {0x11d93, 0x11d94, 1}, {0x11d96, 0x11ef5, 351}, {0x11ef6, 0x11f03, 13}, {0x11f34, 0x11f35, 1}, {0x11f3e, 0x11f3f, 1}, {0x11f41, 0x16f51, 20496}, {0x16f52, 0x16f87, 1}, {0x16ff0, 0x16ff1, 1}, {0x1d165, 0x1d166, 1}, {0x1d16d, 0x1d172, 1}, }, } var _Me = &RangeTable{ R16: []Range16{ {0x0488, 0x0489, 1}, {0x1abe, 0x20dd, 1567}, {0x20de, 0x20e0, 1}, {0x20e2, 0x20e4, 1}, {0xa670, 0xa672, 1}, }, } var _Mn = &RangeTable{ R16: []Range16{ {0x0300, 0x036f, 1}, {0x0483, 0x0487, 1}, {0x0591, 0x05bd, 1}, {0x05bf, 0x05c1, 2}, {0x05c2, 0x05c4, 2}, {0x05c5, 0x05c7, 2}, {0x0610, 0x061a, 1}, {0x064b, 0x065f, 1}, {0x0670, 0x06d6, 102}, {0x06d7, 0x06dc, 1}, {0x06df, 0x06e4, 1}, {0x06e7, 0x06e8, 1}, {0x06ea, 0x06ed, 1}, {0x0711, 0x0730, 31}, {0x0731, 0x074a, 1}, {0x07a6, 0x07b0, 1}, {0x07eb, 0x07f3, 1}, {0x07fd, 0x0816, 25}, {0x0817, 0x0819, 1}, {0x081b, 0x0823, 1}, {0x0825, 0x0827, 1}, {0x0829, 0x082d, 1}, {0x0859, 0x085b, 1}, {0x0898, 0x089f, 1}, {0x08ca, 0x08e1, 1}, {0x08e3, 0x0902, 1}, {0x093a, 0x093c, 2}, {0x0941, 0x0948, 1}, {0x094d, 0x0951, 4}, {0x0952, 0x0957, 1}, {0x0962, 0x0963, 1}, {0x0981, 0x09bc, 59}, {0x09c1, 0x09c4, 1}, {0x09cd, 0x09e2, 21}, {0x09e3, 0x09fe, 27}, {0x0a01, 0x0a02, 1}, {0x0a3c, 0x0a41, 5}, {0x0a42, 0x0a47, 5}, {0x0a48, 0x0a4b, 3}, {0x0a4c, 0x0a4d, 1}, {0x0a51, 0x0a70, 31}, {0x0a71, 0x0a75, 4}, {0x0a81, 0x0a82, 1}, {0x0abc, 0x0ac1, 5}, {0x0ac2, 0x0ac5, 1}, {0x0ac7, 0x0ac8, 1}, {0x0acd, 0x0ae2, 21}, {0x0ae3, 0x0afa, 23}, {0x0afb, 0x0aff, 1}, {0x0b01, 0x0b3c, 59}, {0x0b3f, 0x0b41, 2}, {0x0b42, 0x0b44, 1}, {0x0b4d, 0x0b55, 8}, {0x0b56, 0x0b62, 12}, {0x0b63, 0x0b82, 31}, {0x0bc0, 0x0bcd, 13}, {0x0c00, 0x0c04, 4}, {0x0c3c, 0x0c3e, 2}, {0x0c3f, 0x0c40, 1}, {0x0c46, 0x0c48, 1}, {0x0c4a, 0x0c4d, 1}, {0x0c55, 0x0c56, 1}, {0x0c62, 0x0c63, 1}, {0x0c81, 0x0cbc, 59}, {0x0cbf, 0x0cc6, 7}, {0x0ccc, 0x0ccd, 1}, {0x0ce2, 0x0ce3, 1}, {0x0d00, 0x0d01, 1}, {0x0d3b, 0x0d3c, 1}, {0x0d41, 0x0d44, 1}, {0x0d4d, 0x0d62, 21}, {0x0d63, 0x0d81, 30}, {0x0dca, 0x0dd2, 8}, {0x0dd3, 0x0dd4, 1}, {0x0dd6, 0x0e31, 91}, {0x0e34, 0x0e3a, 1}, {0x0e47, 0x0e4e, 1}, {0x0eb1, 0x0eb4, 3}, {0x0eb5, 0x0ebc, 1}, {0x0ec8, 0x0ece, 1}, {0x0f18, 0x0f19, 1}, {0x0f35, 0x0f39, 2}, {0x0f71, 0x0f7e, 1}, {0x0f80, 0x0f84, 1}, {0x0f86, 0x0f87, 1}, {0x0f8d, 0x0f97, 1}, {0x0f99, 0x0fbc, 1}, {0x0fc6, 0x102d, 103}, {0x102e, 0x1030, 1}, {0x1032, 0x1037, 1}, {0x1039, 0x103a, 1}, {0x103d, 0x103e, 1}, {0x1058, 0x1059, 1}, {0x105e, 0x1060, 1}, {0x1071, 0x1074, 1}, {0x1082, 0x1085, 3}, {0x1086, 0x108d, 7}, {0x109d, 0x135d, 704}, {0x135e, 0x135f, 1}, {0x1712, 0x1714, 1}, {0x1732, 0x1733, 1}, {0x1752, 0x1753, 1}, {0x1772, 0x1773, 1}, {0x17b4, 0x17b5, 1}, {0x17b7, 0x17bd, 1}, {0x17c6, 0x17c9, 3}, {0x17ca, 0x17d3, 1}, {0x17dd, 0x180b, 46}, {0x180c, 0x180d, 1}, {0x180f, 0x1885, 118}, {0x1886, 0x18a9, 35}, {0x1920, 0x1922, 1}, {0x1927, 0x1928, 1}, {0x1932, 0x1939, 7}, {0x193a, 0x193b, 1}, {0x1a17, 0x1a18, 1}, {0x1a1b, 0x1a56, 59}, {0x1a58, 0x1a5e, 1}, {0x1a60, 0x1a62, 2}, {0x1a65, 0x1a6c, 1}, {0x1a73, 0x1a7c, 1}, {0x1a7f, 0x1ab0, 49}, {0x1ab1, 0x1abd, 1}, {0x1abf, 0x1ace, 1}, {0x1b00, 0x1b03, 1}, {0x1b34, 0x1b36, 2}, {0x1b37, 0x1b3a, 1}, {0x1b3c, 0x1b42, 6}, {0x1b6b, 0x1b73, 1}, {0x1b80, 0x1b81, 1}, {0x1ba2, 0x1ba5, 1}, {0x1ba8, 0x1ba9, 1}, {0x1bab, 0x1bad, 1}, {0x1be6, 0x1be8, 2}, {0x1be9, 0x1bed, 4}, {0x1bef, 0x1bf1, 1}, {0x1c2c, 0x1c33, 1}, {0x1c36, 0x1c37, 1}, {0x1cd0, 0x1cd2, 1}, {0x1cd4, 0x1ce0, 1}, {0x1ce2, 0x1ce8, 1}, {0x1ced, 0x1cf4, 7}, {0x1cf8, 0x1cf9, 1}, {0x1dc0, 0x1dff, 1}, {0x20d0, 0x20dc, 1}, {0x20e1, 0x20e5, 4}, {0x20e6, 0x20f0, 1}, {0x2cef, 0x2cf1, 1}, {0x2d7f, 0x2de0, 97}, {0x2de1, 0x2dff, 1}, {0x302a, 0x302d, 1}, {0x3099, 0x309a, 1}, {0xa66f, 0xa674, 5}, {0xa675, 0xa67d, 1}, {0xa69e, 0xa69f, 1}, {0xa6f0, 0xa6f1, 1}, {0xa802, 0xa806, 4}, {0xa80b, 0xa825, 26}, {0xa826, 0xa82c, 6}, {0xa8c4, 0xa8c5, 1}, {0xa8e0, 0xa8f1, 1}, {0xa8ff, 0xa926, 39}, {0xa927, 0xa92d, 1}, {0xa947, 0xa951, 1}, {0xa980, 0xa982, 1}, {0xa9b3, 0xa9b6, 3}, {0xa9b7, 0xa9b9, 1}, {0xa9bc, 0xa9bd, 1}, {0xa9e5, 0xaa29, 68}, {0xaa2a, 0xaa2e, 1}, {0xaa31, 0xaa32, 1}, {0xaa35, 0xaa36, 1}, {0xaa43, 0xaa4c, 9}, {0xaa7c, 0xaab0, 52}, {0xaab2, 0xaab4, 1}, {0xaab7, 0xaab8, 1}, {0xaabe, 0xaabf, 1}, {0xaac1, 0xaaec, 43}, {0xaaed, 0xaaf6, 9}, {0xabe5, 0xabe8, 3}, {0xabed, 0xfb1e, 20273}, {0xfe00, 0xfe0f, 1}, {0xfe20, 0xfe2f, 1}, }, R32: []Range32{ {0x101fd, 0x102e0, 227}, {0x10376, 0x1037a, 1}, {0x10a01, 0x10a03, 1}, {0x10a05, 0x10a06, 1}, {0x10a0c, 0x10a0f, 1}, {0x10a38, 0x10a3a, 1}, {0x10a3f, 0x10ae5, 166}, {0x10ae6, 0x10d24, 574}, {0x10d25, 0x10d27, 1}, {0x10eab, 0x10eac, 1}, {0x10efd, 0x10eff, 1}, {0x10f46, 0x10f50, 1}, {0x10f82, 0x10f85, 1}, {0x11001, 0x11038, 55}, {0x11039, 0x11046, 1}, {0x11070, 0x11073, 3}, {0x11074, 0x1107f, 11}, {0x11080, 0x11081, 1}, {0x110b3, 0x110b6, 1}, {0x110b9, 0x110ba, 1}, {0x110c2, 0x11100, 62}, {0x11101, 0x11102, 1}, {0x11127, 0x1112b, 1}, {0x1112d, 0x11134, 1}, {0x11173, 0x11180, 13}, {0x11181, 0x111b6, 53}, {0x111b7, 0x111be, 1}, {0x111c9, 0x111cc, 1}, {0x111cf, 0x1122f, 96}, {0x11230, 0x11231, 1}, {0x11234, 0x11236, 2}, {0x11237, 0x1123e, 7}, {0x11241, 0x112df, 158}, {0x112e3, 0x112ea, 1}, {0x11300, 0x11301, 1}, {0x1133b, 0x1133c, 1}, {0x11340, 0x11366, 38}, {0x11367, 0x1136c, 1}, {0x11370, 0x11374, 1}, {0x11438, 0x1143f, 1}, {0x11442, 0x11444, 1}, {0x11446, 0x1145e, 24}, {0x114b3, 0x114b8, 1}, {0x114ba, 0x114bf, 5}, {0x114c0, 0x114c2, 2}, {0x114c3, 0x115b2, 239}, {0x115b3, 0x115b5, 1}, {0x115bc, 0x115bd, 1}, {0x115bf, 0x115c0, 1}, {0x115dc, 0x115dd, 1}, {0x11633, 0x1163a, 1}, {0x1163d, 0x1163f, 2}, {0x11640, 0x116ab, 107}, {0x116ad, 0x116b0, 3}, {0x116b1, 0x116b5, 1}, {0x116b7, 0x1171d, 102}, {0x1171e, 0x1171f, 1}, {0x11722, 0x11725, 1}, {0x11727, 0x1172b, 1}, {0x1182f, 0x11837, 1}, {0x11839, 0x1183a, 1}, {0x1193b, 0x1193c, 1}, {0x1193e, 0x11943, 5}, {0x119d4, 0x119d7, 1}, {0x119da, 0x119db, 1}, {0x119e0, 0x11a01, 33}, {0x11a02, 0x11a0a, 1}, {0x11a33, 0x11a38, 1}, {0x11a3b, 0x11a3e, 1}, {0x11a47, 0x11a51, 10}, {0x11a52, 0x11a56, 1}, {0x11a59, 0x11a5b, 1}, {0x11a8a, 0x11a96, 1}, {0x11a98, 0x11a99, 1}, {0x11c30, 0x11c36, 1}, {0x11c38, 0x11c3d, 1}, {0x11c3f, 0x11c92, 83}, {0x11c93, 0x11ca7, 1}, {0x11caa, 0x11cb0, 1}, {0x11cb2, 0x11cb3, 1}, {0x11cb5, 0x11cb6, 1}, {0x11d31, 0x11d36, 1}, {0x11d3a, 0x11d3c, 2}, {0x11d3d, 0x11d3f, 2}, {0x11d40, 0x11d45, 1}, {0x11d47, 0x11d90, 73}, {0x11d91, 0x11d95, 4}, {0x11d97, 0x11ef3, 348}, {0x11ef4, 0x11f00, 12}, {0x11f01, 0x11f36, 53}, {0x11f37, 0x11f3a, 1}, {0x11f40, 0x11f42, 2}, {0x13440, 0x13447, 7}, {0x13448, 0x13455, 1}, {0x16af0, 0x16af4, 1}, {0x16b30, 0x16b36, 1}, {0x16f4f, 0x16f8f, 64}, {0x16f90, 0x16f92, 1}, {0x16fe4, 0x1bc9d, 19641}, {0x1bc9e, 0x1cf00, 4706}, {0x1cf01, 0x1cf2d, 1}, {0x1cf30, 0x1cf46, 1}, {0x1d167, 0x1d169, 1}, {0x1d17b, 0x1d182, 1}, {0x1d185, 0x1d18b, 1}, {0x1d1aa, 0x1d1ad, 1}, {0x1d242, 0x1d244, 1}, {0x1da00, 0x1da36, 1}, {0x1da3b, 0x1da6c, 1}, {0x1da75, 0x1da84, 15}, {0x1da9b, 0x1da9f, 1}, {0x1daa1, 0x1daaf, 1}, {0x1e000, 0x1e006, 1}, {0x1e008, 0x1e018, 1}, {0x1e01b, 0x1e021, 1}, {0x1e023, 0x1e024, 1}, {0x1e026, 0x1e02a, 1}, {0x1e08f, 0x1e130, 161}, {0x1e131, 0x1e136, 1}, {0x1e2ae, 0x1e2ec, 62}, {0x1e2ed, 0x1e2ef, 1}, {0x1e4ec, 0x1e4ef, 1}, {0x1e8d0, 0x1e8d6, 1}, {0x1e944, 0x1e94a, 1}, {0xe0100, 0xe01ef, 1}, }, } var _N = &RangeTable{ R16: []Range16{ {0x0030, 0x0039, 1}, {0x00b2, 0x00b3, 1}, {0x00b9, 0x00bc, 3}, {0x00bd, 0x00be, 1}, {0x0660, 0x0669, 1}, {0x06f0, 0x06f9, 1}, {0x07c0, 0x07c9, 1}, {0x0966, 0x096f, 1}, {0x09e6, 0x09ef, 1}, {0x09f4, 0x09f9, 1}, {0x0a66, 0x0a6f, 1}, {0x0ae6, 0x0aef, 1}, {0x0b66, 0x0b6f, 1}, {0x0b72, 0x0b77, 1}, {0x0be6, 0x0bf2, 1}, {0x0c66, 0x0c6f, 1}, {0x0c78, 0x0c7e, 1}, {0x0ce6, 0x0cef, 1}, {0x0d58, 0x0d5e, 1}, {0x0d66, 0x0d78, 1}, {0x0de6, 0x0def, 1}, {0x0e50, 0x0e59, 1}, {0x0ed0, 0x0ed9, 1}, {0x0f20, 0x0f33, 1}, {0x1040, 0x1049, 1}, {0x1090, 0x1099, 1}, {0x1369, 0x137c, 1}, {0x16ee, 0x16f0, 1}, {0x17e0, 0x17e9, 1}, {0x17f0, 0x17f9, 1}, {0x1810, 0x1819, 1}, {0x1946, 0x194f, 1}, {0x19d0, 0x19da, 1}, {0x1a80, 0x1a89, 1}, {0x1a90, 0x1a99, 1}, {0x1b50, 0x1b59, 1}, {0x1bb0, 0x1bb9, 1}, {0x1c40, 0x1c49, 1}, {0x1c50, 0x1c59, 1}, {0x2070, 0x2074, 4}, {0x2075, 0x2079, 1}, {0x2080, 0x2089, 1}, {0x2150, 0x2182, 1}, {0x2185, 0x2189, 1}, {0x2460, 0x249b, 1}, {0x24ea, 0x24ff, 1}, {0x2776, 0x2793, 1}, {0x2cfd, 0x3007, 778}, {0x3021, 0x3029, 1}, {0x3038, 0x303a, 1}, {0x3192, 0x3195, 1}, {0x3220, 0x3229, 1}, {0x3248, 0x324f, 1}, {0x3251, 0x325f, 1}, {0x3280, 0x3289, 1}, {0x32b1, 0x32bf, 1}, {0xa620, 0xa629, 1}, {0xa6e6, 0xa6ef, 1}, {0xa830, 0xa835, 1}, {0xa8d0, 0xa8d9, 1}, {0xa900, 0xa909, 1}, {0xa9d0, 0xa9d9, 1}, {0xa9f0, 0xa9f9, 1}, {0xaa50, 0xaa59, 1}, {0xabf0, 0xabf9, 1}, {0xff10, 0xff19, 1}, }, R32: []Range32{ {0x10107, 0x10133, 1}, {0x10140, 0x10178, 1}, {0x1018a, 0x1018b, 1}, {0x102e1, 0x102fb, 1}, {0x10320, 0x10323, 1}, {0x10341, 0x1034a, 9}, {0x103d1, 0x103d5, 1}, {0x104a0, 0x104a9, 1}, {0x10858, 0x1085f, 1}, {0x10879, 0x1087f, 1}, {0x108a7, 0x108af, 1}, {0x108fb, 0x108ff, 1}, {0x10916, 0x1091b, 1}, {0x109bc, 0x109bd, 1}, {0x109c0, 0x109cf, 1}, {0x109d2, 0x109ff, 1}, {0x10a40, 0x10a48, 1}, {0x10a7d, 0x10a7e, 1}, {0x10a9d, 0x10a9f, 1}, {0x10aeb, 0x10aef, 1}, {0x10b58, 0x10b5f, 1}, {0x10b78, 0x10b7f, 1}, {0x10ba9, 0x10baf, 1}, {0x10cfa, 0x10cff, 1}, {0x10d30, 0x10d39, 1}, {0x10e60, 0x10e7e, 1}, {0x10f1d, 0x10f26, 1}, {0x10f51, 0x10f54, 1}, {0x10fc5, 0x10fcb, 1}, {0x11052, 0x1106f, 1}, {0x110f0, 0x110f9, 1}, {0x11136, 0x1113f, 1}, {0x111d0, 0x111d9, 1}, {0x111e1, 0x111f4, 1}, {0x112f0, 0x112f9, 1}, {0x11450, 0x11459, 1}, {0x114d0, 0x114d9, 1}, {0x11650, 0x11659, 1}, {0x116c0, 0x116c9, 1}, {0x11730, 0x1173b, 1}, {0x118e0, 0x118f2, 1}, {0x11950, 0x11959, 1}, {0x11c50, 0x11c6c, 1}, {0x11d50, 0x11d59, 1}, {0x11da0, 0x11da9, 1}, {0x11f50, 0x11f59, 1}, {0x11fc0, 0x11fd4, 1}, {0x12400, 0x1246e, 1}, {0x16a60, 0x16a69, 1}, {0x16ac0, 0x16ac9, 1}, {0x16b50, 0x16b59, 1}, {0x16b5b, 0x16b61, 1}, {0x16e80, 0x16e96, 1}, {0x1d2c0, 0x1d2d3, 1}, {0x1d2e0, 0x1d2f3, 1}, {0x1d360, 0x1d378, 1}, {0x1d7ce, 0x1d7ff, 1}, {0x1e140, 0x1e149, 1}, {0x1e2f0, 0x1e2f9, 1}, {0x1e4f0, 0x1e4f9, 1}, {0x1e8c7, 0x1e8cf, 1}, {0x1e950, 0x1e959, 1}, {0x1ec71, 0x1ecab, 1}, {0x1ecad, 0x1ecaf, 1}, {0x1ecb1, 0x1ecb4, 1}, {0x1ed01, 0x1ed2d, 1}, {0x1ed2f, 0x1ed3d, 1}, {0x1f100, 0x1f10c, 1}, {0x1fbf0, 0x1fbf9, 1}, }, LatinOffset: 4, } var _Nd = &RangeTable{ R16: []Range16{ {0x0030, 0x0039, 1}, {0x0660, 0x0669, 1}, {0x06f0, 0x06f9, 1}, {0x07c0, 0x07c9, 1}, {0x0966, 0x096f, 1}, {0x09e6, 0x09ef, 1}, {0x0a66, 0x0a6f, 1}, {0x0ae6, 0x0aef, 1}, {0x0b66, 0x0b6f, 1}, {0x0be6, 0x0bef, 1}, {0x0c66, 0x0c6f, 1}, {0x0ce6, 0x0cef, 1}, {0x0d66, 0x0d6f, 1}, {0x0de6, 0x0def, 1}, {0x0e50, 0x0e59, 1}, {0x0ed0, 0x0ed9, 1}, {0x0f20, 0x0f29, 1}, {0x1040, 0x1049, 1}, {0x1090, 0x1099, 1}, {0x17e0, 0x17e9, 1}, {0x1810, 0x1819, 1}, {0x1946, 0x194f, 1}, {0x19d0, 0x19d9, 1}, {0x1a80, 0x1a89, 1}, {0x1a90, 0x1a99, 1}, {0x1b50, 0x1b59, 1}, {0x1bb0, 0x1bb9, 1}, {0x1c40, 0x1c49, 1}, {0x1c50, 0x1c59, 1}, {0xa620, 0xa629, 1}, {0xa8d0, 0xa8d9, 1}, {0xa900, 0xa909, 1}, {0xa9d0, 0xa9d9, 1}, {0xa9f0, 0xa9f9, 1}, {0xaa50, 0xaa59, 1}, {0xabf0, 0xabf9, 1}, {0xff10, 0xff19, 1}, }, R32: []Range32{ {0x104a0, 0x104a9, 1}, {0x10d30, 0x10d39, 1}, {0x11066, 0x1106f, 1}, {0x110f0, 0x110f9, 1}, {0x11136, 0x1113f, 1}, {0x111d0, 0x111d9, 1}, {0x112f0, 0x112f9, 1}, {0x11450, 0x11459, 1}, {0x114d0, 0x114d9, 1}, {0x11650, 0x11659, 1}, {0x116c0, 0x116c9, 1}, {0x11730, 0x11739, 1}, {0x118e0, 0x118e9, 1}, {0x11950, 0x11959, 1}, {0x11c50, 0x11c59, 1}, {0x11d50, 0x11d59, 1}, {0x11da0, 0x11da9, 1}, {0x11f50, 0x11f59, 1}, {0x16a60, 0x16a69, 1}, {0x16ac0, 0x16ac9, 1}, {0x16b50, 0x16b59, 1}, {0x1d7ce, 0x1d7ff, 1}, {0x1e140, 0x1e149, 1}, {0x1e2f0, 0x1e2f9, 1}, {0x1e4f0, 0x1e4f9, 1}, {0x1e950, 0x1e959, 1}, {0x1fbf0, 0x1fbf9, 1}, }, LatinOffset: 1, } var _Nl = &RangeTable{ R16: []Range16{ {0x16ee, 0x16f0, 1}, {0x2160, 0x2182, 1}, {0x2185, 0x2188, 1}, {0x3007, 0x3021, 26}, {0x3022, 0x3029, 1}, {0x3038, 0x303a, 1}, {0xa6e6, 0xa6ef, 1}, }, R32: []Range32{ {0x10140, 0x10174, 1}, {0x10341, 0x1034a, 9}, {0x103d1, 0x103d5, 1}, {0x12400, 0x1246e, 1}, }, } var _No = &RangeTable{ R16: []Range16{ {0x00b2, 0x00b3, 1}, {0x00b9, 0x00bc, 3}, {0x00bd, 0x00be, 1}, {0x09f4, 0x09f9, 1}, {0x0b72, 0x0b77, 1}, {0x0bf0, 0x0bf2, 1}, {0x0c78, 0x0c7e, 1}, {0x0d58, 0x0d5e, 1}, {0x0d70, 0x0d78, 1}, {0x0f2a, 0x0f33, 1}, {0x1369, 0x137c, 1}, {0x17f0, 0x17f9, 1}, {0x19da, 0x2070, 1686}, {0x2074, 0x2079, 1}, {0x2080, 0x2089, 1}, {0x2150, 0x215f, 1}, {0x2189, 0x2460, 727}, {0x2461, 0x249b, 1}, {0x24ea, 0x24ff, 1}, {0x2776, 0x2793, 1}, {0x2cfd, 0x3192, 1173}, {0x3193, 0x3195, 1}, {0x3220, 0x3229, 1}, {0x3248, 0x324f, 1}, {0x3251, 0x325f, 1}, {0x3280, 0x3289, 1}, {0x32b1, 0x32bf, 1}, {0xa830, 0xa835, 1}, }, R32: []Range32{ {0x10107, 0x10133, 1}, {0x10175, 0x10178, 1}, {0x1018a, 0x1018b, 1}, {0x102e1, 0x102fb, 1}, {0x10320, 0x10323, 1}, {0x10858, 0x1085f, 1}, {0x10879, 0x1087f, 1}, {0x108a7, 0x108af, 1}, {0x108fb, 0x108ff, 1}, {0x10916, 0x1091b, 1}, {0x109bc, 0x109bd, 1}, {0x109c0, 0x109cf, 1}, {0x109d2, 0x109ff, 1}, {0x10a40, 0x10a48, 1}, {0x10a7d, 0x10a7e, 1}, {0x10a9d, 0x10a9f, 1}, {0x10aeb, 0x10aef, 1}, {0x10b58, 0x10b5f, 1}, {0x10b78, 0x10b7f, 1}, {0x10ba9, 0x10baf, 1}, {0x10cfa, 0x10cff, 1}, {0x10e60, 0x10e7e, 1}, {0x10f1d, 0x10f26, 1}, {0x10f51, 0x10f54, 1}, {0x10fc5, 0x10fcb, 1}, {0x11052, 0x11065, 1}, {0x111e1, 0x111f4, 1}, {0x1173a, 0x1173b, 1}, {0x118ea, 0x118f2, 1}, {0x11c5a, 0x11c6c, 1}, {0x11fc0, 0x11fd4, 1}, {0x16b5b, 0x16b61, 1}, {0x16e80, 0x16e96, 1}, {0x1d2c0, 0x1d2d3, 1}, {0x1d2e0, 0x1d2f3, 1}, {0x1d360, 0x1d378, 1}, {0x1e8c7, 0x1e8cf, 1}, {0x1ec71, 0x1ecab, 1}, {0x1ecad, 0x1ecaf, 1}, {0x1ecb1, 0x1ecb4, 1}, {0x1ed01, 0x1ed2d, 1}, {0x1ed2f, 0x1ed3d, 1}, {0x1f100, 0x1f10c, 1}, }, LatinOffset: 3, } var _P = &RangeTable{ R16: []Range16{ {0x0021, 0x0023, 1}, {0x0025, 0x002a, 1}, {0x002c, 0x002f, 1}, {0x003a, 0x003b, 1}, {0x003f, 0x0040, 1}, {0x005b, 0x005d, 1}, {0x005f, 0x007b, 28}, {0x007d, 0x00a1, 36}, {0x00a7, 0x00ab, 4}, {0x00b6, 0x00b7, 1}, {0x00bb, 0x00bf, 4}, {0x037e, 0x0387, 9}, {0x055a, 0x055f, 1}, {0x0589, 0x058a, 1}, {0x05be, 0x05c0, 2}, {0x05c3, 0x05c6, 3}, {0x05f3, 0x05f4, 1}, {0x0609, 0x060a, 1}, {0x060c, 0x060d, 1}, {0x061b, 0x061d, 2}, {0x061e, 0x061f, 1}, {0x066a, 0x066d, 1}, {0x06d4, 0x0700, 44}, {0x0701, 0x070d, 1}, {0x07f7, 0x07f9, 1}, {0x0830, 0x083e, 1}, {0x085e, 0x0964, 262}, {0x0965, 0x0970, 11}, {0x09fd, 0x0a76, 121}, {0x0af0, 0x0c77, 391}, {0x0c84, 0x0df4, 368}, {0x0e4f, 0x0e5a, 11}, {0x0e5b, 0x0f04, 169}, {0x0f05, 0x0f12, 1}, {0x0f14, 0x0f3a, 38}, {0x0f3b, 0x0f3d, 1}, {0x0f85, 0x0fd0, 75}, {0x0fd1, 0x0fd4, 1}, {0x0fd9, 0x0fda, 1}, {0x104a, 0x104f, 1}, {0x10fb, 0x1360, 613}, {0x1361, 0x1368, 1}, {0x1400, 0x166e, 622}, {0x169b, 0x169c, 1}, {0x16eb, 0x16ed, 1}, {0x1735, 0x1736, 1}, {0x17d4, 0x17d6, 1}, {0x17d8, 0x17da, 1}, {0x1800, 0x180a, 1}, {0x1944, 0x1945, 1}, {0x1a1e, 0x1a1f, 1}, {0x1aa0, 0x1aa6, 1}, {0x1aa8, 0x1aad, 1}, {0x1b5a, 0x1b60, 1}, {0x1b7d, 0x1b7e, 1}, {0x1bfc, 0x1bff, 1}, {0x1c3b, 0x1c3f, 1}, {0x1c7e, 0x1c7f, 1}, {0x1cc0, 0x1cc7, 1}, {0x1cd3, 0x2010, 829}, {0x2011, 0x2027, 1}, {0x2030, 0x2043, 1}, {0x2045, 0x2051, 1}, {0x2053, 0x205e, 1}, {0x207d, 0x207e, 1}, {0x208d, 0x208e, 1}, {0x2308, 0x230b, 1}, {0x2329, 0x232a, 1}, {0x2768, 0x2775, 1}, {0x27c5, 0x27c6, 1}, {0x27e6, 0x27ef, 1}, {0x2983, 0x2998, 1}, {0x29d8, 0x29db, 1}, {0x29fc, 0x29fd, 1}, {0x2cf9, 0x2cfc, 1}, {0x2cfe, 0x2cff, 1}, {0x2d70, 0x2e00, 144}, {0x2e01, 0x2e2e, 1}, {0x2e30, 0x2e4f, 1}, {0x2e52, 0x2e5d, 1}, {0x3001, 0x3003, 1}, {0x3008, 0x3011, 1}, {0x3014, 0x301f, 1}, {0x3030, 0x303d, 13}, {0x30a0, 0x30fb, 91}, {0xa4fe, 0xa4ff, 1}, {0xa60d, 0xa60f, 1}, {0xa673, 0xa67e, 11}, {0xa6f2, 0xa6f7, 1}, {0xa874, 0xa877, 1}, {0xa8ce, 0xa8cf, 1}, {0xa8f8, 0xa8fa, 1}, {0xa8fc, 0xa92e, 50}, {0xa92f, 0xa95f, 48}, {0xa9c1, 0xa9cd, 1}, {0xa9de, 0xa9df, 1}, {0xaa5c, 0xaa5f, 1}, {0xaade, 0xaadf, 1}, {0xaaf0, 0xaaf1, 1}, {0xabeb, 0xfd3e, 20819}, {0xfd3f, 0xfe10, 209}, {0xfe11, 0xfe19, 1}, {0xfe30, 0xfe52, 1}, {0xfe54, 0xfe61, 1}, {0xfe63, 0xfe68, 5}, {0xfe6a, 0xfe6b, 1}, {0xff01, 0xff03, 1}, {0xff05, 0xff0a, 1}, {0xff0c, 0xff0f, 1}, {0xff1a, 0xff1b, 1}, {0xff1f, 0xff20, 1}, {0xff3b, 0xff3d, 1}, {0xff3f, 0xff5b, 28}, {0xff5d, 0xff5f, 2}, {0xff60, 0xff65, 1}, }, R32: []Range32{ {0x10100, 0x10102, 1}, {0x1039f, 0x103d0, 49}, {0x1056f, 0x10857, 744}, {0x1091f, 0x1093f, 32}, {0x10a50, 0x10a58, 1}, {0x10a7f, 0x10af0, 113}, {0x10af1, 0x10af6, 1}, {0x10b39, 0x10b3f, 1}, {0x10b99, 0x10b9c, 1}, {0x10ead, 0x10f55, 168}, {0x10f56, 0x10f59, 1}, {0x10f86, 0x10f89, 1}, {0x11047, 0x1104d, 1}, {0x110bb, 0x110bc, 1}, {0x110be, 0x110c1, 1}, {0x11140, 0x11143, 1}, {0x11174, 0x11175, 1}, {0x111c5, 0x111c8, 1}, {0x111cd, 0x111db, 14}, {0x111dd, 0x111df, 1}, {0x11238, 0x1123d, 1}, {0x112a9, 0x1144b, 418}, {0x1144c, 0x1144f, 1}, {0x1145a, 0x1145b, 1}, {0x1145d, 0x114c6, 105}, {0x115c1, 0x115d7, 1}, {0x11641, 0x11643, 1}, {0x11660, 0x1166c, 1}, {0x116b9, 0x1173c, 131}, {0x1173d, 0x1173e, 1}, {0x1183b, 0x11944, 265}, {0x11945, 0x11946, 1}, {0x119e2, 0x11a3f, 93}, {0x11a40, 0x11a46, 1}, {0x11a9a, 0x11a9c, 1}, {0x11a9e, 0x11aa2, 1}, {0x11b00, 0x11b09, 1}, {0x11c41, 0x11c45, 1}, {0x11c70, 0x11c71, 1}, {0x11ef7, 0x11ef8, 1}, {0x11f43, 0x11f4f, 1}, {0x11fff, 0x12470, 1137}, {0x12471, 0x12474, 1}, {0x12ff1, 0x12ff2, 1}, {0x16a6e, 0x16a6f, 1}, {0x16af5, 0x16b37, 66}, {0x16b38, 0x16b3b, 1}, {0x16b44, 0x16e97, 851}, {0x16e98, 0x16e9a, 1}, {0x16fe2, 0x1bc9f, 19645}, {0x1da87, 0x1da8b, 1}, {0x1e95e, 0x1e95f, 1}, }, LatinOffset: 11, } var _Pc = &RangeTable{ R16: []Range16{ {0x005f, 0x203f, 8160}, {0x2040, 0x2054, 20}, {0xfe33, 0xfe34, 1}, {0xfe4d, 0xfe4f, 1}, {0xff3f, 0xff3f, 1}, }, } var _Pd = &RangeTable{ R16: []Range16{ {0x002d, 0x058a, 1373}, {0x05be, 0x1400, 3650}, {0x1806, 0x2010, 2058}, {0x2011, 0x2015, 1}, {0x2e17, 0x2e1a, 3}, {0x2e3a, 0x2e3b, 1}, {0x2e40, 0x2e5d, 29}, {0x301c, 0x3030, 20}, {0x30a0, 0xfe31, 52625}, {0xfe32, 0xfe58, 38}, {0xfe63, 0xff0d, 170}, }, R32: []Range32{ {0x10ead, 0x10ead, 1}, }, } var _Pe = &RangeTable{ R16: []Range16{ {0x0029, 0x005d, 52}, {0x007d, 0x0f3b, 3774}, {0x0f3d, 0x169c, 1887}, {0x2046, 0x207e, 56}, {0x208e, 0x2309, 635}, {0x230b, 0x232a, 31}, {0x2769, 0x2775, 2}, {0x27c6, 0x27e7, 33}, {0x27e9, 0x27ef, 2}, {0x2984, 0x2998, 2}, {0x29d9, 0x29db, 2}, {0x29fd, 0x2e23, 1062}, {0x2e25, 0x2e29, 2}, {0x2e56, 0x2e5c, 2}, {0x3009, 0x3011, 2}, {0x3015, 0x301b, 2}, {0x301e, 0x301f, 1}, {0xfd3e, 0xfe18, 218}, {0xfe36, 0xfe44, 2}, {0xfe48, 0xfe5a, 18}, {0xfe5c, 0xfe5e, 2}, {0xff09, 0xff3d, 52}, {0xff5d, 0xff63, 3}, }, LatinOffset: 1, } var _Pf = &RangeTable{ R16: []Range16{ {0x00bb, 0x2019, 8030}, {0x201d, 0x203a, 29}, {0x2e03, 0x2e05, 2}, {0x2e0a, 0x2e0d, 3}, {0x2e1d, 0x2e21, 4}, }, } var _Pi = &RangeTable{ R16: []Range16{ {0x00ab, 0x2018, 8045}, {0x201b, 0x201c, 1}, {0x201f, 0x2039, 26}, {0x2e02, 0x2e04, 2}, {0x2e09, 0x2e0c, 3}, {0x2e1c, 0x2e20, 4}, }, } var _Po = &RangeTable{ R16: []Range16{ {0x0021, 0x0023, 1}, {0x0025, 0x0027, 1}, {0x002a, 0x002e, 2}, {0x002f, 0x003a, 11}, {0x003b, 0x003f, 4}, {0x0040, 0x005c, 28}, {0x00a1, 0x00a7, 6}, {0x00b6, 0x00b7, 1}, {0x00bf, 0x037e, 703}, {0x0387, 0x055a, 467}, {0x055b, 0x055f, 1}, {0x0589, 0x05c0, 55}, {0x05c3, 0x05c6, 3}, {0x05f3, 0x05f4, 1}, {0x0609, 0x060a, 1}, {0x060c, 0x060d, 1}, {0x061b, 0x061d, 2}, {0x061e, 0x061f, 1}, {0x066a, 0x066d, 1}, {0x06d4, 0x0700, 44}, {0x0701, 0x070d, 1}, {0x07f7, 0x07f9, 1}, {0x0830, 0x083e, 1}, {0x085e, 0x0964, 262}, {0x0965, 0x0970, 11}, {0x09fd, 0x0a76, 121}, {0x0af0, 0x0c77, 391}, {0x0c84, 0x0df4, 368}, {0x0e4f, 0x0e5a, 11}, {0x0e5b, 0x0f04, 169}, {0x0f05, 0x0f12, 1}, {0x0f14, 0x0f85, 113}, {0x0fd0, 0x0fd4, 1}, {0x0fd9, 0x0fda, 1}, {0x104a, 0x104f, 1}, {0x10fb, 0x1360, 613}, {0x1361, 0x1368, 1}, {0x166e, 0x16eb, 125}, {0x16ec, 0x16ed, 1}, {0x1735, 0x1736, 1}, {0x17d4, 0x17d6, 1}, {0x17d8, 0x17da, 1}, {0x1800, 0x1805, 1}, {0x1807, 0x180a, 1}, {0x1944, 0x1945, 1}, {0x1a1e, 0x1a1f, 1}, {0x1aa0, 0x1aa6, 1}, {0x1aa8, 0x1aad, 1}, {0x1b5a, 0x1b60, 1}, {0x1b7d, 0x1b7e, 1}, {0x1bfc, 0x1bff, 1}, {0x1c3b, 0x1c3f, 1}, {0x1c7e, 0x1c7f, 1}, {0x1cc0, 0x1cc7, 1}, {0x1cd3, 0x2016, 835}, {0x2017, 0x2020, 9}, {0x2021, 0x2027, 1}, {0x2030, 0x2038, 1}, {0x203b, 0x203e, 1}, {0x2041, 0x2043, 1}, {0x2047, 0x2051, 1}, {0x2053, 0x2055, 2}, {0x2056, 0x205e, 1}, {0x2cf9, 0x2cfc, 1}, {0x2cfe, 0x2cff, 1}, {0x2d70, 0x2e00, 144}, {0x2e01, 0x2e06, 5}, {0x2e07, 0x2e08, 1}, {0x2e0b, 0x2e0e, 3}, {0x2e0f, 0x2e16, 1}, {0x2e18, 0x2e19, 1}, {0x2e1b, 0x2e1e, 3}, {0x2e1f, 0x2e2a, 11}, {0x2e2b, 0x2e2e, 1}, {0x2e30, 0x2e39, 1}, {0x2e3c, 0x2e3f, 1}, {0x2e41, 0x2e43, 2}, {0x2e44, 0x2e4f, 1}, {0x2e52, 0x2e54, 1}, {0x3001, 0x3003, 1}, {0x303d, 0x30fb, 190}, {0xa4fe, 0xa4ff, 1}, {0xa60d, 0xa60f, 1}, {0xa673, 0xa67e, 11}, {0xa6f2, 0xa6f7, 1}, {0xa874, 0xa877, 1}, {0xa8ce, 0xa8cf, 1}, {0xa8f8, 0xa8fa, 1}, {0xa8fc, 0xa92e, 50}, {0xa92f, 0xa95f, 48}, {0xa9c1, 0xa9cd, 1}, {0xa9de, 0xa9df, 1}, {0xaa5c, 0xaa5f, 1}, {0xaade, 0xaadf, 1}, {0xaaf0, 0xaaf1, 1}, {0xabeb, 0xfe10, 21029}, {0xfe11, 0xfe16, 1}, {0xfe19, 0xfe30, 23}, {0xfe45, 0xfe46, 1}, {0xfe49, 0xfe4c, 1}, {0xfe50, 0xfe52, 1}, {0xfe54, 0xfe57, 1}, {0xfe5f, 0xfe61, 1}, {0xfe68, 0xfe6a, 2}, {0xfe6b, 0xff01, 150}, {0xff02, 0xff03, 1}, {0xff05, 0xff07, 1}, {0xff0a, 0xff0e, 2}, {0xff0f, 0xff1a, 11}, {0xff1b, 0xff1f, 4}, {0xff20, 0xff3c, 28}, {0xff61, 0xff64, 3}, {0xff65, 0xff65, 1}, }, R32: []Range32{ {0x10100, 0x10102, 1}, {0x1039f, 0x103d0, 49}, {0x1056f, 0x10857, 744}, {0x1091f, 0x1093f, 32}, {0x10a50, 0x10a58, 1}, {0x10a7f, 0x10af0, 113}, {0x10af1, 0x10af6, 1}, {0x10b39, 0x10b3f, 1}, {0x10b99, 0x10b9c, 1}, {0x10f55, 0x10f59, 1}, {0x10f86, 0x10f89, 1}, {0x11047, 0x1104d, 1}, {0x110bb, 0x110bc, 1}, {0x110be, 0x110c1, 1}, {0x11140, 0x11143, 1}, {0x11174, 0x11175, 1}, {0x111c5, 0x111c8, 1}, {0x111cd, 0x111db, 14}, {0x111dd, 0x111df, 1}, {0x11238, 0x1123d, 1}, {0x112a9, 0x1144b, 418}, {0x1144c, 0x1144f, 1}, {0x1145a, 0x1145b, 1}, {0x1145d, 0x114c6, 105}, {0x115c1, 0x115d7, 1}, {0x11641, 0x11643, 1}, {0x11660, 0x1166c, 1}, {0x116b9, 0x1173c, 131}, {0x1173d, 0x1173e, 1}, {0x1183b, 0x11944, 265}, {0x11945, 0x11946, 1}, {0x119e2, 0x11a3f, 93}, {0x11a40, 0x11a46, 1}, {0x11a9a, 0x11a9c, 1}, {0x11a9e, 0x11aa2, 1}, {0x11b00, 0x11b09, 1}, {0x11c41, 0x11c45, 1}, {0x11c70, 0x11c71, 1}, {0x11ef7, 0x11ef8, 1}, {0x11f43, 0x11f4f, 1}, {0x11fff, 0x12470, 1137}, {0x12471, 0x12474, 1}, {0x12ff1, 0x12ff2, 1}, {0x16a6e, 0x16a6f, 1}, {0x16af5, 0x16b37, 66}, {0x16b38, 0x16b3b, 1}, {0x16b44, 0x16e97, 851}, {0x16e98, 0x16e9a, 1}, {0x16fe2, 0x1bc9f, 19645}, {0x1da87, 0x1da8b, 1}, {0x1e95e, 0x1e95f, 1}, }, LatinOffset: 8, } var _Ps = &RangeTable{ R16: []Range16{ {0x0028, 0x005b, 51}, {0x007b, 0x0f3a, 3775}, {0x0f3c, 0x169b, 1887}, {0x201a, 0x201e, 4}, {0x2045, 0x207d, 56}, {0x208d, 0x2308, 635}, {0x230a, 0x2329, 31}, {0x2768, 0x2774, 2}, {0x27c5, 0x27e6, 33}, {0x27e8, 0x27ee, 2}, {0x2983, 0x2997, 2}, {0x29d8, 0x29da, 2}, {0x29fc, 0x2e22, 1062}, {0x2e24, 0x2e28, 2}, {0x2e42, 0x2e55, 19}, {0x2e57, 0x2e5b, 2}, {0x3008, 0x3010, 2}, {0x3014, 0x301a, 2}, {0x301d, 0xfd3f, 52514}, {0xfe17, 0xfe35, 30}, {0xfe37, 0xfe43, 2}, {0xfe47, 0xfe59, 18}, {0xfe5b, 0xfe5d, 2}, {0xff08, 0xff3b, 51}, {0xff5b, 0xff5f, 4}, {0xff62, 0xff62, 1}, }, LatinOffset: 1, } var _S = &RangeTable{ R16: []Range16{ {0x0024, 0x002b, 7}, {0x003c, 0x003e, 1}, {0x005e, 0x0060, 2}, {0x007c, 0x007e, 2}, {0x00a2, 0x00a6, 1}, {0x00a8, 0x00a9, 1}, {0x00ac, 0x00ae, 2}, {0x00af, 0x00b1, 1}, {0x00b4, 0x00b8, 4}, {0x00d7, 0x00f7, 32}, {0x02c2, 0x02c5, 1}, {0x02d2, 0x02df, 1}, {0x02e5, 0x02eb, 1}, {0x02ed, 0x02ef, 2}, {0x02f0, 0x02ff, 1}, {0x0375, 0x0384, 15}, {0x0385, 0x03f6, 113}, {0x0482, 0x058d, 267}, {0x058e, 0x058f, 1}, {0x0606, 0x0608, 1}, {0x060b, 0x060e, 3}, {0x060f, 0x06de, 207}, {0x06e9, 0x06fd, 20}, {0x06fe, 0x07f6, 248}, {0x07fe, 0x07ff, 1}, {0x0888, 0x09f2, 362}, {0x09f3, 0x09fa, 7}, {0x09fb, 0x0af1, 246}, {0x0b70, 0x0bf3, 131}, {0x0bf4, 0x0bfa, 1}, {0x0c7f, 0x0d4f, 208}, {0x0d79, 0x0e3f, 198}, {0x0f01, 0x0f03, 1}, {0x0f13, 0x0f15, 2}, {0x0f16, 0x0f17, 1}, {0x0f1a, 0x0f1f, 1}, {0x0f34, 0x0f38, 2}, {0x0fbe, 0x0fc5, 1}, {0x0fc7, 0x0fcc, 1}, {0x0fce, 0x0fcf, 1}, {0x0fd5, 0x0fd8, 1}, {0x109e, 0x109f, 1}, {0x1390, 0x1399, 1}, {0x166d, 0x17db, 366}, {0x1940, 0x19de, 158}, {0x19df, 0x19ff, 1}, {0x1b61, 0x1b6a, 1}, {0x1b74, 0x1b7c, 1}, {0x1fbd, 0x1fbf, 2}, {0x1fc0, 0x1fc1, 1}, {0x1fcd, 0x1fcf, 1}, {0x1fdd, 0x1fdf, 1}, {0x1fed, 0x1fef, 1}, {0x1ffd, 0x1ffe, 1}, {0x2044, 0x2052, 14}, {0x207a, 0x207c, 1}, {0x208a, 0x208c, 1}, {0x20a0, 0x20c0, 1}, {0x2100, 0x2101, 1}, {0x2103, 0x2106, 1}, {0x2108, 0x2109, 1}, {0x2114, 0x2116, 2}, {0x2117, 0x2118, 1}, {0x211e, 0x2123, 1}, {0x2125, 0x2129, 2}, {0x212e, 0x213a, 12}, {0x213b, 0x2140, 5}, {0x2141, 0x2144, 1}, {0x214a, 0x214d, 1}, {0x214f, 0x218a, 59}, {0x218b, 0x2190, 5}, {0x2191, 0x2307, 1}, {0x230c, 0x2328, 1}, {0x232b, 0x2426, 1}, {0x2440, 0x244a, 1}, {0x249c, 0x24e9, 1}, {0x2500, 0x2767, 1}, {0x2794, 0x27c4, 1}, {0x27c7, 0x27e5, 1}, {0x27f0, 0x2982, 1}, {0x2999, 0x29d7, 1}, {0x29dc, 0x29fb, 1}, {0x29fe, 0x2b73, 1}, {0x2b76, 0x2b95, 1}, {0x2b97, 0x2bff, 1}, {0x2ce5, 0x2cea, 1}, {0x2e50, 0x2e51, 1}, {0x2e80, 0x2e99, 1}, {0x2e9b, 0x2ef3, 1}, {0x2f00, 0x2fd5, 1}, {0x2ff0, 0x2ffb, 1}, {0x3004, 0x3012, 14}, {0x3013, 0x3020, 13}, {0x3036, 0x3037, 1}, {0x303e, 0x303f, 1}, {0x309b, 0x309c, 1}, {0x3190, 0x3191, 1}, {0x3196, 0x319f, 1}, {0x31c0, 0x31e3, 1}, {0x3200, 0x321e, 1}, {0x322a, 0x3247, 1}, {0x3250, 0x3260, 16}, {0x3261, 0x327f, 1}, {0x328a, 0x32b0, 1}, {0x32c0, 0x33ff, 1}, {0x4dc0, 0x4dff, 1}, {0xa490, 0xa4c6, 1}, {0xa700, 0xa716, 1}, {0xa720, 0xa721, 1}, {0xa789, 0xa78a, 1}, {0xa828, 0xa82b, 1}, {0xa836, 0xa839, 1}, {0xaa77, 0xaa79, 1}, {0xab5b, 0xab6a, 15}, {0xab6b, 0xfb29, 20414}, {0xfbb2, 0xfbc2, 1}, {0xfd40, 0xfd4f, 1}, {0xfdcf, 0xfdfc, 45}, {0xfdfd, 0xfdff, 1}, {0xfe62, 0xfe64, 2}, {0xfe65, 0xfe66, 1}, {0xfe69, 0xff04, 155}, {0xff0b, 0xff1c, 17}, {0xff1d, 0xff1e, 1}, {0xff3e, 0xff40, 2}, {0xff5c, 0xff5e, 2}, {0xffe0, 0xffe6, 1}, {0xffe8, 0xffee, 1}, {0xfffc, 0xfffd, 1}, }, R32: []Range32{ {0x10137, 0x1013f, 1}, {0x10179, 0x10189, 1}, {0x1018c, 0x1018e, 1}, {0x10190, 0x1019c, 1}, {0x101a0, 0x101d0, 48}, {0x101d1, 0x101fc, 1}, {0x10877, 0x10878, 1}, {0x10ac8, 0x1173f, 3191}, {0x11fd5, 0x11ff1, 1}, {0x16b3c, 0x16b3f, 1}, {0x16b45, 0x1bc9c, 20823}, {0x1cf50, 0x1cfc3, 1}, {0x1d000, 0x1d0f5, 1}, {0x1d100, 0x1d126, 1}, {0x1d129, 0x1d164, 1}, {0x1d16a, 0x1d16c, 1}, {0x1d183, 0x1d184, 1}, {0x1d18c, 0x1d1a9, 1}, {0x1d1ae, 0x1d1ea, 1}, {0x1d200, 0x1d241, 1}, {0x1d245, 0x1d300, 187}, {0x1d301, 0x1d356, 1}, {0x1d6c1, 0x1d6db, 26}, {0x1d6fb, 0x1d715, 26}, {0x1d735, 0x1d74f, 26}, {0x1d76f, 0x1d789, 26}, {0x1d7a9, 0x1d7c3, 26}, {0x1d800, 0x1d9ff, 1}, {0x1da37, 0x1da3a, 1}, {0x1da6d, 0x1da74, 1}, {0x1da76, 0x1da83, 1}, {0x1da85, 0x1da86, 1}, {0x1e14f, 0x1e2ff, 432}, {0x1ecac, 0x1ecb0, 4}, {0x1ed2e, 0x1eef0, 450}, {0x1eef1, 0x1f000, 271}, {0x1f001, 0x1f02b, 1}, {0x1f030, 0x1f093, 1}, {0x1f0a0, 0x1f0ae, 1}, {0x1f0b1, 0x1f0bf, 1}, {0x1f0c1, 0x1f0cf, 1}, {0x1f0d1, 0x1f0f5, 1}, {0x1f10d, 0x1f1ad, 1}, {0x1f1e6, 0x1f202, 1}, {0x1f210, 0x1f23b, 1}, {0x1f240, 0x1f248, 1}, {0x1f250, 0x1f251, 1}, {0x1f260, 0x1f265, 1}, {0x1f300, 0x1f6d7, 1}, {0x1f6dc, 0x1f6ec, 1}, {0x1f6f0, 0x1f6fc, 1}, {0x1f700, 0x1f776, 1}, {0x1f77b, 0x1f7d9, 1}, {0x1f7e0, 0x1f7eb, 1}, {0x1f7f0, 0x1f800, 16}, {0x1f801, 0x1f80b, 1}, {0x1f810, 0x1f847, 1}, {0x1f850, 0x1f859, 1}, {0x1f860, 0x1f887, 1}, {0x1f890, 0x1f8ad, 1}, {0x1f8b0, 0x1f8b1, 1}, {0x1f900, 0x1fa53, 1}, {0x1fa60, 0x1fa6d, 1}, {0x1fa70, 0x1fa7c, 1}, {0x1fa80, 0x1fa88, 1}, {0x1fa90, 0x1fabd, 1}, {0x1fabf, 0x1fac5, 1}, {0x1face, 0x1fadb, 1}, {0x1fae0, 0x1fae8, 1}, {0x1faf0, 0x1faf8, 1}, {0x1fb00, 0x1fb92, 1}, {0x1fb94, 0x1fbca, 1}, }, LatinOffset: 10, } var _Sc = &RangeTable{ R16: []Range16{ {0x0024, 0x00a2, 126}, {0x00a3, 0x00a5, 1}, {0x058f, 0x060b, 124}, {0x07fe, 0x07ff, 1}, {0x09f2, 0x09f3, 1}, {0x09fb, 0x0af1, 246}, {0x0bf9, 0x0e3f, 582}, {0x17db, 0x20a0, 2245}, {0x20a1, 0x20c0, 1}, {0xa838, 0xfdfc, 21956}, {0xfe69, 0xff04, 155}, {0xffe0, 0xffe1, 1}, {0xffe5, 0xffe6, 1}, }, R32: []Range32{ {0x11fdd, 0x11fe0, 1}, {0x1e2ff, 0x1ecb0, 2481}, }, LatinOffset: 2, } var _Sk = &RangeTable{ R16: []Range16{ {0x005e, 0x0060, 2}, {0x00a8, 0x00af, 7}, {0x00b4, 0x00b8, 4}, {0x02c2, 0x02c5, 1}, {0x02d2, 0x02df, 1}, {0x02e5, 0x02eb, 1}, {0x02ed, 0x02ef, 2}, {0x02f0, 0x02ff, 1}, {0x0375, 0x0384, 15}, {0x0385, 0x0888, 1283}, {0x1fbd, 0x1fbf, 2}, {0x1fc0, 0x1fc1, 1}, {0x1fcd, 0x1fcf, 1}, {0x1fdd, 0x1fdf, 1}, {0x1fed, 0x1fef, 1}, {0x1ffd, 0x1ffe, 1}, {0x309b, 0x309c, 1}, {0xa700, 0xa716, 1}, {0xa720, 0xa721, 1}, {0xa789, 0xa78a, 1}, {0xab5b, 0xab6a, 15}, {0xab6b, 0xfbb2, 20551}, {0xfbb3, 0xfbc2, 1}, {0xff3e, 0xff40, 2}, {0xffe3, 0xffe3, 1}, }, R32: []Range32{ {0x1f3fb, 0x1f3ff, 1}, }, LatinOffset: 3, } var _Sm = &RangeTable{ R16: []Range16{ {0x002b, 0x003c, 17}, {0x003d, 0x003e, 1}, {0x007c, 0x007e, 2}, {0x00ac, 0x00b1, 5}, {0x00d7, 0x00f7, 32}, {0x03f6, 0x0606, 528}, {0x0607, 0x0608, 1}, {0x2044, 0x2052, 14}, {0x207a, 0x207c, 1}, {0x208a, 0x208c, 1}, {0x2118, 0x2140, 40}, {0x2141, 0x2144, 1}, {0x214b, 0x2190, 69}, {0x2191, 0x2194, 1}, {0x219a, 0x219b, 1}, {0x21a0, 0x21a6, 3}, {0x21ae, 0x21ce, 32}, {0x21cf, 0x21d2, 3}, {0x21d4, 0x21f4, 32}, {0x21f5, 0x22ff, 1}, {0x2320, 0x2321, 1}, {0x237c, 0x239b, 31}, {0x239c, 0x23b3, 1}, {0x23dc, 0x23e1, 1}, {0x25b7, 0x25c1, 10}, {0x25f8, 0x25ff, 1}, {0x266f, 0x27c0, 337}, {0x27c1, 0x27c4, 1}, {0x27c7, 0x27e5, 1}, {0x27f0, 0x27ff, 1}, {0x2900, 0x2982, 1}, {0x2999, 0x29d7, 1}, {0x29dc, 0x29fb, 1}, {0x29fe, 0x2aff, 1}, {0x2b30, 0x2b44, 1}, {0x2b47, 0x2b4c, 1}, {0xfb29, 0xfe62, 825}, {0xfe64, 0xfe66, 1}, {0xff0b, 0xff1c, 17}, {0xff1d, 0xff1e, 1}, {0xff5c, 0xff5e, 2}, {0xffe2, 0xffe9, 7}, {0xffea, 0xffec, 1}, }, R32: []Range32{ {0x1d6c1, 0x1d6db, 26}, {0x1d6fb, 0x1d715, 26}, {0x1d735, 0x1d74f, 26}, {0x1d76f, 0x1d789, 26}, {0x1d7a9, 0x1d7c3, 26}, {0x1eef0, 0x1eef1, 1}, }, LatinOffset: 5, } var _So = &RangeTable{ R16: []Range16{ {0x00a6, 0x00a9, 3}, {0x00ae, 0x00b0, 2}, {0x0482, 0x058d, 267}, {0x058e, 0x060e, 128}, {0x060f, 0x06de, 207}, {0x06e9, 0x06fd, 20}, {0x06fe, 0x07f6, 248}, {0x09fa, 0x0b70, 374}, {0x0bf3, 0x0bf8, 1}, {0x0bfa, 0x0c7f, 133}, {0x0d4f, 0x0d79, 42}, {0x0f01, 0x0f03, 1}, {0x0f13, 0x0f15, 2}, {0x0f16, 0x0f17, 1}, {0x0f1a, 0x0f1f, 1}, {0x0f34, 0x0f38, 2}, {0x0fbe, 0x0fc5, 1}, {0x0fc7, 0x0fcc, 1}, {0x0fce, 0x0fcf, 1}, {0x0fd5, 0x0fd8, 1}, {0x109e, 0x109f, 1}, {0x1390, 0x1399, 1}, {0x166d, 0x1940, 723}, {0x19de, 0x19ff, 1}, {0x1b61, 0x1b6a, 1}, {0x1b74, 0x1b7c, 1}, {0x2100, 0x2101, 1}, {0x2103, 0x2106, 1}, {0x2108, 0x2109, 1}, {0x2114, 0x2116, 2}, {0x2117, 0x211e, 7}, {0x211f, 0x2123, 1}, {0x2125, 0x2129, 2}, {0x212e, 0x213a, 12}, {0x213b, 0x214a, 15}, {0x214c, 0x214d, 1}, {0x214f, 0x218a, 59}, {0x218b, 0x2195, 10}, {0x2196, 0x2199, 1}, {0x219c, 0x219f, 1}, {0x21a1, 0x21a2, 1}, {0x21a4, 0x21a5, 1}, {0x21a7, 0x21ad, 1}, {0x21af, 0x21cd, 1}, {0x21d0, 0x21d1, 1}, {0x21d3, 0x21d5, 2}, {0x21d6, 0x21f3, 1}, {0x2300, 0x2307, 1}, {0x230c, 0x231f, 1}, {0x2322, 0x2328, 1}, {0x232b, 0x237b, 1}, {0x237d, 0x239a, 1}, {0x23b4, 0x23db, 1}, {0x23e2, 0x2426, 1}, {0x2440, 0x244a, 1}, {0x249c, 0x24e9, 1}, {0x2500, 0x25b6, 1}, {0x25b8, 0x25c0, 1}, {0x25c2, 0x25f7, 1}, {0x2600, 0x266e, 1}, {0x2670, 0x2767, 1}, {0x2794, 0x27bf, 1}, {0x2800, 0x28ff, 1}, {0x2b00, 0x2b2f, 1}, {0x2b45, 0x2b46, 1}, {0x2b4d, 0x2b73, 1}, {0x2b76, 0x2b95, 1}, {0x2b97, 0x2bff, 1}, {0x2ce5, 0x2cea, 1}, {0x2e50, 0x2e51, 1}, {0x2e80, 0x2e99, 1}, {0x2e9b, 0x2ef3, 1}, {0x2f00, 0x2fd5, 1}, {0x2ff0, 0x2ffb, 1}, {0x3004, 0x3012, 14}, {0x3013, 0x3020, 13}, {0x3036, 0x3037, 1}, {0x303e, 0x303f, 1}, {0x3190, 0x3191, 1}, {0x3196, 0x319f, 1}, {0x31c0, 0x31e3, 1}, {0x3200, 0x321e, 1}, {0x322a, 0x3247, 1}, {0x3250, 0x3260, 16}, {0x3261, 0x327f, 1}, {0x328a, 0x32b0, 1}, {0x32c0, 0x33ff, 1}, {0x4dc0, 0x4dff, 1}, {0xa490, 0xa4c6, 1}, {0xa828, 0xa82b, 1}, {0xa836, 0xa837, 1}, {0xa839, 0xaa77, 574}, {0xaa78, 0xaa79, 1}, {0xfd40, 0xfd4f, 1}, {0xfdcf, 0xfdfd, 46}, {0xfdfe, 0xfdff, 1}, {0xffe4, 0xffe8, 4}, {0xffed, 0xffee, 1}, {0xfffc, 0xfffd, 1}, }, R32: []Range32{ {0x10137, 0x1013f, 1}, {0x10179, 0x10189, 1}, {0x1018c, 0x1018e, 1}, {0x10190, 0x1019c, 1}, {0x101a0, 0x101d0, 48}, {0x101d1, 0x101fc, 1}, {0x10877, 0x10878, 1}, {0x10ac8, 0x1173f, 3191}, {0x11fd5, 0x11fdc, 1}, {0x11fe1, 0x11ff1, 1}, {0x16b3c, 0x16b3f, 1}, {0x16b45, 0x1bc9c, 20823}, {0x1cf50, 0x1cfc3, 1}, {0x1d000, 0x1d0f5, 1}, {0x1d100, 0x1d126, 1}, {0x1d129, 0x1d164, 1}, {0x1d16a, 0x1d16c, 1}, {0x1d183, 0x1d184, 1}, {0x1d18c, 0x1d1a9, 1}, {0x1d1ae, 0x1d1ea, 1}, {0x1d200, 0x1d241, 1}, {0x1d245, 0x1d300, 187}, {0x1d301, 0x1d356, 1}, {0x1d800, 0x1d9ff, 1}, {0x1da37, 0x1da3a, 1}, {0x1da6d, 0x1da74, 1}, {0x1da76, 0x1da83, 1}, {0x1da85, 0x1da86, 1}, {0x1e14f, 0x1ecac, 2909}, {0x1ed2e, 0x1f000, 722}, {0x1f001, 0x1f02b, 1}, {0x1f030, 0x1f093, 1}, {0x1f0a0, 0x1f0ae, 1}, {0x1f0b1, 0x1f0bf, 1}, {0x1f0c1, 0x1f0cf, 1}, {0x1f0d1, 0x1f0f5, 1}, {0x1f10d, 0x1f1ad, 1}, {0x1f1e6, 0x1f202, 1}, {0x1f210, 0x1f23b, 1}, {0x1f240, 0x1f248, 1}, {0x1f250, 0x1f251, 1}, {0x1f260, 0x1f265, 1}, {0x1f300, 0x1f3fa, 1}, {0x1f400, 0x1f6d7, 1}, {0x1f6dc, 0x1f6ec, 1}, {0x1f6f0, 0x1f6fc, 1}, {0x1f700, 0x1f776, 1}, {0x1f77b, 0x1f7d9, 1}, {0x1f7e0, 0x1f7eb, 1}, {0x1f7f0, 0x1f800, 16}, {0x1f801, 0x1f80b, 1}, {0x1f810, 0x1f847, 1}, {0x1f850, 0x1f859, 1}, {0x1f860, 0x1f887, 1}, {0x1f890, 0x1f8ad, 1}, {0x1f8b0, 0x1f8b1, 1}, {0x1f900, 0x1fa53, 1}, {0x1fa60, 0x1fa6d, 1}, {0x1fa70, 0x1fa7c, 1}, {0x1fa80, 0x1fa88, 1}, {0x1fa90, 0x1fabd, 1}, {0x1fabf, 0x1fac5, 1}, {0x1face, 0x1fadb, 1}, {0x1fae0, 0x1fae8, 1}, {0x1faf0, 0x1faf8, 1}, {0x1fb00, 0x1fb92, 1}, {0x1fb94, 0x1fbca, 1}, }, LatinOffset: 2, } var _Z = &RangeTable{ R16: []Range16{ {0x0020, 0x00a0, 128}, {0x1680, 0x2000, 2432}, {0x2001, 0x200a, 1}, {0x2028, 0x2029, 1}, {0x202f, 0x205f, 48}, {0x3000, 0x3000, 1}, }, LatinOffset: 1, } var _Zl = &RangeTable{ R16: []Range16{ {0x2028, 0x2028, 1}, }, } var _Zp = &RangeTable{ R16: []Range16{ {0x2029, 0x2029, 1}, }, } var _Zs = &RangeTable{ R16: []Range16{ {0x0020, 0x00a0, 128}, {0x1680, 0x2000, 2432}, {0x2001, 0x200a, 1}, {0x202f, 0x205f, 48}, {0x3000, 0x3000, 1}, }, LatinOffset: 1, } // These variables have type *RangeTable. var ( Cc = _Cc // Cc is the set of Unicode characters in category Cc (Other, control). Cf = _Cf // Cf is the set of Unicode characters in category Cf (Other, format). Co = _Co // Co is the set of Unicode characters in category Co (Other, private use). Cs = _Cs // Cs is the set of Unicode characters in category Cs (Other, surrogate). Digit = _Nd // Digit is the set of Unicode characters with the "decimal digit" property. Nd = _Nd // Nd is the set of Unicode characters in category Nd (Number, decimal digit). Letter = _L // Letter/L is the set of Unicode letters, category L. L = _L Lm = _Lm // Lm is the set of Unicode characters in category Lm (Letter, modifier). Lo = _Lo // Lo is the set of Unicode characters in category Lo (Letter, other). Lower = _Ll // Lower is the set of Unicode lower case letters. Ll = _Ll // Ll is the set of Unicode characters in category Ll (Letter, lowercase). Mark = _M // Mark/M is the set of Unicode mark characters, category M. M = _M Mc = _Mc // Mc is the set of Unicode characters in category Mc (Mark, spacing combining). Me = _Me // Me is the set of Unicode characters in category Me (Mark, enclosing). Mn = _Mn // Mn is the set of Unicode characters in category Mn (Mark, nonspacing). Nl = _Nl // Nl is the set of Unicode characters in category Nl (Number, letter). No = _No // No is the set of Unicode characters in category No (Number, other). Number = _N // Number/N is the set of Unicode number characters, category N. N = _N Other = _C // Other/C is the set of Unicode control and special characters, category C. C = _C Pc = _Pc // Pc is the set of Unicode characters in category Pc (Punctuation, connector). Pd = _Pd // Pd is the set of Unicode characters in category Pd (Punctuation, dash). Pe = _Pe // Pe is the set of Unicode characters in category Pe (Punctuation, close). Pf = _Pf // Pf is the set of Unicode characters in category Pf (Punctuation, final quote). Pi = _Pi // Pi is the set of Unicode characters in category Pi (Punctuation, initial quote). Po = _Po // Po is the set of Unicode characters in category Po (Punctuation, other). Ps = _Ps // Ps is the set of Unicode characters in category Ps (Punctuation, open). Punct = _P // Punct/P is the set of Unicode punctuation characters, category P. P = _P Sc = _Sc // Sc is the set of Unicode characters in category Sc (Symbol, currency). Sk = _Sk // Sk is the set of Unicode characters in category Sk (Symbol, modifier). Sm = _Sm // Sm is the set of Unicode characters in category Sm (Symbol, math). So = _So // So is the set of Unicode characters in category So (Symbol, other). Space = _Z // Space/Z is the set of Unicode space characters, category Z. Z = _Z Symbol = _S // Symbol/S is the set of Unicode symbol characters, category S. S = _S Title = _Lt // Title is the set of Unicode title case letters. Lt = _Lt // Lt is the set of Unicode characters in category Lt (Letter, titlecase). Upper = _Lu // Upper is the set of Unicode upper case letters. Lu = _Lu // Lu is the set of Unicode characters in category Lu (Letter, uppercase). Zl = _Zl // Zl is the set of Unicode characters in category Zl (Separator, line). Zp = _Zp // Zp is the set of Unicode characters in category Zp (Separator, paragraph). Zs = _Zs // Zs is the set of Unicode characters in category Zs (Separator, space). ) // Scripts is the set of Unicode script tables. var Scripts = map[string]*RangeTable{ "Adlam": Adlam, "Ahom": Ahom, "Anatolian_Hieroglyphs": Anatolian_Hieroglyphs, "Arabic": Arabic, "Armenian": Armenian, "Avestan": Avestan, "Balinese": Balinese, "Bamum": Bamum, "Bassa_Vah": Bassa_Vah, "Batak": Batak, "Bengali": Bengali, "Bhaiksuki": Bhaiksuki, "Bopomofo": Bopomofo, "Brahmi": Brahmi, "Braille": Braille, "Buginese": Buginese, "Buhid": Buhid, "Canadian_Aboriginal": Canadian_Aboriginal, "Carian": Carian, "Caucasian_Albanian": Caucasian_Albanian, "Chakma": Chakma, "Cham": Cham, "Cherokee": Cherokee, "Chorasmian": Chorasmian, "Common": Common, "Coptic": Coptic, "Cuneiform": Cuneiform, "Cypriot": Cypriot, "Cypro_Minoan": Cypro_Minoan, "Cyrillic": Cyrillic, "Deseret": Deseret, "Devanagari": Devanagari, "Dives_Akuru": Dives_Akuru, "Dogra": Dogra, "Duployan": Duployan, "Egyptian_Hieroglyphs": Egyptian_Hieroglyphs, "Elbasan": Elbasan, "Elymaic": Elymaic, "Ethiopic": Ethiopic, "Georgian": Georgian, "Glagolitic": Glagolitic, "Gothic": Gothic, "Grantha": Grantha, "Greek": Greek, "Gujarati": Gujarati, "Gunjala_Gondi": Gunjala_Gondi, "Gurmukhi": Gurmukhi, "Han": Han, "Hangul": Hangul, "Hanifi_Rohingya": Hanifi_Rohingya, "Hanunoo": Hanunoo, "Hatran": Hatran, "Hebrew": Hebrew, "Hiragana": Hiragana, "Imperial_Aramaic": Imperial_Aramaic, "Inherited": Inherited, "Inscriptional_Pahlavi": Inscriptional_Pahlavi, "Inscriptional_Parthian": Inscriptional_Parthian, "Javanese": Javanese, "Kaithi": Kaithi, "Kannada": Kannada, "Katakana": Katakana, "Kawi": Kawi, "Kayah_Li": Kayah_Li, "Kharoshthi": Kharoshthi, "Khitan_Small_Script": Khitan_Small_Script, "Khmer": Khmer, "Khojki": Khojki, "Khudawadi": Khudawadi, "Lao": Lao, "Latin": Latin, "Lepcha": Lepcha, "Limbu": Limbu, "Linear_A": Linear_A, "Linear_B": Linear_B, "Lisu": Lisu, "Lycian": Lycian, "Lydian": Lydian, "Mahajani": Mahajani, "Makasar": Makasar, "Malayalam": Malayalam, "Mandaic": Mandaic, "Manichaean": Manichaean, "Marchen": Marchen, "Masaram_Gondi": Masaram_Gondi, "Medefaidrin": Medefaidrin, "Meetei_Mayek": Meetei_Mayek, "Mende_Kikakui": Mende_Kikakui, "Meroitic_Cursive": Meroitic_Cursive, "Meroitic_Hieroglyphs": Meroitic_Hieroglyphs, "Miao": Miao, "Modi": Modi, "Mongolian": Mongolian, "Mro": Mro, "Multani": Multani, "Myanmar": Myanmar, "Nabataean": Nabataean, "Nag_Mundari": Nag_Mundari, "Nandinagari": Nandinagari, "New_Tai_Lue": New_Tai_Lue, "Newa": Newa, "Nko": Nko, "Nushu": Nushu, "Nyiakeng_Puachue_Hmong": Nyiakeng_Puachue_Hmong, "Ogham": Ogham, "Ol_Chiki": Ol_Chiki, "Old_Hungarian": Old_Hungarian, "Old_Italic": Old_Italic, "Old_North_Arabian": Old_North_Arabian, "Old_Permic": Old_Permic, "Old_Persian": Old_Persian, "Old_Sogdian": Old_Sogdian, "Old_South_Arabian": Old_South_Arabian, "Old_Turkic": Old_Turkic, "Old_Uyghur": Old_Uyghur, "Oriya": Oriya, "Osage": Osage, "Osmanya": Osmanya, "Pahawh_Hmong": Pahawh_Hmong, "Palmyrene": Palmyrene, "Pau_Cin_Hau": Pau_Cin_Hau, "Phags_Pa": Phags_Pa, "Phoenician": Phoenician, "Psalter_Pahlavi": Psalter_Pahlavi, "Rejang": Rejang, "Runic": Runic, "Samaritan": Samaritan, "Saurashtra": Saurashtra, "Sharada": Sharada, "Shavian": Shavian, "Siddham": Siddham, "SignWriting": SignWriting, "Sinhala": Sinhala, "Sogdian": Sogdian, "Sora_Sompeng": Sora_Sompeng, "Soyombo": Soyombo, "Sundanese": Sundanese, "Syloti_Nagri": Syloti_Nagri, "Syriac": Syriac, "Tagalog": Tagalog, "Tagbanwa": Tagbanwa, "Tai_Le": Tai_Le, "Tai_Tham": Tai_Tham, "Tai_Viet": Tai_Viet, "Takri": Takri, "Tamil": Tamil, "Tangsa": Tangsa, "Tangut": Tangut, "Telugu": Telugu, "Thaana": Thaana, "Thai": Thai, "Tibetan": Tibetan, "Tifinagh": Tifinagh, "Tirhuta": Tirhuta, "Toto": Toto, "Ugaritic": Ugaritic, "Vai": Vai, "Vithkuqi": Vithkuqi, "Wancho": Wancho, "Warang_Citi": Warang_Citi, "Yezidi": Yezidi, "Yi": Yi, "Zanabazar_Square": Zanabazar_Square, } var _Adlam = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1e900, 0x1e94b, 1}, {0x1e950, 0x1e959, 1}, {0x1e95e, 0x1e95f, 1}, }, } var _Ahom = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11700, 0x1171a, 1}, {0x1171d, 0x1172b, 1}, {0x11730, 0x11746, 1}, }, } var _Anatolian_Hieroglyphs = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x14400, 0x14646, 1}, }, } var _Arabic = &RangeTable{ R16: []Range16{ {0x0600, 0x0604, 1}, {0x0606, 0x060b, 1}, {0x060d, 0x061a, 1}, {0x061c, 0x061e, 1}, {0x0620, 0x063f, 1}, {0x0641, 0x064a, 1}, {0x0656, 0x066f, 1}, {0x0671, 0x06dc, 1}, {0x06de, 0x06ff, 1}, {0x0750, 0x077f, 1}, {0x0870, 0x088e, 1}, {0x0890, 0x0891, 1}, {0x0898, 0x08e1, 1}, {0x08e3, 0x08ff, 1}, {0xfb50, 0xfbc2, 1}, {0xfbd3, 0xfd3d, 1}, {0xfd40, 0xfd8f, 1}, {0xfd92, 0xfdc7, 1}, {0xfdcf, 0xfdf0, 33}, {0xfdf1, 0xfdff, 1}, {0xfe70, 0xfe74, 1}, {0xfe76, 0xfefc, 1}, }, R32: []Range32{ {0x10e60, 0x10e7e, 1}, {0x10efd, 0x10eff, 1}, {0x1ee00, 0x1ee03, 1}, {0x1ee05, 0x1ee1f, 1}, {0x1ee21, 0x1ee22, 1}, {0x1ee24, 0x1ee27, 3}, {0x1ee29, 0x1ee32, 1}, {0x1ee34, 0x1ee37, 1}, {0x1ee39, 0x1ee3b, 2}, {0x1ee42, 0x1ee47, 5}, {0x1ee49, 0x1ee4d, 2}, {0x1ee4e, 0x1ee4f, 1}, {0x1ee51, 0x1ee52, 1}, {0x1ee54, 0x1ee57, 3}, {0x1ee59, 0x1ee61, 2}, {0x1ee62, 0x1ee64, 2}, {0x1ee67, 0x1ee6a, 1}, {0x1ee6c, 0x1ee72, 1}, {0x1ee74, 0x1ee77, 1}, {0x1ee79, 0x1ee7c, 1}, {0x1ee7e, 0x1ee80, 2}, {0x1ee81, 0x1ee89, 1}, {0x1ee8b, 0x1ee9b, 1}, {0x1eea1, 0x1eea3, 1}, {0x1eea5, 0x1eea9, 1}, {0x1eeab, 0x1eebb, 1}, {0x1eef0, 0x1eef1, 1}, }, } var _Armenian = &RangeTable{ R16: []Range16{ {0x0531, 0x0556, 1}, {0x0559, 0x058a, 1}, {0x058d, 0x058f, 1}, {0xfb13, 0xfb17, 1}, }, } var _Avestan = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10b00, 0x10b35, 1}, {0x10b39, 0x10b3f, 1}, }, } var _Balinese = &RangeTable{ R16: []Range16{ {0x1b00, 0x1b4c, 1}, {0x1b50, 0x1b7e, 1}, }, } var _Bamum = &RangeTable{ R16: []Range16{ {0xa6a0, 0xa6f7, 1}, }, R32: []Range32{ {0x16800, 0x16a38, 1}, }, } var _Bassa_Vah = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16ad0, 0x16aed, 1}, {0x16af0, 0x16af5, 1}, }, } var _Batak = &RangeTable{ R16: []Range16{ {0x1bc0, 0x1bf3, 1}, {0x1bfc, 0x1bff, 1}, }, } var _Bengali = &RangeTable{ R16: []Range16{ {0x0980, 0x0983, 1}, {0x0985, 0x098c, 1}, {0x098f, 0x0990, 1}, {0x0993, 0x09a8, 1}, {0x09aa, 0x09b0, 1}, {0x09b2, 0x09b6, 4}, {0x09b7, 0x09b9, 1}, {0x09bc, 0x09c4, 1}, {0x09c7, 0x09c8, 1}, {0x09cb, 0x09ce, 1}, {0x09d7, 0x09dc, 5}, {0x09dd, 0x09df, 2}, {0x09e0, 0x09e3, 1}, {0x09e6, 0x09fe, 1}, }, } var _Bhaiksuki = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11c00, 0x11c08, 1}, {0x11c0a, 0x11c36, 1}, {0x11c38, 0x11c45, 1}, {0x11c50, 0x11c6c, 1}, }, } var _Bopomofo = &RangeTable{ R16: []Range16{ {0x02ea, 0x02eb, 1}, {0x3105, 0x312f, 1}, {0x31a0, 0x31bf, 1}, }, } var _Brahmi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11000, 0x1104d, 1}, {0x11052, 0x11075, 1}, {0x1107f, 0x1107f, 1}, }, } var _Braille = &RangeTable{ R16: []Range16{ {0x2800, 0x28ff, 1}, }, } var _Buginese = &RangeTable{ R16: []Range16{ {0x1a00, 0x1a1b, 1}, {0x1a1e, 0x1a1f, 1}, }, } var _Buhid = &RangeTable{ R16: []Range16{ {0x1740, 0x1753, 1}, }, } var _Canadian_Aboriginal = &RangeTable{ R16: []Range16{ {0x1400, 0x167f, 1}, {0x18b0, 0x18f5, 1}, }, R32: []Range32{ {0x11ab0, 0x11abf, 1}, }, } var _Carian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x102a0, 0x102d0, 1}, }, } var _Caucasian_Albanian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10530, 0x10563, 1}, {0x1056f, 0x1056f, 1}, }, } var _Chakma = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11100, 0x11134, 1}, {0x11136, 0x11147, 1}, }, } var _Cham = &RangeTable{ R16: []Range16{ {0xaa00, 0xaa36, 1}, {0xaa40, 0xaa4d, 1}, {0xaa50, 0xaa59, 1}, {0xaa5c, 0xaa5f, 1}, }, } var _Cherokee = &RangeTable{ R16: []Range16{ {0x13a0, 0x13f5, 1}, {0x13f8, 0x13fd, 1}, {0xab70, 0xabbf, 1}, }, } var _Chorasmian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10fb0, 0x10fcb, 1}, }, } var _Common = &RangeTable{ R16: []Range16{ {0x0000, 0x0040, 1}, {0x005b, 0x0060, 1}, {0x007b, 0x00a9, 1}, {0x00ab, 0x00b9, 1}, {0x00bb, 0x00bf, 1}, {0x00d7, 0x00f7, 32}, {0x02b9, 0x02df, 1}, {0x02e5, 0x02e9, 1}, {0x02ec, 0x02ff, 1}, {0x0374, 0x037e, 10}, {0x0385, 0x0387, 2}, {0x0605, 0x060c, 7}, {0x061b, 0x061f, 4}, {0x0640, 0x06dd, 157}, {0x08e2, 0x0964, 130}, {0x0965, 0x0e3f, 1242}, {0x0fd5, 0x0fd8, 1}, {0x10fb, 0x16eb, 1520}, {0x16ec, 0x16ed, 1}, {0x1735, 0x1736, 1}, {0x1802, 0x1803, 1}, {0x1805, 0x1cd3, 1230}, {0x1ce1, 0x1ce9, 8}, {0x1cea, 0x1cec, 1}, {0x1cee, 0x1cf3, 1}, {0x1cf5, 0x1cf7, 1}, {0x1cfa, 0x2000, 774}, {0x2001, 0x200b, 1}, {0x200e, 0x2064, 1}, {0x2066, 0x2070, 1}, {0x2074, 0x207e, 1}, {0x2080, 0x208e, 1}, {0x20a0, 0x20c0, 1}, {0x2100, 0x2125, 1}, {0x2127, 0x2129, 1}, {0x212c, 0x2131, 1}, {0x2133, 0x214d, 1}, {0x214f, 0x215f, 1}, {0x2189, 0x218b, 1}, {0x2190, 0x2426, 1}, {0x2440, 0x244a, 1}, {0x2460, 0x27ff, 1}, {0x2900, 0x2b73, 1}, {0x2b76, 0x2b95, 1}, {0x2b97, 0x2bff, 1}, {0x2e00, 0x2e5d, 1}, {0x2ff0, 0x2ffb, 1}, {0x3000, 0x3004, 1}, {0x3006, 0x3008, 2}, {0x3009, 0x3020, 1}, {0x3030, 0x3037, 1}, {0x303c, 0x303f, 1}, {0x309b, 0x309c, 1}, {0x30a0, 0x30fb, 91}, {0x30fc, 0x3190, 148}, {0x3191, 0x319f, 1}, {0x31c0, 0x31e3, 1}, {0x3220, 0x325f, 1}, {0x327f, 0x32cf, 1}, {0x32ff, 0x3358, 89}, {0x3359, 0x33ff, 1}, {0x4dc0, 0x4dff, 1}, {0xa700, 0xa721, 1}, {0xa788, 0xa78a, 1}, {0xa830, 0xa839, 1}, {0xa92e, 0xa9cf, 161}, {0xab5b, 0xab6a, 15}, {0xab6b, 0xfd3e, 20947}, {0xfd3f, 0xfe10, 209}, {0xfe11, 0xfe19, 1}, {0xfe30, 0xfe52, 1}, {0xfe54, 0xfe66, 1}, {0xfe68, 0xfe6b, 1}, {0xfeff, 0xff01, 2}, {0xff02, 0xff20, 1}, {0xff3b, 0xff40, 1}, {0xff5b, 0xff65, 1}, {0xff70, 0xff9e, 46}, {0xff9f, 0xffe0, 65}, {0xffe1, 0xffe6, 1}, {0xffe8, 0xffee, 1}, {0xfff9, 0xfffd, 1}, }, R32: []Range32{ {0x10100, 0x10102, 1}, {0x10107, 0x10133, 1}, {0x10137, 0x1013f, 1}, {0x10190, 0x1019c, 1}, {0x101d0, 0x101fc, 1}, {0x102e1, 0x102fb, 1}, {0x1bca0, 0x1bca3, 1}, {0x1cf50, 0x1cfc3, 1}, {0x1d000, 0x1d0f5, 1}, {0x1d100, 0x1d126, 1}, {0x1d129, 0x1d166, 1}, {0x1d16a, 0x1d17a, 1}, {0x1d183, 0x1d184, 1}, {0x1d18c, 0x1d1a9, 1}, {0x1d1ae, 0x1d1ea, 1}, {0x1d2c0, 0x1d2d3, 1}, {0x1d2e0, 0x1d2f3, 1}, {0x1d300, 0x1d356, 1}, {0x1d360, 0x1d378, 1}, {0x1d400, 0x1d454, 1}, {0x1d456, 0x1d49c, 1}, {0x1d49e, 0x1d49f, 1}, {0x1d4a2, 0x1d4a5, 3}, {0x1d4a6, 0x1d4a9, 3}, {0x1d4aa, 0x1d4ac, 1}, {0x1d4ae, 0x1d4b9, 1}, {0x1d4bb, 0x1d4bd, 2}, {0x1d4be, 0x1d4c3, 1}, {0x1d4c5, 0x1d505, 1}, {0x1d507, 0x1d50a, 1}, {0x1d50d, 0x1d514, 1}, {0x1d516, 0x1d51c, 1}, {0x1d51e, 0x1d539, 1}, {0x1d53b, 0x1d53e, 1}, {0x1d540, 0x1d544, 1}, {0x1d546, 0x1d54a, 4}, {0x1d54b, 0x1d550, 1}, {0x1d552, 0x1d6a5, 1}, {0x1d6a8, 0x1d7cb, 1}, {0x1d7ce, 0x1d7ff, 1}, {0x1ec71, 0x1ecb4, 1}, {0x1ed01, 0x1ed3d, 1}, {0x1f000, 0x1f02b, 1}, {0x1f030, 0x1f093, 1}, {0x1f0a0, 0x1f0ae, 1}, {0x1f0b1, 0x1f0bf, 1}, {0x1f0c1, 0x1f0cf, 1}, {0x1f0d1, 0x1f0f5, 1}, {0x1f100, 0x1f1ad, 1}, {0x1f1e6, 0x1f1ff, 1}, {0x1f201, 0x1f202, 1}, {0x1f210, 0x1f23b, 1}, {0x1f240, 0x1f248, 1}, {0x1f250, 0x1f251, 1}, {0x1f260, 0x1f265, 1}, {0x1f300, 0x1f6d7, 1}, {0x1f6dc, 0x1f6ec, 1}, {0x1f6f0, 0x1f6fc, 1}, {0x1f700, 0x1f776, 1}, {0x1f77b, 0x1f7d9, 1}, {0x1f7e0, 0x1f7eb, 1}, {0x1f7f0, 0x1f800, 16}, {0x1f801, 0x1f80b, 1}, {0x1f810, 0x1f847, 1}, {0x1f850, 0x1f859, 1}, {0x1f860, 0x1f887, 1}, {0x1f890, 0x1f8ad, 1}, {0x1f8b0, 0x1f8b1, 1}, {0x1f900, 0x1fa53, 1}, {0x1fa60, 0x1fa6d, 1}, {0x1fa70, 0x1fa7c, 1}, {0x1fa80, 0x1fa88, 1}, {0x1fa90, 0x1fabd, 1}, {0x1fabf, 0x1fac5, 1}, {0x1face, 0x1fadb, 1}, {0x1fae0, 0x1fae8, 1}, {0x1faf0, 0x1faf8, 1}, {0x1fb00, 0x1fb92, 1}, {0x1fb94, 0x1fbca, 1}, {0x1fbf0, 0x1fbf9, 1}, {0xe0001, 0xe0020, 31}, {0xe0021, 0xe007f, 1}, }, LatinOffset: 6, } var _Coptic = &RangeTable{ R16: []Range16{ {0x03e2, 0x03ef, 1}, {0x2c80, 0x2cf3, 1}, {0x2cf9, 0x2cff, 1}, }, } var _Cuneiform = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x12000, 0x12399, 1}, {0x12400, 0x1246e, 1}, {0x12470, 0x12474, 1}, {0x12480, 0x12543, 1}, }, } var _Cypriot = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10800, 0x10805, 1}, {0x10808, 0x1080a, 2}, {0x1080b, 0x10835, 1}, {0x10837, 0x10838, 1}, {0x1083c, 0x1083f, 3}, }, } var _Cypro_Minoan = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x12f90, 0x12ff2, 1}, }, } var _Cyrillic = &RangeTable{ R16: []Range16{ {0x0400, 0x0484, 1}, {0x0487, 0x052f, 1}, {0x1c80, 0x1c88, 1}, {0x1d2b, 0x1d78, 77}, {0x2de0, 0x2dff, 1}, {0xa640, 0xa69f, 1}, {0xfe2e, 0xfe2f, 1}, }, R32: []Range32{ {0x1e030, 0x1e06d, 1}, {0x1e08f, 0x1e08f, 1}, }, } var _Deseret = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10400, 0x1044f, 1}, }, } var _Devanagari = &RangeTable{ R16: []Range16{ {0x0900, 0x0950, 1}, {0x0955, 0x0963, 1}, {0x0966, 0x097f, 1}, {0xa8e0, 0xa8ff, 1}, }, R32: []Range32{ {0x11b00, 0x11b09, 1}, }, } var _Dives_Akuru = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11900, 0x11906, 1}, {0x11909, 0x1190c, 3}, {0x1190d, 0x11913, 1}, {0x11915, 0x11916, 1}, {0x11918, 0x11935, 1}, {0x11937, 0x11938, 1}, {0x1193b, 0x11946, 1}, {0x11950, 0x11959, 1}, }, } var _Dogra = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11800, 0x1183b, 1}, }, } var _Duployan = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1bc00, 0x1bc6a, 1}, {0x1bc70, 0x1bc7c, 1}, {0x1bc80, 0x1bc88, 1}, {0x1bc90, 0x1bc99, 1}, {0x1bc9c, 0x1bc9f, 1}, }, } var _Egyptian_Hieroglyphs = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x13000, 0x13455, 1}, }, } var _Elbasan = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10500, 0x10527, 1}, }, } var _Elymaic = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10fe0, 0x10ff6, 1}, }, } var _Ethiopic = &RangeTable{ R16: []Range16{ {0x1200, 0x1248, 1}, {0x124a, 0x124d, 1}, {0x1250, 0x1256, 1}, {0x1258, 0x125a, 2}, {0x125b, 0x125d, 1}, {0x1260, 0x1288, 1}, {0x128a, 0x128d, 1}, {0x1290, 0x12b0, 1}, {0x12b2, 0x12b5, 1}, {0x12b8, 0x12be, 1}, {0x12c0, 0x12c2, 2}, {0x12c3, 0x12c5, 1}, {0x12c8, 0x12d6, 1}, {0x12d8, 0x1310, 1}, {0x1312, 0x1315, 1}, {0x1318, 0x135a, 1}, {0x135d, 0x137c, 1}, {0x1380, 0x1399, 1}, {0x2d80, 0x2d96, 1}, {0x2da0, 0x2da6, 1}, {0x2da8, 0x2dae, 1}, {0x2db0, 0x2db6, 1}, {0x2db8, 0x2dbe, 1}, {0x2dc0, 0x2dc6, 1}, {0x2dc8, 0x2dce, 1}, {0x2dd0, 0x2dd6, 1}, {0x2dd8, 0x2dde, 1}, {0xab01, 0xab06, 1}, {0xab09, 0xab0e, 1}, {0xab11, 0xab16, 1}, {0xab20, 0xab26, 1}, {0xab28, 0xab2e, 1}, }, R32: []Range32{ {0x1e7e0, 0x1e7e6, 1}, {0x1e7e8, 0x1e7eb, 1}, {0x1e7ed, 0x1e7ee, 1}, {0x1e7f0, 0x1e7fe, 1}, }, } var _Georgian = &RangeTable{ R16: []Range16{ {0x10a0, 0x10c5, 1}, {0x10c7, 0x10cd, 6}, {0x10d0, 0x10fa, 1}, {0x10fc, 0x10ff, 1}, {0x1c90, 0x1cba, 1}, {0x1cbd, 0x1cbf, 1}, {0x2d00, 0x2d25, 1}, {0x2d27, 0x2d2d, 6}, }, } var _Glagolitic = &RangeTable{ R16: []Range16{ {0x2c00, 0x2c5f, 1}, }, R32: []Range32{ {0x1e000, 0x1e006, 1}, {0x1e008, 0x1e018, 1}, {0x1e01b, 0x1e021, 1}, {0x1e023, 0x1e024, 1}, {0x1e026, 0x1e02a, 1}, }, } var _Gothic = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10330, 0x1034a, 1}, }, } var _Grantha = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11300, 0x11303, 1}, {0x11305, 0x1130c, 1}, {0x1130f, 0x11310, 1}, {0x11313, 0x11328, 1}, {0x1132a, 0x11330, 1}, {0x11332, 0x11333, 1}, {0x11335, 0x11339, 1}, {0x1133c, 0x11344, 1}, {0x11347, 0x11348, 1}, {0x1134b, 0x1134d, 1}, {0x11350, 0x11357, 7}, {0x1135d, 0x11363, 1}, {0x11366, 0x1136c, 1}, {0x11370, 0x11374, 1}, }, } var _Greek = &RangeTable{ R16: []Range16{ {0x0370, 0x0373, 1}, {0x0375, 0x0377, 1}, {0x037a, 0x037d, 1}, {0x037f, 0x0384, 5}, {0x0386, 0x0388, 2}, {0x0389, 0x038a, 1}, {0x038c, 0x038e, 2}, {0x038f, 0x03a1, 1}, {0x03a3, 0x03e1, 1}, {0x03f0, 0x03ff, 1}, {0x1d26, 0x1d2a, 1}, {0x1d5d, 0x1d61, 1}, {0x1d66, 0x1d6a, 1}, {0x1dbf, 0x1f00, 321}, {0x1f01, 0x1f15, 1}, {0x1f18, 0x1f1d, 1}, {0x1f20, 0x1f45, 1}, {0x1f48, 0x1f4d, 1}, {0x1f50, 0x1f57, 1}, {0x1f59, 0x1f5f, 2}, {0x1f60, 0x1f7d, 1}, {0x1f80, 0x1fb4, 1}, {0x1fb6, 0x1fc4, 1}, {0x1fc6, 0x1fd3, 1}, {0x1fd6, 0x1fdb, 1}, {0x1fdd, 0x1fef, 1}, {0x1ff2, 0x1ff4, 1}, {0x1ff6, 0x1ffe, 1}, {0x2126, 0xab65, 35391}, }, R32: []Range32{ {0x10140, 0x1018e, 1}, {0x101a0, 0x1d200, 53344}, {0x1d201, 0x1d245, 1}, }, } var _Gujarati = &RangeTable{ R16: []Range16{ {0x0a81, 0x0a83, 1}, {0x0a85, 0x0a8d, 1}, {0x0a8f, 0x0a91, 1}, {0x0a93, 0x0aa8, 1}, {0x0aaa, 0x0ab0, 1}, {0x0ab2, 0x0ab3, 1}, {0x0ab5, 0x0ab9, 1}, {0x0abc, 0x0ac5, 1}, {0x0ac7, 0x0ac9, 1}, {0x0acb, 0x0acd, 1}, {0x0ad0, 0x0ae0, 16}, {0x0ae1, 0x0ae3, 1}, {0x0ae6, 0x0af1, 1}, {0x0af9, 0x0aff, 1}, }, } var _Gunjala_Gondi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11d60, 0x11d65, 1}, {0x11d67, 0x11d68, 1}, {0x11d6a, 0x11d8e, 1}, {0x11d90, 0x11d91, 1}, {0x11d93, 0x11d98, 1}, {0x11da0, 0x11da9, 1}, }, } var _Gurmukhi = &RangeTable{ R16: []Range16{ {0x0a01, 0x0a03, 1}, {0x0a05, 0x0a0a, 1}, {0x0a0f, 0x0a10, 1}, {0x0a13, 0x0a28, 1}, {0x0a2a, 0x0a30, 1}, {0x0a32, 0x0a33, 1}, {0x0a35, 0x0a36, 1}, {0x0a38, 0x0a39, 1}, {0x0a3c, 0x0a3e, 2}, {0x0a3f, 0x0a42, 1}, {0x0a47, 0x0a48, 1}, {0x0a4b, 0x0a4d, 1}, {0x0a51, 0x0a59, 8}, {0x0a5a, 0x0a5c, 1}, {0x0a5e, 0x0a66, 8}, {0x0a67, 0x0a76, 1}, }, } var _Han = &RangeTable{ R16: []Range16{ {0x2e80, 0x2e99, 1}, {0x2e9b, 0x2ef3, 1}, {0x2f00, 0x2fd5, 1}, {0x3005, 0x3007, 2}, {0x3021, 0x3029, 1}, {0x3038, 0x303b, 1}, {0x3400, 0x4dbf, 1}, {0x4e00, 0x9fff, 1}, {0xf900, 0xfa6d, 1}, {0xfa70, 0xfad9, 1}, }, R32: []Range32{ {0x16fe2, 0x16fe3, 1}, {0x16ff0, 0x16ff1, 1}, {0x20000, 0x2a6df, 1}, {0x2a700, 0x2b739, 1}, {0x2b740, 0x2b81d, 1}, {0x2b820, 0x2cea1, 1}, {0x2ceb0, 0x2ebe0, 1}, {0x2f800, 0x2fa1d, 1}, {0x30000, 0x3134a, 1}, {0x31350, 0x323af, 1}, }, } var _Hangul = &RangeTable{ R16: []Range16{ {0x1100, 0x11ff, 1}, {0x302e, 0x302f, 1}, {0x3131, 0x318e, 1}, {0x3200, 0x321e, 1}, {0x3260, 0x327e, 1}, {0xa960, 0xa97c, 1}, {0xac00, 0xd7a3, 1}, {0xd7b0, 0xd7c6, 1}, {0xd7cb, 0xd7fb, 1}, {0xffa0, 0xffbe, 1}, {0xffc2, 0xffc7, 1}, {0xffca, 0xffcf, 1}, {0xffd2, 0xffd7, 1}, {0xffda, 0xffdc, 1}, }, } var _Hanifi_Rohingya = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10d00, 0x10d27, 1}, {0x10d30, 0x10d39, 1}, }, } var _Hanunoo = &RangeTable{ R16: []Range16{ {0x1720, 0x1734, 1}, }, } var _Hatran = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x108e0, 0x108f2, 1}, {0x108f4, 0x108f5, 1}, {0x108fb, 0x108ff, 1}, }, } var _Hebrew = &RangeTable{ R16: []Range16{ {0x0591, 0x05c7, 1}, {0x05d0, 0x05ea, 1}, {0x05ef, 0x05f4, 1}, {0xfb1d, 0xfb36, 1}, {0xfb38, 0xfb3c, 1}, {0xfb3e, 0xfb40, 2}, {0xfb41, 0xfb43, 2}, {0xfb44, 0xfb46, 2}, {0xfb47, 0xfb4f, 1}, }, } var _Hiragana = &RangeTable{ R16: []Range16{ {0x3041, 0x3096, 1}, {0x309d, 0x309f, 1}, }, R32: []Range32{ {0x1b001, 0x1b11f, 1}, {0x1b132, 0x1b150, 30}, {0x1b151, 0x1b152, 1}, {0x1f200, 0x1f200, 1}, }, } var _Imperial_Aramaic = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10840, 0x10855, 1}, {0x10857, 0x1085f, 1}, }, } var _Inherited = &RangeTable{ R16: []Range16{ {0x0300, 0x036f, 1}, {0x0485, 0x0486, 1}, {0x064b, 0x0655, 1}, {0x0670, 0x0951, 737}, {0x0952, 0x0954, 1}, {0x1ab0, 0x1ace, 1}, {0x1cd0, 0x1cd2, 1}, {0x1cd4, 0x1ce0, 1}, {0x1ce2, 0x1ce8, 1}, {0x1ced, 0x1cf4, 7}, {0x1cf8, 0x1cf9, 1}, {0x1dc0, 0x1dff, 1}, {0x200c, 0x200d, 1}, {0x20d0, 0x20f0, 1}, {0x302a, 0x302d, 1}, {0x3099, 0x309a, 1}, {0xfe00, 0xfe0f, 1}, {0xfe20, 0xfe2d, 1}, }, R32: []Range32{ {0x101fd, 0x102e0, 227}, {0x1133b, 0x1cf00, 48069}, {0x1cf01, 0x1cf2d, 1}, {0x1cf30, 0x1cf46, 1}, {0x1d167, 0x1d169, 1}, {0x1d17b, 0x1d182, 1}, {0x1d185, 0x1d18b, 1}, {0x1d1aa, 0x1d1ad, 1}, {0xe0100, 0xe01ef, 1}, }, } var _Inscriptional_Pahlavi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10b60, 0x10b72, 1}, {0x10b78, 0x10b7f, 1}, }, } var _Inscriptional_Parthian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10b40, 0x10b55, 1}, {0x10b58, 0x10b5f, 1}, }, } var _Javanese = &RangeTable{ R16: []Range16{ {0xa980, 0xa9cd, 1}, {0xa9d0, 0xa9d9, 1}, {0xa9de, 0xa9df, 1}, }, } var _Kaithi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11080, 0x110c2, 1}, {0x110cd, 0x110cd, 1}, }, } var _Kannada = &RangeTable{ R16: []Range16{ {0x0c80, 0x0c8c, 1}, {0x0c8e, 0x0c90, 1}, {0x0c92, 0x0ca8, 1}, {0x0caa, 0x0cb3, 1}, {0x0cb5, 0x0cb9, 1}, {0x0cbc, 0x0cc4, 1}, {0x0cc6, 0x0cc8, 1}, {0x0cca, 0x0ccd, 1}, {0x0cd5, 0x0cd6, 1}, {0x0cdd, 0x0cde, 1}, {0x0ce0, 0x0ce3, 1}, {0x0ce6, 0x0cef, 1}, {0x0cf1, 0x0cf3, 1}, }, } var _Katakana = &RangeTable{ R16: []Range16{ {0x30a1, 0x30fa, 1}, {0x30fd, 0x30ff, 1}, {0x31f0, 0x31ff, 1}, {0x32d0, 0x32fe, 1}, {0x3300, 0x3357, 1}, {0xff66, 0xff6f, 1}, {0xff71, 0xff9d, 1}, }, R32: []Range32{ {0x1aff0, 0x1aff3, 1}, {0x1aff5, 0x1affb, 1}, {0x1affd, 0x1affe, 1}, {0x1b000, 0x1b120, 288}, {0x1b121, 0x1b122, 1}, {0x1b155, 0x1b164, 15}, {0x1b165, 0x1b167, 1}, }, } var _Kawi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11f00, 0x11f10, 1}, {0x11f12, 0x11f3a, 1}, {0x11f3e, 0x11f59, 1}, }, } var _Kayah_Li = &RangeTable{ R16: []Range16{ {0xa900, 0xa92d, 1}, {0xa92f, 0xa92f, 1}, }, } var _Kharoshthi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10a00, 0x10a03, 1}, {0x10a05, 0x10a06, 1}, {0x10a0c, 0x10a13, 1}, {0x10a15, 0x10a17, 1}, {0x10a19, 0x10a35, 1}, {0x10a38, 0x10a3a, 1}, {0x10a3f, 0x10a48, 1}, {0x10a50, 0x10a58, 1}, }, } var _Khitan_Small_Script = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16fe4, 0x18b00, 6940}, {0x18b01, 0x18cd5, 1}, }, } var _Khmer = &RangeTable{ R16: []Range16{ {0x1780, 0x17dd, 1}, {0x17e0, 0x17e9, 1}, {0x17f0, 0x17f9, 1}, {0x19e0, 0x19ff, 1}, }, } var _Khojki = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11200, 0x11211, 1}, {0x11213, 0x11241, 1}, }, } var _Khudawadi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x112b0, 0x112ea, 1}, {0x112f0, 0x112f9, 1}, }, } var _Lao = &RangeTable{ R16: []Range16{ {0x0e81, 0x0e82, 1}, {0x0e84, 0x0e86, 2}, {0x0e87, 0x0e8a, 1}, {0x0e8c, 0x0ea3, 1}, {0x0ea5, 0x0ea7, 2}, {0x0ea8, 0x0ebd, 1}, {0x0ec0, 0x0ec4, 1}, {0x0ec6, 0x0ec8, 2}, {0x0ec9, 0x0ece, 1}, {0x0ed0, 0x0ed9, 1}, {0x0edc, 0x0edf, 1}, }, } var _Latin = &RangeTable{ R16: []Range16{ {0x0041, 0x005a, 1}, {0x0061, 0x007a, 1}, {0x00aa, 0x00ba, 16}, {0x00c0, 0x00d6, 1}, {0x00d8, 0x00f6, 1}, {0x00f8, 0x02b8, 1}, {0x02e0, 0x02e4, 1}, {0x1d00, 0x1d25, 1}, {0x1d2c, 0x1d5c, 1}, {0x1d62, 0x1d65, 1}, {0x1d6b, 0x1d77, 1}, {0x1d79, 0x1dbe, 1}, {0x1e00, 0x1eff, 1}, {0x2071, 0x207f, 14}, {0x2090, 0x209c, 1}, {0x212a, 0x212b, 1}, {0x2132, 0x214e, 28}, {0x2160, 0x2188, 1}, {0x2c60, 0x2c7f, 1}, {0xa722, 0xa787, 1}, {0xa78b, 0xa7ca, 1}, {0xa7d0, 0xa7d1, 1}, {0xa7d3, 0xa7d5, 2}, {0xa7d6, 0xa7d9, 1}, {0xa7f2, 0xa7ff, 1}, {0xab30, 0xab5a, 1}, {0xab5c, 0xab64, 1}, {0xab66, 0xab69, 1}, {0xfb00, 0xfb06, 1}, {0xff21, 0xff3a, 1}, {0xff41, 0xff5a, 1}, }, R32: []Range32{ {0x10780, 0x10785, 1}, {0x10787, 0x107b0, 1}, {0x107b2, 0x107ba, 1}, {0x1df00, 0x1df1e, 1}, {0x1df25, 0x1df2a, 1}, }, LatinOffset: 5, } var _Lepcha = &RangeTable{ R16: []Range16{ {0x1c00, 0x1c37, 1}, {0x1c3b, 0x1c49, 1}, {0x1c4d, 0x1c4f, 1}, }, } var _Limbu = &RangeTable{ R16: []Range16{ {0x1900, 0x191e, 1}, {0x1920, 0x192b, 1}, {0x1930, 0x193b, 1}, {0x1940, 0x1944, 4}, {0x1945, 0x194f, 1}, }, } var _Linear_A = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10600, 0x10736, 1}, {0x10740, 0x10755, 1}, {0x10760, 0x10767, 1}, }, } var _Linear_B = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10000, 0x1000b, 1}, {0x1000d, 0x10026, 1}, {0x10028, 0x1003a, 1}, {0x1003c, 0x1003d, 1}, {0x1003f, 0x1004d, 1}, {0x10050, 0x1005d, 1}, {0x10080, 0x100fa, 1}, }, } var _Lisu = &RangeTable{ R16: []Range16{ {0xa4d0, 0xa4ff, 1}, }, R32: []Range32{ {0x11fb0, 0x11fb0, 1}, }, } var _Lycian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10280, 0x1029c, 1}, }, } var _Lydian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10920, 0x10939, 1}, {0x1093f, 0x1093f, 1}, }, } var _Mahajani = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11150, 0x11176, 1}, }, } var _Makasar = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11ee0, 0x11ef8, 1}, }, } var _Malayalam = &RangeTable{ R16: []Range16{ {0x0d00, 0x0d0c, 1}, {0x0d0e, 0x0d10, 1}, {0x0d12, 0x0d44, 1}, {0x0d46, 0x0d48, 1}, {0x0d4a, 0x0d4f, 1}, {0x0d54, 0x0d63, 1}, {0x0d66, 0x0d7f, 1}, }, } var _Mandaic = &RangeTable{ R16: []Range16{ {0x0840, 0x085b, 1}, {0x085e, 0x085e, 1}, }, } var _Manichaean = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10ac0, 0x10ae6, 1}, {0x10aeb, 0x10af6, 1}, }, } var _Marchen = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11c70, 0x11c8f, 1}, {0x11c92, 0x11ca7, 1}, {0x11ca9, 0x11cb6, 1}, }, } var _Masaram_Gondi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11d00, 0x11d06, 1}, {0x11d08, 0x11d09, 1}, {0x11d0b, 0x11d36, 1}, {0x11d3a, 0x11d3c, 2}, {0x11d3d, 0x11d3f, 2}, {0x11d40, 0x11d47, 1}, {0x11d50, 0x11d59, 1}, }, } var _Medefaidrin = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16e40, 0x16e9a, 1}, }, } var _Meetei_Mayek = &RangeTable{ R16: []Range16{ {0xaae0, 0xaaf6, 1}, {0xabc0, 0xabed, 1}, {0xabf0, 0xabf9, 1}, }, } var _Mende_Kikakui = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1e800, 0x1e8c4, 1}, {0x1e8c7, 0x1e8d6, 1}, }, } var _Meroitic_Cursive = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x109a0, 0x109b7, 1}, {0x109bc, 0x109cf, 1}, {0x109d2, 0x109ff, 1}, }, } var _Meroitic_Hieroglyphs = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10980, 0x1099f, 1}, }, } var _Miao = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16f00, 0x16f4a, 1}, {0x16f4f, 0x16f87, 1}, {0x16f8f, 0x16f9f, 1}, }, } var _Modi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11600, 0x11644, 1}, {0x11650, 0x11659, 1}, }, } var _Mongolian = &RangeTable{ R16: []Range16{ {0x1800, 0x1801, 1}, {0x1804, 0x1806, 2}, {0x1807, 0x1819, 1}, {0x1820, 0x1878, 1}, {0x1880, 0x18aa, 1}, }, R32: []Range32{ {0x11660, 0x1166c, 1}, }, } var _Mro = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16a40, 0x16a5e, 1}, {0x16a60, 0x16a69, 1}, {0x16a6e, 0x16a6f, 1}, }, } var _Multani = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11280, 0x11286, 1}, {0x11288, 0x1128a, 2}, {0x1128b, 0x1128d, 1}, {0x1128f, 0x1129d, 1}, {0x1129f, 0x112a9, 1}, }, } var _Myanmar = &RangeTable{ R16: []Range16{ {0x1000, 0x109f, 1}, {0xa9e0, 0xa9fe, 1}, {0xaa60, 0xaa7f, 1}, }, } var _Nabataean = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10880, 0x1089e, 1}, {0x108a7, 0x108af, 1}, }, } var _Nag_Mundari = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1e4d0, 0x1e4f9, 1}, }, } var _Nandinagari = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x119a0, 0x119a7, 1}, {0x119aa, 0x119d7, 1}, {0x119da, 0x119e4, 1}, }, } var _New_Tai_Lue = &RangeTable{ R16: []Range16{ {0x1980, 0x19ab, 1}, {0x19b0, 0x19c9, 1}, {0x19d0, 0x19da, 1}, {0x19de, 0x19df, 1}, }, } var _Newa = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11400, 0x1145b, 1}, {0x1145d, 0x11461, 1}, }, } var _Nko = &RangeTable{ R16: []Range16{ {0x07c0, 0x07fa, 1}, {0x07fd, 0x07ff, 1}, }, } var _Nushu = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16fe1, 0x1b170, 16783}, {0x1b171, 0x1b2fb, 1}, }, } var _Nyiakeng_Puachue_Hmong = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1e100, 0x1e12c, 1}, {0x1e130, 0x1e13d, 1}, {0x1e140, 0x1e149, 1}, {0x1e14e, 0x1e14f, 1}, }, } var _Ogham = &RangeTable{ R16: []Range16{ {0x1680, 0x169c, 1}, }, } var _Ol_Chiki = &RangeTable{ R16: []Range16{ {0x1c50, 0x1c7f, 1}, }, } var _Old_Hungarian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10c80, 0x10cb2, 1}, {0x10cc0, 0x10cf2, 1}, {0x10cfa, 0x10cff, 1}, }, } var _Old_Italic = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10300, 0x10323, 1}, {0x1032d, 0x1032f, 1}, }, } var _Old_North_Arabian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10a80, 0x10a9f, 1}, }, } var _Old_Permic = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10350, 0x1037a, 1}, }, } var _Old_Persian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x103a0, 0x103c3, 1}, {0x103c8, 0x103d5, 1}, }, } var _Old_Sogdian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10f00, 0x10f27, 1}, }, } var _Old_South_Arabian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10a60, 0x10a7f, 1}, }, } var _Old_Turkic = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10c00, 0x10c48, 1}, }, } var _Old_Uyghur = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10f70, 0x10f89, 1}, }, } var _Oriya = &RangeTable{ R16: []Range16{ {0x0b01, 0x0b03, 1}, {0x0b05, 0x0b0c, 1}, {0x0b0f, 0x0b10, 1}, {0x0b13, 0x0b28, 1}, {0x0b2a, 0x0b30, 1}, {0x0b32, 0x0b33, 1}, {0x0b35, 0x0b39, 1}, {0x0b3c, 0x0b44, 1}, {0x0b47, 0x0b48, 1}, {0x0b4b, 0x0b4d, 1}, {0x0b55, 0x0b57, 1}, {0x0b5c, 0x0b5d, 1}, {0x0b5f, 0x0b63, 1}, {0x0b66, 0x0b77, 1}, }, } var _Osage = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x104b0, 0x104d3, 1}, {0x104d8, 0x104fb, 1}, }, } var _Osmanya = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10480, 0x1049d, 1}, {0x104a0, 0x104a9, 1}, }, } var _Pahawh_Hmong = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16b00, 0x16b45, 1}, {0x16b50, 0x16b59, 1}, {0x16b5b, 0x16b61, 1}, {0x16b63, 0x16b77, 1}, {0x16b7d, 0x16b8f, 1}, }, } var _Palmyrene = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10860, 0x1087f, 1}, }, } var _Pau_Cin_Hau = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11ac0, 0x11af8, 1}, }, } var _Phags_Pa = &RangeTable{ R16: []Range16{ {0xa840, 0xa877, 1}, }, } var _Phoenician = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10900, 0x1091b, 1}, {0x1091f, 0x1091f, 1}, }, } var _Psalter_Pahlavi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10b80, 0x10b91, 1}, {0x10b99, 0x10b9c, 1}, {0x10ba9, 0x10baf, 1}, }, } var _Rejang = &RangeTable{ R16: []Range16{ {0xa930, 0xa953, 1}, {0xa95f, 0xa95f, 1}, }, } var _Runic = &RangeTable{ R16: []Range16{ {0x16a0, 0x16ea, 1}, {0x16ee, 0x16f8, 1}, }, } var _Samaritan = &RangeTable{ R16: []Range16{ {0x0800, 0x082d, 1}, {0x0830, 0x083e, 1}, }, } var _Saurashtra = &RangeTable{ R16: []Range16{ {0xa880, 0xa8c5, 1}, {0xa8ce, 0xa8d9, 1}, }, } var _Sharada = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11180, 0x111df, 1}, }, } var _Shavian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10450, 0x1047f, 1}, }, } var _Siddham = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11580, 0x115b5, 1}, {0x115b8, 0x115dd, 1}, }, } var _SignWriting = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1d800, 0x1da8b, 1}, {0x1da9b, 0x1da9f, 1}, {0x1daa1, 0x1daaf, 1}, }, } var _Sinhala = &RangeTable{ R16: []Range16{ {0x0d81, 0x0d83, 1}, {0x0d85, 0x0d96, 1}, {0x0d9a, 0x0db1, 1}, {0x0db3, 0x0dbb, 1}, {0x0dbd, 0x0dc0, 3}, {0x0dc1, 0x0dc6, 1}, {0x0dca, 0x0dcf, 5}, {0x0dd0, 0x0dd4, 1}, {0x0dd6, 0x0dd8, 2}, {0x0dd9, 0x0ddf, 1}, {0x0de6, 0x0def, 1}, {0x0df2, 0x0df4, 1}, }, R32: []Range32{ {0x111e1, 0x111f4, 1}, }, } var _Sogdian = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10f30, 0x10f59, 1}, }, } var _Sora_Sompeng = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x110d0, 0x110e8, 1}, {0x110f0, 0x110f9, 1}, }, } var _Soyombo = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11a50, 0x11aa2, 1}, }, } var _Sundanese = &RangeTable{ R16: []Range16{ {0x1b80, 0x1bbf, 1}, {0x1cc0, 0x1cc7, 1}, }, } var _Syloti_Nagri = &RangeTable{ R16: []Range16{ {0xa800, 0xa82c, 1}, }, } var _Syriac = &RangeTable{ R16: []Range16{ {0x0700, 0x070d, 1}, {0x070f, 0x074a, 1}, {0x074d, 0x074f, 1}, {0x0860, 0x086a, 1}, }, } var _Tagalog = &RangeTable{ R16: []Range16{ {0x1700, 0x1715, 1}, {0x171f, 0x171f, 1}, }, } var _Tagbanwa = &RangeTable{ R16: []Range16{ {0x1760, 0x176c, 1}, {0x176e, 0x1770, 1}, {0x1772, 0x1773, 1}, }, } var _Tai_Le = &RangeTable{ R16: []Range16{ {0x1950, 0x196d, 1}, {0x1970, 0x1974, 1}, }, } var _Tai_Tham = &RangeTable{ R16: []Range16{ {0x1a20, 0x1a5e, 1}, {0x1a60, 0x1a7c, 1}, {0x1a7f, 0x1a89, 1}, {0x1a90, 0x1a99, 1}, {0x1aa0, 0x1aad, 1}, }, } var _Tai_Viet = &RangeTable{ R16: []Range16{ {0xaa80, 0xaac2, 1}, {0xaadb, 0xaadf, 1}, }, } var _Takri = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11680, 0x116b9, 1}, {0x116c0, 0x116c9, 1}, }, } var _Tamil = &RangeTable{ R16: []Range16{ {0x0b82, 0x0b83, 1}, {0x0b85, 0x0b8a, 1}, {0x0b8e, 0x0b90, 1}, {0x0b92, 0x0b95, 1}, {0x0b99, 0x0b9a, 1}, {0x0b9c, 0x0b9e, 2}, {0x0b9f, 0x0ba3, 4}, {0x0ba4, 0x0ba8, 4}, {0x0ba9, 0x0baa, 1}, {0x0bae, 0x0bb9, 1}, {0x0bbe, 0x0bc2, 1}, {0x0bc6, 0x0bc8, 1}, {0x0bca, 0x0bcd, 1}, {0x0bd0, 0x0bd7, 7}, {0x0be6, 0x0bfa, 1}, }, R32: []Range32{ {0x11fc0, 0x11ff1, 1}, {0x11fff, 0x11fff, 1}, }, } var _Tangsa = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16a70, 0x16abe, 1}, {0x16ac0, 0x16ac9, 1}, }, } var _Tangut = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x16fe0, 0x17000, 32}, {0x17001, 0x187f7, 1}, {0x18800, 0x18aff, 1}, {0x18d00, 0x18d08, 1}, }, } var _Telugu = &RangeTable{ R16: []Range16{ {0x0c00, 0x0c0c, 1}, {0x0c0e, 0x0c10, 1}, {0x0c12, 0x0c28, 1}, {0x0c2a, 0x0c39, 1}, {0x0c3c, 0x0c44, 1}, {0x0c46, 0x0c48, 1}, {0x0c4a, 0x0c4d, 1}, {0x0c55, 0x0c56, 1}, {0x0c58, 0x0c5a, 1}, {0x0c5d, 0x0c60, 3}, {0x0c61, 0x0c63, 1}, {0x0c66, 0x0c6f, 1}, {0x0c77, 0x0c7f, 1}, }, } var _Thaana = &RangeTable{ R16: []Range16{ {0x0780, 0x07b1, 1}, }, } var _Thai = &RangeTable{ R16: []Range16{ {0x0e01, 0x0e3a, 1}, {0x0e40, 0x0e5b, 1}, }, } var _Tibetan = &RangeTable{ R16: []Range16{ {0x0f00, 0x0f47, 1}, {0x0f49, 0x0f6c, 1}, {0x0f71, 0x0f97, 1}, {0x0f99, 0x0fbc, 1}, {0x0fbe, 0x0fcc, 1}, {0x0fce, 0x0fd4, 1}, {0x0fd9, 0x0fda, 1}, }, } var _Tifinagh = &RangeTable{ R16: []Range16{ {0x2d30, 0x2d67, 1}, {0x2d6f, 0x2d70, 1}, {0x2d7f, 0x2d7f, 1}, }, } var _Tirhuta = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11480, 0x114c7, 1}, {0x114d0, 0x114d9, 1}, }, } var _Toto = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1e290, 0x1e2ae, 1}, }, } var _Ugaritic = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10380, 0x1039d, 1}, {0x1039f, 0x1039f, 1}, }, } var _Vai = &RangeTable{ R16: []Range16{ {0xa500, 0xa62b, 1}, }, } var _Vithkuqi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10570, 0x1057a, 1}, {0x1057c, 0x1058a, 1}, {0x1058c, 0x10592, 1}, {0x10594, 0x10595, 1}, {0x10597, 0x105a1, 1}, {0x105a3, 0x105b1, 1}, {0x105b3, 0x105b9, 1}, {0x105bb, 0x105bc, 1}, }, } var _Wancho = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1e2c0, 0x1e2f9, 1}, {0x1e2ff, 0x1e2ff, 1}, }, } var _Warang_Citi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x118a0, 0x118f2, 1}, {0x118ff, 0x118ff, 1}, }, } var _Yezidi = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x10e80, 0x10ea9, 1}, {0x10eab, 0x10ead, 1}, {0x10eb0, 0x10eb1, 1}, }, } var _Yi = &RangeTable{ R16: []Range16{ {0xa000, 0xa48c, 1}, {0xa490, 0xa4c6, 1}, }, } var _Zanabazar_Square = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x11a00, 0x11a47, 1}, }, } // These variables have type *RangeTable. var ( Adlam = _Adlam // Adlam is the set of Unicode characters in script Adlam. Ahom = _Ahom // Ahom is the set of Unicode characters in script Ahom. Anatolian_Hieroglyphs = _Anatolian_Hieroglyphs // Anatolian_Hieroglyphs is the set of Unicode characters in script Anatolian_Hieroglyphs. Arabic = _Arabic // Arabic is the set of Unicode characters in script Arabic. Armenian = _Armenian // Armenian is the set of Unicode characters in script Armenian. Avestan = _Avestan // Avestan is the set of Unicode characters in script Avestan. Balinese = _Balinese // Balinese is the set of Unicode characters in script Balinese. Bamum = _Bamum // Bamum is the set of Unicode characters in script Bamum. Bassa_Vah = _Bassa_Vah // Bassa_Vah is the set of Unicode characters in script Bassa_Vah. Batak = _Batak // Batak is the set of Unicode characters in script Batak. Bengali = _Bengali // Bengali is the set of Unicode characters in script Bengali. Bhaiksuki = _Bhaiksuki // Bhaiksuki is the set of Unicode characters in script Bhaiksuki. Bopomofo = _Bopomofo // Bopomofo is the set of Unicode characters in script Bopomofo. Brahmi = _Brahmi // Brahmi is the set of Unicode characters in script Brahmi. Braille = _Braille // Braille is the set of Unicode characters in script Braille. Buginese = _Buginese // Buginese is the set of Unicode characters in script Buginese. Buhid = _Buhid // Buhid is the set of Unicode characters in script Buhid. Canadian_Aboriginal = _Canadian_Aboriginal // Canadian_Aboriginal is the set of Unicode characters in script Canadian_Aboriginal. Carian = _Carian // Carian is the set of Unicode characters in script Carian. Caucasian_Albanian = _Caucasian_Albanian // Caucasian_Albanian is the set of Unicode characters in script Caucasian_Albanian. Chakma = _Chakma // Chakma is the set of Unicode characters in script Chakma. Cham = _Cham // Cham is the set of Unicode characters in script Cham. Cherokee = _Cherokee // Cherokee is the set of Unicode characters in script Cherokee. Chorasmian = _Chorasmian // Chorasmian is the set of Unicode characters in script Chorasmian. Common = _Common // Common is the set of Unicode characters in script Common. Coptic = _Coptic // Coptic is the set of Unicode characters in script Coptic. Cuneiform = _Cuneiform // Cuneiform is the set of Unicode characters in script Cuneiform. Cypriot = _Cypriot // Cypriot is the set of Unicode characters in script Cypriot. Cypro_Minoan = _Cypro_Minoan // Cypro_Minoan is the set of Unicode characters in script Cypro_Minoan. Cyrillic = _Cyrillic // Cyrillic is the set of Unicode characters in script Cyrillic. Deseret = _Deseret // Deseret is the set of Unicode characters in script Deseret. Devanagari = _Devanagari // Devanagari is the set of Unicode characters in script Devanagari. Dives_Akuru = _Dives_Akuru // Dives_Akuru is the set of Unicode characters in script Dives_Akuru. Dogra = _Dogra // Dogra is the set of Unicode characters in script Dogra. Duployan = _Duployan // Duployan is the set of Unicode characters in script Duployan. Egyptian_Hieroglyphs = _Egyptian_Hieroglyphs // Egyptian_Hieroglyphs is the set of Unicode characters in script Egyptian_Hieroglyphs. Elbasan = _Elbasan // Elbasan is the set of Unicode characters in script Elbasan. Elymaic = _Elymaic // Elymaic is the set of Unicode characters in script Elymaic. Ethiopic = _Ethiopic // Ethiopic is the set of Unicode characters in script Ethiopic. Georgian = _Georgian // Georgian is the set of Unicode characters in script Georgian. Glagolitic = _Glagolitic // Glagolitic is the set of Unicode characters in script Glagolitic. Gothic = _Gothic // Gothic is the set of Unicode characters in script Gothic. Grantha = _Grantha // Grantha is the set of Unicode characters in script Grantha. Greek = _Greek // Greek is the set of Unicode characters in script Greek. Gujarati = _Gujarati // Gujarati is the set of Unicode characters in script Gujarati. Gunjala_Gondi = _Gunjala_Gondi // Gunjala_Gondi is the set of Unicode characters in script Gunjala_Gondi. Gurmukhi = _Gurmukhi // Gurmukhi is the set of Unicode characters in script Gurmukhi. Han = _Han // Han is the set of Unicode characters in script Han. Hangul = _Hangul // Hangul is the set of Unicode characters in script Hangul. Hanifi_Rohingya = _Hanifi_Rohingya // Hanifi_Rohingya is the set of Unicode characters in script Hanifi_Rohingya. Hanunoo = _Hanunoo // Hanunoo is the set of Unicode characters in script Hanunoo. Hatran = _Hatran // Hatran is the set of Unicode characters in script Hatran. Hebrew = _Hebrew // Hebrew is the set of Unicode characters in script Hebrew. Hiragana = _Hiragana // Hiragana is the set of Unicode characters in script Hiragana. Imperial_Aramaic = _Imperial_Aramaic // Imperial_Aramaic is the set of Unicode characters in script Imperial_Aramaic. Inherited = _Inherited // Inherited is the set of Unicode characters in script Inherited. Inscriptional_Pahlavi = _Inscriptional_Pahlavi // Inscriptional_Pahlavi is the set of Unicode characters in script Inscriptional_Pahlavi. Inscriptional_Parthian = _Inscriptional_Parthian // Inscriptional_Parthian is the set of Unicode characters in script Inscriptional_Parthian. Javanese = _Javanese // Javanese is the set of Unicode characters in script Javanese. Kaithi = _Kaithi // Kaithi is the set of Unicode characters in script Kaithi. Kannada = _Kannada // Kannada is the set of Unicode characters in script Kannada. Katakana = _Katakana // Katakana is the set of Unicode characters in script Katakana. Kawi = _Kawi // Kawi is the set of Unicode characters in script Kawi. Kayah_Li = _Kayah_Li // Kayah_Li is the set of Unicode characters in script Kayah_Li. Kharoshthi = _Kharoshthi // Kharoshthi is the set of Unicode characters in script Kharoshthi. Khitan_Small_Script = _Khitan_Small_Script // Khitan_Small_Script is the set of Unicode characters in script Khitan_Small_Script. Khmer = _Khmer // Khmer is the set of Unicode characters in script Khmer. Khojki = _Khojki // Khojki is the set of Unicode characters in script Khojki. Khudawadi = _Khudawadi // Khudawadi is the set of Unicode characters in script Khudawadi. Lao = _Lao // Lao is the set of Unicode characters in script Lao. Latin = _Latin // Latin is the set of Unicode characters in script Latin. Lepcha = _Lepcha // Lepcha is the set of Unicode characters in script Lepcha. Limbu = _Limbu // Limbu is the set of Unicode characters in script Limbu. Linear_A = _Linear_A // Linear_A is the set of Unicode characters in script Linear_A. Linear_B = _Linear_B // Linear_B is the set of Unicode characters in script Linear_B. Lisu = _Lisu // Lisu is the set of Unicode characters in script Lisu. Lycian = _Lycian // Lycian is the set of Unicode characters in script Lycian. Lydian = _Lydian // Lydian is the set of Unicode characters in script Lydian. Mahajani = _Mahajani // Mahajani is the set of Unicode characters in script Mahajani. Makasar = _Makasar // Makasar is the set of Unicode characters in script Makasar. Malayalam = _Malayalam // Malayalam is the set of Unicode characters in script Malayalam. Mandaic = _Mandaic // Mandaic is the set of Unicode characters in script Mandaic. Manichaean = _Manichaean // Manichaean is the set of Unicode characters in script Manichaean. Marchen = _Marchen // Marchen is the set of Unicode characters in script Marchen. Masaram_Gondi = _Masaram_Gondi // Masaram_Gondi is the set of Unicode characters in script Masaram_Gondi. Medefaidrin = _Medefaidrin // Medefaidrin is the set of Unicode characters in script Medefaidrin. Meetei_Mayek = _Meetei_Mayek // Meetei_Mayek is the set of Unicode characters in script Meetei_Mayek. Mende_Kikakui = _Mende_Kikakui // Mende_Kikakui is the set of Unicode characters in script Mende_Kikakui. Meroitic_Cursive = _Meroitic_Cursive // Meroitic_Cursive is the set of Unicode characters in script Meroitic_Cursive. Meroitic_Hieroglyphs = _Meroitic_Hieroglyphs // Meroitic_Hieroglyphs is the set of Unicode characters in script Meroitic_Hieroglyphs. Miao = _Miao // Miao is the set of Unicode characters in script Miao. Modi = _Modi // Modi is the set of Unicode characters in script Modi. Mongolian = _Mongolian // Mongolian is the set of Unicode characters in script Mongolian. Mro = _Mro // Mro is the set of Unicode characters in script Mro. Multani = _Multani // Multani is the set of Unicode characters in script Multani. Myanmar = _Myanmar // Myanmar is the set of Unicode characters in script Myanmar. Nabataean = _Nabataean // Nabataean is the set of Unicode characters in script Nabataean. Nag_Mundari = _Nag_Mundari // Nag_Mundari is the set of Unicode characters in script Nag_Mundari. Nandinagari = _Nandinagari // Nandinagari is the set of Unicode characters in script Nandinagari. New_Tai_Lue = _New_Tai_Lue // New_Tai_Lue is the set of Unicode characters in script New_Tai_Lue. Newa = _Newa // Newa is the set of Unicode characters in script Newa. Nko = _Nko // Nko is the set of Unicode characters in script Nko. Nushu = _Nushu // Nushu is the set of Unicode characters in script Nushu. Nyiakeng_Puachue_Hmong = _Nyiakeng_Puachue_Hmong // Nyiakeng_Puachue_Hmong is the set of Unicode characters in script Nyiakeng_Puachue_Hmong. Ogham = _Ogham // Ogham is the set of Unicode characters in script Ogham. Ol_Chiki = _Ol_Chiki // Ol_Chiki is the set of Unicode characters in script Ol_Chiki. Old_Hungarian = _Old_Hungarian // Old_Hungarian is the set of Unicode characters in script Old_Hungarian. Old_Italic = _Old_Italic // Old_Italic is the set of Unicode characters in script Old_Italic. Old_North_Arabian = _Old_North_Arabian // Old_North_Arabian is the set of Unicode characters in script Old_North_Arabian. Old_Permic = _Old_Permic // Old_Permic is the set of Unicode characters in script Old_Permic. Old_Persian = _Old_Persian // Old_Persian is the set of Unicode characters in script Old_Persian. Old_Sogdian = _Old_Sogdian // Old_Sogdian is the set of Unicode characters in script Old_Sogdian. Old_South_Arabian = _Old_South_Arabian // Old_South_Arabian is the set of Unicode characters in script Old_South_Arabian. Old_Turkic = _Old_Turkic // Old_Turkic is the set of Unicode characters in script Old_Turkic. Old_Uyghur = _Old_Uyghur // Old_Uyghur is the set of Unicode characters in script Old_Uyghur. Oriya = _Oriya // Oriya is the set of Unicode characters in script Oriya. Osage = _Osage // Osage is the set of Unicode characters in script Osage. Osmanya = _Osmanya // Osmanya is the set of Unicode characters in script Osmanya. Pahawh_Hmong = _Pahawh_Hmong // Pahawh_Hmong is the set of Unicode characters in script Pahawh_Hmong. Palmyrene = _Palmyrene // Palmyrene is the set of Unicode characters in script Palmyrene. Pau_Cin_Hau = _Pau_Cin_Hau // Pau_Cin_Hau is the set of Unicode characters in script Pau_Cin_Hau. Phags_Pa = _Phags_Pa // Phags_Pa is the set of Unicode characters in script Phags_Pa. Phoenician = _Phoenician // Phoenician is the set of Unicode characters in script Phoenician. Psalter_Pahlavi = _Psalter_Pahlavi // Psalter_Pahlavi is the set of Unicode characters in script Psalter_Pahlavi. Rejang = _Rejang // Rejang is the set of Unicode characters in script Rejang. Runic = _Runic // Runic is the set of Unicode characters in script Runic. Samaritan = _Samaritan // Samaritan is the set of Unicode characters in script Samaritan. Saurashtra = _Saurashtra // Saurashtra is the set of Unicode characters in script Saurashtra. Sharada = _Sharada // Sharada is the set of Unicode characters in script Sharada. Shavian = _Shavian // Shavian is the set of Unicode characters in script Shavian. Siddham = _Siddham // Siddham is the set of Unicode characters in script Siddham. SignWriting = _SignWriting // SignWriting is the set of Unicode characters in script SignWriting. Sinhala = _Sinhala // Sinhala is the set of Unicode characters in script Sinhala. Sogdian = _Sogdian // Sogdian is the set of Unicode characters in script Sogdian. Sora_Sompeng = _Sora_Sompeng // Sora_Sompeng is the set of Unicode characters in script Sora_Sompeng. Soyombo = _Soyombo // Soyombo is the set of Unicode characters in script Soyombo. Sundanese = _Sundanese // Sundanese is the set of Unicode characters in script Sundanese. Syloti_Nagri = _Syloti_Nagri // Syloti_Nagri is the set of Unicode characters in script Syloti_Nagri. Syriac = _Syriac // Syriac is the set of Unicode characters in script Syriac. Tagalog = _Tagalog // Tagalog is the set of Unicode characters in script Tagalog. Tagbanwa = _Tagbanwa // Tagbanwa is the set of Unicode characters in script Tagbanwa. Tai_Le = _Tai_Le // Tai_Le is the set of Unicode characters in script Tai_Le. Tai_Tham = _Tai_Tham // Tai_Tham is the set of Unicode characters in script Tai_Tham. Tai_Viet = _Tai_Viet // Tai_Viet is the set of Unicode characters in script Tai_Viet. Takri = _Takri // Takri is the set of Unicode characters in script Takri. Tamil = _Tamil // Tamil is the set of Unicode characters in script Tamil. Tangsa = _Tangsa // Tangsa is the set of Unicode characters in script Tangsa. Tangut = _Tangut // Tangut is the set of Unicode characters in script Tangut. Telugu = _Telugu // Telugu is the set of Unicode characters in script Telugu. Thaana = _Thaana // Thaana is the set of Unicode characters in script Thaana. Thai = _Thai // Thai is the set of Unicode characters in script Thai. Tibetan = _Tibetan // Tibetan is the set of Unicode characters in script Tibetan. Tifinagh = _Tifinagh // Tifinagh is the set of Unicode characters in script Tifinagh. Tirhuta = _Tirhuta // Tirhuta is the set of Unicode characters in script Tirhuta. Toto = _Toto // Toto is the set of Unicode characters in script Toto. Ugaritic = _Ugaritic // Ugaritic is the set of Unicode characters in script Ugaritic. Vai = _Vai // Vai is the set of Unicode characters in script Vai. Vithkuqi = _Vithkuqi // Vithkuqi is the set of Unicode characters in script Vithkuqi. Wancho = _Wancho // Wancho is the set of Unicode characters in script Wancho. Warang_Citi = _Warang_Citi // Warang_Citi is the set of Unicode characters in script Warang_Citi. Yezidi = _Yezidi // Yezidi is the set of Unicode characters in script Yezidi. Yi = _Yi // Yi is the set of Unicode characters in script Yi. Zanabazar_Square = _Zanabazar_Square // Zanabazar_Square is the set of Unicode characters in script Zanabazar_Square. ) // Properties is the set of Unicode property tables. var Properties = map[string]*RangeTable{ "ASCII_Hex_Digit": ASCII_Hex_Digit, "Bidi_Control": Bidi_Control, "Dash": Dash, "Deprecated": Deprecated, "Diacritic": Diacritic, "Extender": Extender, "Hex_Digit": Hex_Digit, "Hyphen": Hyphen, "IDS_Binary_Operator": IDS_Binary_Operator, "IDS_Trinary_Operator": IDS_Trinary_Operator, "Ideographic": Ideographic, "Join_Control": Join_Control, "Logical_Order_Exception": Logical_Order_Exception, "Noncharacter_Code_Point": Noncharacter_Code_Point, "Other_Alphabetic": Other_Alphabetic, "Other_Default_Ignorable_Code_Point": Other_Default_Ignorable_Code_Point, "Other_Grapheme_Extend": Other_Grapheme_Extend, "Other_ID_Continue": Other_ID_Continue, "Other_ID_Start": Other_ID_Start, "Other_Lowercase": Other_Lowercase, "Other_Math": Other_Math, "Other_Uppercase": Other_Uppercase, "Pattern_Syntax": Pattern_Syntax, "Pattern_White_Space": Pattern_White_Space, "Prepended_Concatenation_Mark": Prepended_Concatenation_Mark, "Quotation_Mark": Quotation_Mark, "Radical": Radical, "Regional_Indicator": Regional_Indicator, "Sentence_Terminal": Sentence_Terminal, "STerm": Sentence_Terminal, "Soft_Dotted": Soft_Dotted, "Terminal_Punctuation": Terminal_Punctuation, "Unified_Ideograph": Unified_Ideograph, "Variation_Selector": Variation_Selector, "White_Space": White_Space, } var _ASCII_Hex_Digit = &RangeTable{ R16: []Range16{ {0x0030, 0x0039, 1}, {0x0041, 0x0046, 1}, {0x0061, 0x0066, 1}, }, LatinOffset: 3, } var _Bidi_Control = &RangeTable{ R16: []Range16{ {0x061c, 0x200e, 6642}, {0x200f, 0x202a, 27}, {0x202b, 0x202e, 1}, {0x2066, 0x2069, 1}, }, } var _Dash = &RangeTable{ R16: []Range16{ {0x002d, 0x058a, 1373}, {0x05be, 0x1400, 3650}, {0x1806, 0x2010, 2058}, {0x2011, 0x2015, 1}, {0x2053, 0x207b, 40}, {0x208b, 0x2212, 391}, {0x2e17, 0x2e1a, 3}, {0x2e3a, 0x2e3b, 1}, {0x2e40, 0x2e5d, 29}, {0x301c, 0x3030, 20}, {0x30a0, 0xfe31, 52625}, {0xfe32, 0xfe58, 38}, {0xfe63, 0xff0d, 170}, }, R32: []Range32{ {0x10ead, 0x10ead, 1}, }, } var _Deprecated = &RangeTable{ R16: []Range16{ {0x0149, 0x0673, 1322}, {0x0f77, 0x0f79, 2}, {0x17a3, 0x17a4, 1}, {0x206a, 0x206f, 1}, {0x2329, 0x232a, 1}, }, R32: []Range32{ {0xe0001, 0xe0001, 1}, }, } var _Diacritic = &RangeTable{ R16: []Range16{ {0x005e, 0x0060, 2}, {0x00a8, 0x00af, 7}, {0x00b4, 0x00b7, 3}, {0x00b8, 0x02b0, 504}, {0x02b1, 0x034e, 1}, {0x0350, 0x0357, 1}, {0x035d, 0x0362, 1}, {0x0374, 0x0375, 1}, {0x037a, 0x0384, 10}, {0x0385, 0x0483, 254}, {0x0484, 0x0487, 1}, {0x0559, 0x0591, 56}, {0x0592, 0x05a1, 1}, {0x05a3, 0x05bd, 1}, {0x05bf, 0x05c1, 2}, {0x05c2, 0x05c4, 2}, {0x064b, 0x0652, 1}, {0x0657, 0x0658, 1}, {0x06df, 0x06e0, 1}, {0x06e5, 0x06e6, 1}, {0x06ea, 0x06ec, 1}, {0x0730, 0x074a, 1}, {0x07a6, 0x07b0, 1}, {0x07eb, 0x07f5, 1}, {0x0818, 0x0819, 1}, {0x0898, 0x089f, 1}, {0x08c9, 0x08d2, 1}, {0x08e3, 0x08fe, 1}, {0x093c, 0x094d, 17}, {0x0951, 0x0954, 1}, {0x0971, 0x09bc, 75}, {0x09cd, 0x0a3c, 111}, {0x0a4d, 0x0abc, 111}, {0x0acd, 0x0afd, 48}, {0x0afe, 0x0aff, 1}, {0x0b3c, 0x0b4d, 17}, {0x0b55, 0x0bcd, 120}, {0x0c3c, 0x0c4d, 17}, {0x0cbc, 0x0ccd, 17}, {0x0d3b, 0x0d3c, 1}, {0x0d4d, 0x0e47, 125}, {0x0e48, 0x0e4c, 1}, {0x0e4e, 0x0eba, 108}, {0x0ec8, 0x0ecc, 1}, {0x0f18, 0x0f19, 1}, {0x0f35, 0x0f39, 2}, {0x0f3e, 0x0f3f, 1}, {0x0f82, 0x0f84, 1}, {0x0f86, 0x0f87, 1}, {0x0fc6, 0x1037, 113}, {0x1039, 0x103a, 1}, {0x1063, 0x1064, 1}, {0x1069, 0x106d, 1}, {0x1087, 0x108d, 1}, {0x108f, 0x109a, 11}, {0x109b, 0x135d, 706}, {0x135e, 0x135f, 1}, {0x1714, 0x1715, 1}, {0x17c9, 0x17d3, 1}, {0x17dd, 0x1939, 348}, {0x193a, 0x193b, 1}, {0x1a75, 0x1a7c, 1}, {0x1a7f, 0x1ab0, 49}, {0x1ab1, 0x1abe, 1}, {0x1ac1, 0x1acb, 1}, {0x1b34, 0x1b44, 16}, {0x1b6b, 0x1b73, 1}, {0x1baa, 0x1bab, 1}, {0x1c36, 0x1c37, 1}, {0x1c78, 0x1c7d, 1}, {0x1cd0, 0x1ce8, 1}, {0x1ced, 0x1cf4, 7}, {0x1cf7, 0x1cf9, 1}, {0x1d2c, 0x1d6a, 1}, {0x1dc4, 0x1dcf, 1}, {0x1df5, 0x1dff, 1}, {0x1fbd, 0x1fbf, 2}, {0x1fc0, 0x1fc1, 1}, {0x1fcd, 0x1fcf, 1}, {0x1fdd, 0x1fdf, 1}, {0x1fed, 0x1fef, 1}, {0x1ffd, 0x1ffe, 1}, {0x2cef, 0x2cf1, 1}, {0x2e2f, 0x302a, 507}, {0x302b, 0x302f, 1}, {0x3099, 0x309c, 1}, {0x30fc, 0xa66f, 30067}, {0xa67c, 0xa67d, 1}, {0xa67f, 0xa69c, 29}, {0xa69d, 0xa6f0, 83}, {0xa6f1, 0xa700, 15}, {0xa701, 0xa721, 1}, {0xa788, 0xa78a, 1}, {0xa7f8, 0xa7f9, 1}, {0xa8c4, 0xa8e0, 28}, {0xa8e1, 0xa8f1, 1}, {0xa92b, 0xa92e, 1}, {0xa953, 0xa9b3, 96}, {0xa9c0, 0xa9e5, 37}, {0xaa7b, 0xaa7d, 1}, {0xaabf, 0xaac2, 1}, {0xaaf6, 0xab5b, 101}, {0xab5c, 0xab5f, 1}, {0xab69, 0xab6b, 1}, {0xabec, 0xabed, 1}, {0xfb1e, 0xfe20, 770}, {0xfe21, 0xfe2f, 1}, {0xff3e, 0xff40, 2}, {0xff70, 0xff9e, 46}, {0xff9f, 0xffe3, 68}, }, R32: []Range32{ {0x102e0, 0x10780, 1184}, {0x10781, 0x10785, 1}, {0x10787, 0x107b0, 1}, {0x107b2, 0x107ba, 1}, {0x10ae5, 0x10ae6, 1}, {0x10d22, 0x10d27, 1}, {0x10efd, 0x10eff, 1}, {0x10f46, 0x10f50, 1}, {0x10f82, 0x10f85, 1}, {0x11046, 0x11070, 42}, {0x110b9, 0x110ba, 1}, {0x11133, 0x11134, 1}, {0x11173, 0x111c0, 77}, {0x111ca, 0x111cc, 1}, {0x11235, 0x11236, 1}, {0x112e9, 0x112ea, 1}, {0x1133c, 0x1134d, 17}, {0x11366, 0x1136c, 1}, {0x11370, 0x11374, 1}, {0x11442, 0x11446, 4}, {0x114c2, 0x114c3, 1}, {0x115bf, 0x115c0, 1}, {0x1163f, 0x116b6, 119}, {0x116b7, 0x1172b, 116}, {0x11839, 0x1183a, 1}, {0x1193d, 0x1193e, 1}, {0x11943, 0x119e0, 157}, {0x11a34, 0x11a47, 19}, {0x11a99, 0x11c3f, 422}, {0x11d42, 0x11d44, 2}, {0x11d45, 0x11d97, 82}, {0x13447, 0x13455, 1}, {0x16af0, 0x16af4, 1}, {0x16b30, 0x16b36, 1}, {0x16f8f, 0x16f9f, 1}, {0x16ff0, 0x16ff1, 1}, {0x1aff0, 0x1aff3, 1}, {0x1aff5, 0x1affb, 1}, {0x1affd, 0x1affe, 1}, {0x1cf00, 0x1cf2d, 1}, {0x1cf30, 0x1cf46, 1}, {0x1d167, 0x1d169, 1}, {0x1d16d, 0x1d172, 1}, {0x1d17b, 0x1d182, 1}, {0x1d185, 0x1d18b, 1}, {0x1d1aa, 0x1d1ad, 1}, {0x1e030, 0x1e06d, 1}, {0x1e130, 0x1e136, 1}, {0x1e2ae, 0x1e2ec, 62}, {0x1e2ed, 0x1e2ef, 1}, {0x1e8d0, 0x1e8d6, 1}, {0x1e944, 0x1e946, 1}, {0x1e948, 0x1e94a, 1}, }, LatinOffset: 3, } var _Extender = &RangeTable{ R16: []Range16{ {0x00b7, 0x02d0, 537}, {0x02d1, 0x0640, 879}, {0x07fa, 0x0b55, 859}, {0x0e46, 0x0ec6, 128}, {0x180a, 0x1843, 57}, {0x1aa7, 0x1c36, 399}, {0x1c7b, 0x3005, 5002}, {0x3031, 0x3035, 1}, {0x309d, 0x309e, 1}, {0x30fc, 0x30fe, 1}, {0xa015, 0xa60c, 1527}, {0xa9cf, 0xa9e6, 23}, {0xaa70, 0xaadd, 109}, {0xaaf3, 0xaaf4, 1}, {0xff70, 0xff70, 1}, }, R32: []Range32{ {0x10781, 0x10782, 1}, {0x1135d, 0x115c6, 617}, {0x115c7, 0x115c8, 1}, {0x11a98, 0x16b42, 20650}, {0x16b43, 0x16fe0, 1181}, {0x16fe1, 0x16fe3, 2}, {0x1e13c, 0x1e13d, 1}, {0x1e944, 0x1e946, 1}, }, } var _Hex_Digit = &RangeTable{ R16: []Range16{ {0x0030, 0x0039, 1}, {0x0041, 0x0046, 1}, {0x0061, 0x0066, 1}, {0xff10, 0xff19, 1}, {0xff21, 0xff26, 1}, {0xff41, 0xff46, 1}, }, LatinOffset: 3, } var _Hyphen = &RangeTable{ R16: []Range16{ {0x002d, 0x00ad, 128}, {0x058a, 0x1806, 4732}, {0x2010, 0x2011, 1}, {0x2e17, 0x30fb, 740}, {0xfe63, 0xff0d, 170}, {0xff65, 0xff65, 1}, }, LatinOffset: 1, } var _IDS_Binary_Operator = &RangeTable{ R16: []Range16{ {0x2ff0, 0x2ff1, 1}, {0x2ff4, 0x2ffb, 1}, }, } var _IDS_Trinary_Operator = &RangeTable{ R16: []Range16{ {0x2ff2, 0x2ff3, 1}, }, } var _Ideographic = &RangeTable{ R16: []Range16{ {0x3006, 0x3007, 1}, {0x3021, 0x3029, 1}, {0x3038, 0x303a, 1}, {0x3400, 0x4dbf, 1}, {0x4e00, 0x9fff, 1}, {0xf900, 0xfa6d, 1}, {0xfa70, 0xfad9, 1}, }, R32: []Range32{ {0x16fe4, 0x17000, 28}, {0x17001, 0x187f7, 1}, {0x18800, 0x18cd5, 1}, {0x18d00, 0x18d08, 1}, {0x1b170, 0x1b2fb, 1}, {0x20000, 0x2a6df, 1}, {0x2a700, 0x2b739, 1}, {0x2b740, 0x2b81d, 1}, {0x2b820, 0x2cea1, 1}, {0x2ceb0, 0x2ebe0, 1}, {0x2f800, 0x2fa1d, 1}, {0x30000, 0x3134a, 1}, {0x31350, 0x323af, 1}, }, } var _Join_Control = &RangeTable{ R16: []Range16{ {0x200c, 0x200d, 1}, }, } var _Logical_Order_Exception = &RangeTable{ R16: []Range16{ {0x0e40, 0x0e44, 1}, {0x0ec0, 0x0ec4, 1}, {0x19b5, 0x19b7, 1}, {0x19ba, 0xaab5, 37115}, {0xaab6, 0xaab9, 3}, {0xaabb, 0xaabc, 1}, }, } var _Noncharacter_Code_Point = &RangeTable{ R16: []Range16{ {0xfdd0, 0xfdef, 1}, {0xfffe, 0xffff, 1}, }, R32: []Range32{ {0x1fffe, 0x1ffff, 1}, {0x2fffe, 0x2ffff, 1}, {0x3fffe, 0x3ffff, 1}, {0x4fffe, 0x4ffff, 1}, {0x5fffe, 0x5ffff, 1}, {0x6fffe, 0x6ffff, 1}, {0x7fffe, 0x7ffff, 1}, {0x8fffe, 0x8ffff, 1}, {0x9fffe, 0x9ffff, 1}, {0xafffe, 0xaffff, 1}, {0xbfffe, 0xbffff, 1}, {0xcfffe, 0xcffff, 1}, {0xdfffe, 0xdffff, 1}, {0xefffe, 0xeffff, 1}, {0xffffe, 0xfffff, 1}, {0x10fffe, 0x10ffff, 1}, }, } var _Other_Alphabetic = &RangeTable{ R16: []Range16{ {0x0345, 0x05b0, 619}, {0x05b1, 0x05bd, 1}, {0x05bf, 0x05c1, 2}, {0x05c2, 0x05c4, 2}, {0x05c5, 0x05c7, 2}, {0x0610, 0x061a, 1}, {0x064b, 0x0657, 1}, {0x0659, 0x065f, 1}, {0x0670, 0x06d6, 102}, {0x06d7, 0x06dc, 1}, {0x06e1, 0x06e4, 1}, {0x06e7, 0x06e8, 1}, {0x06ed, 0x0711, 36}, {0x0730, 0x073f, 1}, {0x07a6, 0x07b0, 1}, {0x0816, 0x0817, 1}, {0x081b, 0x0823, 1}, {0x0825, 0x0827, 1}, {0x0829, 0x082c, 1}, {0x08d4, 0x08df, 1}, {0x08e3, 0x08e9, 1}, {0x08f0, 0x0903, 1}, {0x093a, 0x093b, 1}, {0x093e, 0x094c, 1}, {0x094e, 0x094f, 1}, {0x0955, 0x0957, 1}, {0x0962, 0x0963, 1}, {0x0981, 0x0983, 1}, {0x09be, 0x09c4, 1}, {0x09c7, 0x09c8, 1}, {0x09cb, 0x09cc, 1}, {0x09d7, 0x09e2, 11}, {0x09e3, 0x0a01, 30}, {0x0a02, 0x0a03, 1}, {0x0a3e, 0x0a42, 1}, {0x0a47, 0x0a48, 1}, {0x0a4b, 0x0a4c, 1}, {0x0a51, 0x0a70, 31}, {0x0a71, 0x0a75, 4}, {0x0a81, 0x0a83, 1}, {0x0abe, 0x0ac5, 1}, {0x0ac7, 0x0ac9, 1}, {0x0acb, 0x0acc, 1}, {0x0ae2, 0x0ae3, 1}, {0x0afa, 0x0afc, 1}, {0x0b01, 0x0b03, 1}, {0x0b3e, 0x0b44, 1}, {0x0b47, 0x0b48, 1}, {0x0b4b, 0x0b4c, 1}, {0x0b56, 0x0b57, 1}, {0x0b62, 0x0b63, 1}, {0x0b82, 0x0bbe, 60}, {0x0bbf, 0x0bc2, 1}, {0x0bc6, 0x0bc8, 1}, {0x0bca, 0x0bcc, 1}, {0x0bd7, 0x0c00, 41}, {0x0c01, 0x0c04, 1}, {0x0c3e, 0x0c44, 1}, {0x0c46, 0x0c48, 1}, {0x0c4a, 0x0c4c, 1}, {0x0c55, 0x0c56, 1}, {0x0c62, 0x0c63, 1}, {0x0c81, 0x0c83, 1}, {0x0cbe, 0x0cc4, 1}, {0x0cc6, 0x0cc8, 1}, {0x0cca, 0x0ccc, 1}, {0x0cd5, 0x0cd6, 1}, {0x0ce2, 0x0ce3, 1}, {0x0cf3, 0x0d00, 13}, {0x0d01, 0x0d03, 1}, {0x0d3e, 0x0d44, 1}, {0x0d46, 0x0d48, 1}, {0x0d4a, 0x0d4c, 1}, {0x0d57, 0x0d62, 11}, {0x0d63, 0x0d81, 30}, {0x0d82, 0x0d83, 1}, {0x0dcf, 0x0dd4, 1}, {0x0dd6, 0x0dd8, 2}, {0x0dd9, 0x0ddf, 1}, {0x0df2, 0x0df3, 1}, {0x0e31, 0x0e34, 3}, {0x0e35, 0x0e3a, 1}, {0x0e4d, 0x0eb1, 100}, {0x0eb4, 0x0eb9, 1}, {0x0ebb, 0x0ebc, 1}, {0x0ecd, 0x0f71, 164}, {0x0f72, 0x0f83, 1}, {0x0f8d, 0x0f97, 1}, {0x0f99, 0x0fbc, 1}, {0x102b, 0x1036, 1}, {0x1038, 0x103b, 3}, {0x103c, 0x103e, 1}, {0x1056, 0x1059, 1}, {0x105e, 0x1060, 1}, {0x1062, 0x1064, 1}, {0x1067, 0x106d, 1}, {0x1071, 0x1074, 1}, {0x1082, 0x108d, 1}, {0x108f, 0x109a, 11}, {0x109b, 0x109d, 1}, {0x1712, 0x1713, 1}, {0x1732, 0x1733, 1}, {0x1752, 0x1753, 1}, {0x1772, 0x1773, 1}, {0x17b6, 0x17c8, 1}, {0x1885, 0x1886, 1}, {0x18a9, 0x1920, 119}, {0x1921, 0x192b, 1}, {0x1930, 0x1938, 1}, {0x1a17, 0x1a1b, 1}, {0x1a55, 0x1a5e, 1}, {0x1a61, 0x1a74, 1}, {0x1abf, 0x1ac0, 1}, {0x1acc, 0x1ace, 1}, {0x1b00, 0x1b04, 1}, {0x1b35, 0x1b43, 1}, {0x1b80, 0x1b82, 1}, {0x1ba1, 0x1ba9, 1}, {0x1bac, 0x1bad, 1}, {0x1be7, 0x1bf1, 1}, {0x1c24, 0x1c36, 1}, {0x1de7, 0x1df4, 1}, {0x24b6, 0x24e9, 1}, {0x2de0, 0x2dff, 1}, {0xa674, 0xa67b, 1}, {0xa69e, 0xa69f, 1}, {0xa802, 0xa80b, 9}, {0xa823, 0xa827, 1}, {0xa880, 0xa881, 1}, {0xa8b4, 0xa8c3, 1}, {0xa8c5, 0xa8ff, 58}, {0xa926, 0xa92a, 1}, {0xa947, 0xa952, 1}, {0xa980, 0xa983, 1}, {0xa9b4, 0xa9bf, 1}, {0xa9e5, 0xaa29, 68}, {0xaa2a, 0xaa36, 1}, {0xaa43, 0xaa4c, 9}, {0xaa4d, 0xaa7b, 46}, {0xaa7c, 0xaa7d, 1}, {0xaab0, 0xaab2, 2}, {0xaab3, 0xaab4, 1}, {0xaab7, 0xaab8, 1}, {0xaabe, 0xaaeb, 45}, {0xaaec, 0xaaef, 1}, {0xaaf5, 0xabe3, 238}, {0xabe4, 0xabea, 1}, {0xfb1e, 0xfb1e, 1}, }, R32: []Range32{ {0x10376, 0x1037a, 1}, {0x10a01, 0x10a03, 1}, {0x10a05, 0x10a06, 1}, {0x10a0c, 0x10a0f, 1}, {0x10d24, 0x10d27, 1}, {0x10eab, 0x10eac, 1}, {0x11000, 0x11002, 1}, {0x11038, 0x11045, 1}, {0x11073, 0x11074, 1}, {0x11080, 0x11082, 1}, {0x110b0, 0x110b8, 1}, {0x110c2, 0x11100, 62}, {0x11101, 0x11102, 1}, {0x11127, 0x11132, 1}, {0x11145, 0x11146, 1}, {0x11180, 0x11182, 1}, {0x111b3, 0x111bf, 1}, {0x111ce, 0x111cf, 1}, {0x1122c, 0x11234, 1}, {0x11237, 0x1123e, 7}, {0x11241, 0x112df, 158}, {0x112e0, 0x112e8, 1}, {0x11300, 0x11303, 1}, {0x1133e, 0x11344, 1}, {0x11347, 0x11348, 1}, {0x1134b, 0x1134c, 1}, {0x11357, 0x11362, 11}, {0x11363, 0x11435, 210}, {0x11436, 0x11441, 1}, {0x11443, 0x11445, 1}, {0x114b0, 0x114c1, 1}, {0x115af, 0x115b5, 1}, {0x115b8, 0x115be, 1}, {0x115dc, 0x115dd, 1}, {0x11630, 0x1163e, 1}, {0x11640, 0x116ab, 107}, {0x116ac, 0x116b5, 1}, {0x1171d, 0x1172a, 1}, {0x1182c, 0x11838, 1}, {0x11930, 0x11935, 1}, {0x11937, 0x11938, 1}, {0x1193b, 0x1193c, 1}, {0x11940, 0x11942, 2}, {0x119d1, 0x119d7, 1}, {0x119da, 0x119df, 1}, {0x119e4, 0x11a01, 29}, {0x11a02, 0x11a0a, 1}, {0x11a35, 0x11a39, 1}, {0x11a3b, 0x11a3e, 1}, {0x11a51, 0x11a5b, 1}, {0x11a8a, 0x11a97, 1}, {0x11c2f, 0x11c36, 1}, {0x11c38, 0x11c3e, 1}, {0x11c92, 0x11ca7, 1}, {0x11ca9, 0x11cb6, 1}, {0x11d31, 0x11d36, 1}, {0x11d3a, 0x11d3c, 2}, {0x11d3d, 0x11d3f, 2}, {0x11d40, 0x11d41, 1}, {0x11d43, 0x11d47, 4}, {0x11d8a, 0x11d8e, 1}, {0x11d90, 0x11d91, 1}, {0x11d93, 0x11d96, 1}, {0x11ef3, 0x11ef6, 1}, {0x11f00, 0x11f01, 1}, {0x11f03, 0x11f34, 49}, {0x11f35, 0x11f3a, 1}, {0x11f3e, 0x11f40, 1}, {0x16f4f, 0x16f51, 2}, {0x16f52, 0x16f87, 1}, {0x16f8f, 0x16f92, 1}, {0x16ff0, 0x16ff1, 1}, {0x1bc9e, 0x1e000, 9058}, {0x1e001, 0x1e006, 1}, {0x1e008, 0x1e018, 1}, {0x1e01b, 0x1e021, 1}, {0x1e023, 0x1e024, 1}, {0x1e026, 0x1e02a, 1}, {0x1e08f, 0x1e947, 2232}, {0x1f130, 0x1f149, 1}, {0x1f150, 0x1f169, 1}, {0x1f170, 0x1f189, 1}, }, } var _Other_Default_Ignorable_Code_Point = &RangeTable{ R16: []Range16{ {0x034f, 0x115f, 3600}, {0x1160, 0x17b4, 1620}, {0x17b5, 0x2065, 2224}, {0x3164, 0xffa0, 52796}, {0xfff0, 0xfff8, 1}, }, R32: []Range32{ {0xe0000, 0xe0002, 2}, {0xe0003, 0xe001f, 1}, {0xe0080, 0xe00ff, 1}, {0xe01f0, 0xe0fff, 1}, }, } var _Other_Grapheme_Extend = &RangeTable{ R16: []Range16{ {0x09be, 0x09d7, 25}, {0x0b3e, 0x0b57, 25}, {0x0bbe, 0x0bd7, 25}, {0x0cc2, 0x0cd5, 19}, {0x0cd6, 0x0d3e, 104}, {0x0d57, 0x0dcf, 120}, {0x0ddf, 0x1b35, 3414}, {0x200c, 0x302e, 4130}, {0x302f, 0xff9e, 53103}, {0xff9f, 0xff9f, 1}, }, R32: []Range32{ {0x1133e, 0x11357, 25}, {0x114b0, 0x114bd, 13}, {0x115af, 0x11930, 897}, {0x1d165, 0x1d16e, 9}, {0x1d16f, 0x1d172, 1}, {0xe0020, 0xe007f, 1}, }, } var _Other_ID_Continue = &RangeTable{ R16: []Range16{ {0x00b7, 0x0387, 720}, {0x1369, 0x1371, 1}, {0x19da, 0x19da, 1}, }, } var _Other_ID_Start = &RangeTable{ R16: []Range16{ {0x1885, 0x1886, 1}, {0x2118, 0x212e, 22}, {0x309b, 0x309c, 1}, }, } var _Other_Lowercase = &RangeTable{ R16: []Range16{ {0x00aa, 0x00ba, 16}, {0x02b0, 0x02b8, 1}, {0x02c0, 0x02c1, 1}, {0x02e0, 0x02e4, 1}, {0x0345, 0x037a, 53}, {0x10fc, 0x1d2c, 3120}, {0x1d2d, 0x1d6a, 1}, {0x1d78, 0x1d9b, 35}, {0x1d9c, 0x1dbf, 1}, {0x2071, 0x207f, 14}, {0x2090, 0x209c, 1}, {0x2170, 0x217f, 1}, {0x24d0, 0x24e9, 1}, {0x2c7c, 0x2c7d, 1}, {0xa69c, 0xa69d, 1}, {0xa770, 0xa7f2, 130}, {0xa7f3, 0xa7f4, 1}, {0xa7f8, 0xa7f9, 1}, {0xab5c, 0xab5f, 1}, {0xab69, 0xab69, 1}, }, R32: []Range32{ {0x10780, 0x10783, 3}, {0x10784, 0x10785, 1}, {0x10787, 0x107b0, 1}, {0x107b2, 0x107ba, 1}, {0x1e030, 0x1e06d, 1}, }, LatinOffset: 1, } var _Other_Math = &RangeTable{ R16: []Range16{ {0x005e, 0x03d0, 882}, {0x03d1, 0x03d2, 1}, {0x03d5, 0x03f0, 27}, {0x03f1, 0x03f4, 3}, {0x03f5, 0x2016, 7201}, {0x2032, 0x2034, 1}, {0x2040, 0x2061, 33}, {0x2062, 0x2064, 1}, {0x207d, 0x207e, 1}, {0x208d, 0x208e, 1}, {0x20d0, 0x20dc, 1}, {0x20e1, 0x20e5, 4}, {0x20e6, 0x20eb, 5}, {0x20ec, 0x20ef, 1}, {0x2102, 0x2107, 5}, {0x210a, 0x2113, 1}, {0x2115, 0x2119, 4}, {0x211a, 0x211d, 1}, {0x2124, 0x2128, 4}, {0x2129, 0x212c, 3}, {0x212d, 0x212f, 2}, {0x2130, 0x2131, 1}, {0x2133, 0x2138, 1}, {0x213c, 0x213f, 1}, {0x2145, 0x2149, 1}, {0x2195, 0x2199, 1}, {0x219c, 0x219f, 1}, {0x21a1, 0x21a2, 1}, {0x21a4, 0x21a5, 1}, {0x21a7, 0x21a9, 2}, {0x21aa, 0x21ad, 1}, {0x21b0, 0x21b1, 1}, {0x21b6, 0x21b7, 1}, {0x21bc, 0x21cd, 1}, {0x21d0, 0x21d1, 1}, {0x21d3, 0x21d5, 2}, {0x21d6, 0x21db, 1}, {0x21dd, 0x21e4, 7}, {0x21e5, 0x2308, 291}, {0x2309, 0x230b, 1}, {0x23b4, 0x23b5, 1}, {0x23b7, 0x23d0, 25}, {0x23e2, 0x25a0, 446}, {0x25a1, 0x25ae, 13}, {0x25af, 0x25b6, 1}, {0x25bc, 0x25c0, 1}, {0x25c6, 0x25c7, 1}, {0x25ca, 0x25cb, 1}, {0x25cf, 0x25d3, 1}, {0x25e2, 0x25e4, 2}, {0x25e7, 0x25ec, 1}, {0x2605, 0x2606, 1}, {0x2640, 0x2642, 2}, {0x2660, 0x2663, 1}, {0x266d, 0x266e, 1}, {0x27c5, 0x27c6, 1}, {0x27e6, 0x27ef, 1}, {0x2983, 0x2998, 1}, {0x29d8, 0x29db, 1}, {0x29fc, 0x29fd, 1}, {0xfe61, 0xfe63, 2}, {0xfe68, 0xff3c, 212}, {0xff3e, 0xff3e, 1}, }, R32: []Range32{ {0x1d400, 0x1d454, 1}, {0x1d456, 0x1d49c, 1}, {0x1d49e, 0x1d49f, 1}, {0x1d4a2, 0x1d4a5, 3}, {0x1d4a6, 0x1d4a9, 3}, {0x1d4aa, 0x1d4ac, 1}, {0x1d4ae, 0x1d4b9, 1}, {0x1d4bb, 0x1d4bd, 2}, {0x1d4be, 0x1d4c3, 1}, {0x1d4c5, 0x1d505, 1}, {0x1d507, 0x1d50a, 1}, {0x1d50d, 0x1d514, 1}, {0x1d516, 0x1d51c, 1}, {0x1d51e, 0x1d539, 1}, {0x1d53b, 0x1d53e, 1}, {0x1d540, 0x1d544, 1}, {0x1d546, 0x1d54a, 4}, {0x1d54b, 0x1d550, 1}, {0x1d552, 0x1d6a5, 1}, {0x1d6a8, 0x1d6c0, 1}, {0x1d6c2, 0x1d6da, 1}, {0x1d6dc, 0x1d6fa, 1}, {0x1d6fc, 0x1d714, 1}, {0x1d716, 0x1d734, 1}, {0x1d736, 0x1d74e, 1}, {0x1d750, 0x1d76e, 1}, {0x1d770, 0x1d788, 1}, {0x1d78a, 0x1d7a8, 1}, {0x1d7aa, 0x1d7c2, 1}, {0x1d7c4, 0x1d7cb, 1}, {0x1d7ce, 0x1d7ff, 1}, {0x1ee00, 0x1ee03, 1}, {0x1ee05, 0x1ee1f, 1}, {0x1ee21, 0x1ee22, 1}, {0x1ee24, 0x1ee27, 3}, {0x1ee29, 0x1ee32, 1}, {0x1ee34, 0x1ee37, 1}, {0x1ee39, 0x1ee3b, 2}, {0x1ee42, 0x1ee47, 5}, {0x1ee49, 0x1ee4d, 2}, {0x1ee4e, 0x1ee4f, 1}, {0x1ee51, 0x1ee52, 1}, {0x1ee54, 0x1ee57, 3}, {0x1ee59, 0x1ee61, 2}, {0x1ee62, 0x1ee64, 2}, {0x1ee67, 0x1ee6a, 1}, {0x1ee6c, 0x1ee72, 1}, {0x1ee74, 0x1ee77, 1}, {0x1ee79, 0x1ee7c, 1}, {0x1ee7e, 0x1ee80, 2}, {0x1ee81, 0x1ee89, 1}, {0x1ee8b, 0x1ee9b, 1}, {0x1eea1, 0x1eea3, 1}, {0x1eea5, 0x1eea9, 1}, {0x1eeab, 0x1eebb, 1}, }, } var _Other_Uppercase = &RangeTable{ R16: []Range16{ {0x2160, 0x216f, 1}, {0x24b6, 0x24cf, 1}, }, R32: []Range32{ {0x1f130, 0x1f149, 1}, {0x1f150, 0x1f169, 1}, {0x1f170, 0x1f189, 1}, }, } var _Pattern_Syntax = &RangeTable{ R16: []Range16{ {0x0021, 0x002f, 1}, {0x003a, 0x0040, 1}, {0x005b, 0x005e, 1}, {0x0060, 0x007b, 27}, {0x007c, 0x007e, 1}, {0x00a1, 0x00a7, 1}, {0x00a9, 0x00ab, 2}, {0x00ac, 0x00b0, 2}, {0x00b1, 0x00bb, 5}, {0x00bf, 0x00d7, 24}, {0x00f7, 0x2010, 7961}, {0x2011, 0x2027, 1}, {0x2030, 0x203e, 1}, {0x2041, 0x2053, 1}, {0x2055, 0x205e, 1}, {0x2190, 0x245f, 1}, {0x2500, 0x2775, 1}, {0x2794, 0x2bff, 1}, {0x2e00, 0x2e7f, 1}, {0x3001, 0x3003, 1}, {0x3008, 0x3020, 1}, {0x3030, 0xfd3e, 52494}, {0xfd3f, 0xfe45, 262}, {0xfe46, 0xfe46, 1}, }, LatinOffset: 10, } var _Pattern_White_Space = &RangeTable{ R16: []Range16{ {0x0009, 0x000d, 1}, {0x0020, 0x0085, 101}, {0x200e, 0x200f, 1}, {0x2028, 0x2029, 1}, }, LatinOffset: 2, } var _Prepended_Concatenation_Mark = &RangeTable{ R16: []Range16{ {0x0600, 0x0605, 1}, {0x06dd, 0x070f, 50}, {0x0890, 0x0891, 1}, {0x08e2, 0x08e2, 1}, }, R32: []Range32{ {0x110bd, 0x110cd, 16}, }, } var _Quotation_Mark = &RangeTable{ R16: []Range16{ {0x0022, 0x0027, 5}, {0x00ab, 0x00bb, 16}, {0x2018, 0x201f, 1}, {0x2039, 0x203a, 1}, {0x2e42, 0x300c, 458}, {0x300d, 0x300f, 1}, {0x301d, 0x301f, 1}, {0xfe41, 0xfe44, 1}, {0xff02, 0xff07, 5}, {0xff62, 0xff63, 1}, }, LatinOffset: 2, } var _Radical = &RangeTable{ R16: []Range16{ {0x2e80, 0x2e99, 1}, {0x2e9b, 0x2ef3, 1}, {0x2f00, 0x2fd5, 1}, }, } var _Regional_Indicator = &RangeTable{ R16: []Range16{}, R32: []Range32{ {0x1f1e6, 0x1f1ff, 1}, }, } var _Sentence_Terminal = &RangeTable{ R16: []Range16{ {0x0021, 0x002e, 13}, {0x003f, 0x0589, 1354}, {0x061d, 0x061f, 1}, {0x06d4, 0x0700, 44}, {0x0701, 0x0702, 1}, {0x07f9, 0x0837, 62}, {0x0839, 0x083d, 4}, {0x083e, 0x0964, 294}, {0x0965, 0x104a, 1765}, {0x104b, 0x1362, 791}, {0x1367, 0x1368, 1}, {0x166e, 0x1735, 199}, {0x1736, 0x1803, 205}, {0x1809, 0x1944, 315}, {0x1945, 0x1aa8, 355}, {0x1aa9, 0x1aab, 1}, {0x1b5a, 0x1b5b, 1}, {0x1b5e, 0x1b5f, 1}, {0x1b7d, 0x1b7e, 1}, {0x1c3b, 0x1c3c, 1}, {0x1c7e, 0x1c7f, 1}, {0x203c, 0x203d, 1}, {0x2047, 0x2049, 1}, {0x2e2e, 0x2e3c, 14}, {0x2e53, 0x2e54, 1}, {0x3002, 0xa4ff, 29949}, {0xa60e, 0xa60f, 1}, {0xa6f3, 0xa6f7, 4}, {0xa876, 0xa877, 1}, {0xa8ce, 0xa8cf, 1}, {0xa92f, 0xa9c8, 153}, {0xa9c9, 0xaa5d, 148}, {0xaa5e, 0xaa5f, 1}, {0xaaf0, 0xaaf1, 1}, {0xabeb, 0xfe52, 21095}, {0xfe56, 0xfe57, 1}, {0xff01, 0xff0e, 13}, {0xff1f, 0xff61, 66}, }, R32: []Range32{ {0x10a56, 0x10a57, 1}, {0x10f55, 0x10f59, 1}, {0x10f86, 0x10f89, 1}, {0x11047, 0x11048, 1}, {0x110be, 0x110c1, 1}, {0x11141, 0x11143, 1}, {0x111c5, 0x111c6, 1}, {0x111cd, 0x111de, 17}, {0x111df, 0x11238, 89}, {0x11239, 0x1123b, 2}, {0x1123c, 0x112a9, 109}, {0x1144b, 0x1144c, 1}, {0x115c2, 0x115c3, 1}, {0x115c9, 0x115d7, 1}, {0x11641, 0x11642, 1}, {0x1173c, 0x1173e, 1}, {0x11944, 0x11946, 2}, {0x11a42, 0x11a43, 1}, {0x11a9b, 0x11a9c, 1}, {0x11c41, 0x11c42, 1}, {0x11ef7, 0x11ef8, 1}, {0x11f43, 0x11f44, 1}, {0x16a6e, 0x16a6f, 1}, {0x16af5, 0x16b37, 66}, {0x16b38, 0x16b44, 12}, {0x16e98, 0x1bc9f, 19975}, {0x1da88, 0x1da88, 1}, }, LatinOffset: 1, } var _Soft_Dotted = &RangeTable{ R16: []Range16{ {0x0069, 0x006a, 1}, {0x012f, 0x0249, 282}, {0x0268, 0x029d, 53}, {0x02b2, 0x03f3, 321}, {0x0456, 0x0458, 2}, {0x1d62, 0x1d96, 52}, {0x1da4, 0x1da8, 4}, {0x1e2d, 0x1ecb, 158}, {0x2071, 0x2148, 215}, {0x2149, 0x2c7c, 2867}, }, R32: []Range32{ {0x1d422, 0x1d423, 1}, {0x1d456, 0x1d457, 1}, {0x1d48a, 0x1d48b, 1}, {0x1d4be, 0x1d4bf, 1}, {0x1d4f2, 0x1d4f3, 1}, {0x1d526, 0x1d527, 1}, {0x1d55a, 0x1d55b, 1}, {0x1d58e, 0x1d58f, 1}, {0x1d5c2, 0x1d5c3, 1}, {0x1d5f6, 0x1d5f7, 1}, {0x1d62a, 0x1d62b, 1}, {0x1d65e, 0x1d65f, 1}, {0x1d692, 0x1d693, 1}, {0x1df1a, 0x1e04c, 306}, {0x1e04d, 0x1e068, 27}, }, LatinOffset: 1, } var _Terminal_Punctuation = &RangeTable{ R16: []Range16{ {0x0021, 0x002c, 11}, {0x002e, 0x003a, 12}, {0x003b, 0x003f, 4}, {0x037e, 0x0387, 9}, {0x0589, 0x05c3, 58}, {0x060c, 0x061b, 15}, {0x061d, 0x061f, 1}, {0x06d4, 0x0700, 44}, {0x0701, 0x070a, 1}, {0x070c, 0x07f8, 236}, {0x07f9, 0x0830, 55}, {0x0831, 0x083e, 1}, {0x085e, 0x0964, 262}, {0x0965, 0x0e5a, 1269}, {0x0e5b, 0x0f08, 173}, {0x0f0d, 0x0f12, 1}, {0x104a, 0x104b, 1}, {0x1361, 0x1368, 1}, {0x166e, 0x16eb, 125}, {0x16ec, 0x16ed, 1}, {0x1735, 0x1736, 1}, {0x17d4, 0x17d6, 1}, {0x17da, 0x1802, 40}, {0x1803, 0x1805, 1}, {0x1808, 0x1809, 1}, {0x1944, 0x1945, 1}, {0x1aa8, 0x1aab, 1}, {0x1b5a, 0x1b5b, 1}, {0x1b5d, 0x1b5f, 1}, {0x1b7d, 0x1b7e, 1}, {0x1c3b, 0x1c3f, 1}, {0x1c7e, 0x1c7f, 1}, {0x203c, 0x203d, 1}, {0x2047, 0x2049, 1}, {0x2e2e, 0x2e3c, 14}, {0x2e41, 0x2e4c, 11}, {0x2e4e, 0x2e4f, 1}, {0x2e53, 0x2e54, 1}, {0x3001, 0x3002, 1}, {0xa4fe, 0xa4ff, 1}, {0xa60d, 0xa60f, 1}, {0xa6f3, 0xa6f7, 1}, {0xa876, 0xa877, 1}, {0xa8ce, 0xa8cf, 1}, {0xa92f, 0xa9c7, 152}, {0xa9c8, 0xa9c9, 1}, {0xaa5d, 0xaa5f, 1}, {0xaadf, 0xaaf0, 17}, {0xaaf1, 0xabeb, 250}, {0xfe50, 0xfe52, 1}, {0xfe54, 0xfe57, 1}, {0xff01, 0xff0c, 11}, {0xff0e, 0xff1a, 12}, {0xff1b, 0xff1f, 4}, {0xff61, 0xff64, 3}, }, R32: []Range32{ {0x1039f, 0x103d0, 49}, {0x10857, 0x1091f, 200}, {0x10a56, 0x10a57, 1}, {0x10af0, 0x10af5, 1}, {0x10b3a, 0x10b3f, 1}, {0x10b99, 0x10b9c, 1}, {0x10f55, 0x10f59, 1}, {0x10f86, 0x10f89, 1}, {0x11047, 0x1104d, 1}, {0x110be, 0x110c1, 1}, {0x11141, 0x11143, 1}, {0x111c5, 0x111c6, 1}, {0x111cd, 0x111de, 17}, {0x111df, 0x11238, 89}, {0x11239, 0x1123c, 1}, {0x112a9, 0x1144b, 418}, {0x1144c, 0x1144d, 1}, {0x1145a, 0x1145b, 1}, {0x115c2, 0x115c5, 1}, {0x115c9, 0x115d7, 1}, {0x11641, 0x11642, 1}, {0x1173c, 0x1173e, 1}, {0x11944, 0x11946, 2}, {0x11a42, 0x11a43, 1}, {0x11a9b, 0x11a9c, 1}, {0x11aa1, 0x11aa2, 1}, {0x11c41, 0x11c43, 1}, {0x11c71, 0x11ef7, 646}, {0x11ef8, 0x11f43, 75}, {0x11f44, 0x12470, 1324}, {0x12471, 0x12474, 1}, {0x16a6e, 0x16a6f, 1}, {0x16af5, 0x16b37, 66}, {0x16b38, 0x16b39, 1}, {0x16b44, 0x16e97, 851}, {0x16e98, 0x1bc9f, 19975}, {0x1da87, 0x1da8a, 1}, }, LatinOffset: 3, } var _Unified_Ideograph = &RangeTable{ R16: []Range16{ {0x3400, 0x4dbf, 1}, {0x4e00, 0x9fff, 1}, {0xfa0e, 0xfa0f, 1}, {0xfa11, 0xfa13, 2}, {0xfa14, 0xfa1f, 11}, {0xfa21, 0xfa23, 2}, {0xfa24, 0xfa27, 3}, {0xfa28, 0xfa29, 1}, }, R32: []Range32{ {0x20000, 0x2a6df, 1}, {0x2a700, 0x2b739, 1}, {0x2b740, 0x2b81d, 1}, {0x2b820, 0x2cea1, 1}, {0x2ceb0, 0x2ebe0, 1}, {0x30000, 0x3134a, 1}, {0x31350, 0x323af, 1}, }, } var _Variation_Selector = &RangeTable{ R16: []Range16{ {0x180b, 0x180d, 1}, {0x180f, 0xfe00, 58865}, {0xfe01, 0xfe0f, 1}, }, R32: []Range32{ {0xe0100, 0xe01ef, 1}, }, } var _White_Space = &RangeTable{ R16: []Range16{ {0x0009, 0x000d, 1}, {0x0020, 0x0085, 101}, {0x00a0, 0x1680, 5600}, {0x2000, 0x200a, 1}, {0x2028, 0x2029, 1}, {0x202f, 0x205f, 48}, {0x3000, 0x3000, 1}, }, LatinOffset: 2, } // These variables have type *RangeTable. var ( ASCII_Hex_Digit = _ASCII_Hex_Digit // ASCII_Hex_Digit is the set of Unicode characters with property ASCII_Hex_Digit. Bidi_Control = _Bidi_Control // Bidi_Control is the set of Unicode characters with property Bidi_Control. Dash = _Dash // Dash is the set of Unicode characters with property Dash. Deprecated = _Deprecated // Deprecated is the set of Unicode characters with property Deprecated. Diacritic = _Diacritic // Diacritic is the set of Unicode characters with property Diacritic. Extender = _Extender // Extender is the set of Unicode characters with property Extender. Hex_Digit = _Hex_Digit // Hex_Digit is the set of Unicode characters with property Hex_Digit. Hyphen = _Hyphen // Hyphen is the set of Unicode characters with property Hyphen. IDS_Binary_Operator = _IDS_Binary_Operator // IDS_Binary_Operator is the set of Unicode characters with property IDS_Binary_Operator. IDS_Trinary_Operator = _IDS_Trinary_Operator // IDS_Trinary_Operator is the set of Unicode characters with property IDS_Trinary_Operator. Ideographic = _Ideographic // Ideographic is the set of Unicode characters with property Ideographic. Join_Control = _Join_Control // Join_Control is the set of Unicode characters with property Join_Control. Logical_Order_Exception = _Logical_Order_Exception // Logical_Order_Exception is the set of Unicode characters with property Logical_Order_Exception. Noncharacter_Code_Point = _Noncharacter_Code_Point // Noncharacter_Code_Point is the set of Unicode characters with property Noncharacter_Code_Point. Other_Alphabetic = _Other_Alphabetic // Other_Alphabetic is the set of Unicode characters with property Other_Alphabetic. Other_Default_Ignorable_Code_Point = _Other_Default_Ignorable_Code_Point // Other_Default_Ignorable_Code_Point is the set of Unicode characters with property Other_Default_Ignorable_Code_Point. Other_Grapheme_Extend = _Other_Grapheme_Extend // Other_Grapheme_Extend is the set of Unicode characters with property Other_Grapheme_Extend. Other_ID_Continue = _Other_ID_Continue // Other_ID_Continue is the set of Unicode characters with property Other_ID_Continue. Other_ID_Start = _Other_ID_Start // Other_ID_Start is the set of Unicode characters with property Other_ID_Start. Other_Lowercase = _Other_Lowercase // Other_Lowercase is the set of Unicode characters with property Other_Lowercase. Other_Math = _Other_Math // Other_Math is the set of Unicode characters with property Other_Math. Other_Uppercase = _Other_Uppercase // Other_Uppercase is the set of Unicode characters with property Other_Uppercase. Pattern_Syntax = _Pattern_Syntax // Pattern_Syntax is the set of Unicode characters with property Pattern_Syntax. Pattern_White_Space = _Pattern_White_Space // Pattern_White_Space is the set of Unicode characters with property Pattern_White_Space. Prepended_Concatenation_Mark = _Prepended_Concatenation_Mark // Prepended_Concatenation_Mark is the set of Unicode characters with property Prepended_Concatenation_Mark. Quotation_Mark = _Quotation_Mark // Quotation_Mark is the set of Unicode characters with property Quotation_Mark. Radical = _Radical // Radical is the set of Unicode characters with property Radical. Regional_Indicator = _Regional_Indicator // Regional_Indicator is the set of Unicode characters with property Regional_Indicator. STerm = _Sentence_Terminal // STerm is an alias for Sentence_Terminal. Sentence_Terminal = _Sentence_Terminal // Sentence_Terminal is the set of Unicode characters with property Sentence_Terminal. Soft_Dotted = _Soft_Dotted // Soft_Dotted is the set of Unicode characters with property Soft_Dotted. Terminal_Punctuation = _Terminal_Punctuation // Terminal_Punctuation is the set of Unicode characters with property Terminal_Punctuation. Unified_Ideograph = _Unified_Ideograph // Unified_Ideograph is the set of Unicode characters with property Unified_Ideograph. Variation_Selector = _Variation_Selector // Variation_Selector is the set of Unicode characters with property Variation_Selector. White_Space = _White_Space // White_Space is the set of Unicode characters with property White_Space. ) // CaseRanges is the table describing case mappings for all letters with // non-self mappings. var CaseRanges = _CaseRanges var _CaseRanges = []CaseRange{ {0x0041, 0x005A, d{0, 32, 0}}, {0x0061, 0x007A, d{-32, 0, -32}}, {0x00B5, 0x00B5, d{743, 0, 743}}, {0x00C0, 0x00D6, d{0, 32, 0}}, {0x00D8, 0x00DE, d{0, 32, 0}}, {0x00E0, 0x00F6, d{-32, 0, -32}}, {0x00F8, 0x00FE, d{-32, 0, -32}}, {0x00FF, 0x00FF, d{121, 0, 121}}, {0x0100, 0x012F, d{UpperLower, UpperLower, UpperLower}}, {0x0130, 0x0130, d{0, -199, 0}}, {0x0131, 0x0131, d{-232, 0, -232}}, {0x0132, 0x0137, d{UpperLower, UpperLower, UpperLower}}, {0x0139, 0x0148, d{UpperLower, UpperLower, UpperLower}}, {0x014A, 0x0177, d{UpperLower, UpperLower, UpperLower}}, {0x0178, 0x0178, d{0, -121, 0}}, {0x0179, 0x017E, d{UpperLower, UpperLower, UpperLower}}, {0x017F, 0x017F, d{-300, 0, -300}}, {0x0180, 0x0180, d{195, 0, 195}}, {0x0181, 0x0181, d{0, 210, 0}}, {0x0182, 0x0185, d{UpperLower, UpperLower, UpperLower}}, {0x0186, 0x0186, d{0, 206, 0}}, {0x0187, 0x0188, d{UpperLower, UpperLower, UpperLower}}, {0x0189, 0x018A, d{0, 205, 0}}, {0x018B, 0x018C, d{UpperLower, UpperLower, UpperLower}}, {0x018E, 0x018E, d{0, 79, 0}}, {0x018F, 0x018F, d{0, 202, 0}}, {0x0190, 0x0190, d{0, 203, 0}}, {0x0191, 0x0192, d{UpperLower, UpperLower, UpperLower}}, {0x0193, 0x0193, d{0, 205, 0}}, {0x0194, 0x0194, d{0, 207, 0}}, {0x0195, 0x0195, d{97, 0, 97}}, {0x0196, 0x0196, d{0, 211, 0}}, {0x0197, 0x0197, d{0, 209, 0}}, {0x0198, 0x0199, d{UpperLower, UpperLower, UpperLower}}, {0x019A, 0x019A, d{163, 0, 163}}, {0x019C, 0x019C, d{0, 211, 0}}, {0x019D, 0x019D, d{0, 213, 0}}, {0x019E, 0x019E, d{130, 0, 130}}, {0x019F, 0x019F, d{0, 214, 0}}, {0x01A0, 0x01A5, d{UpperLower, UpperLower, UpperLower}}, {0x01A6, 0x01A6, d{0, 218, 0}}, {0x01A7, 0x01A8, d{UpperLower, UpperLower, UpperLower}}, {0x01A9, 0x01A9, d{0, 218, 0}}, {0x01AC, 0x01AD, d{UpperLower, UpperLower, UpperLower}}, {0x01AE, 0x01AE, d{0, 218, 0}}, {0x01AF, 0x01B0, d{UpperLower, UpperLower, UpperLower}}, {0x01B1, 0x01B2, d{0, 217, 0}}, {0x01B3, 0x01B6, d{UpperLower, UpperLower, UpperLower}}, {0x01B7, 0x01B7, d{0, 219, 0}}, {0x01B8, 0x01B9, d{UpperLower, UpperLower, UpperLower}}, {0x01BC, 0x01BD, d{UpperLower, UpperLower, UpperLower}}, {0x01BF, 0x01BF, d{56, 0, 56}}, {0x01C4, 0x01C4, d{0, 2, 1}}, {0x01C5, 0x01C5, d{-1, 1, 0}}, {0x01C6, 0x01C6, d{-2, 0, -1}}, {0x01C7, 0x01C7, d{0, 2, 1}}, {0x01C8, 0x01C8, d{-1, 1, 0}}, {0x01C9, 0x01C9, d{-2, 0, -1}}, {0x01CA, 0x01CA, d{0, 2, 1}}, {0x01CB, 0x01CB, d{-1, 1, 0}}, {0x01CC, 0x01CC, d{-2, 0, -1}}, {0x01CD, 0x01DC, d{UpperLower, UpperLower, UpperLower}}, {0x01DD, 0x01DD, d{-79, 0, -79}}, {0x01DE, 0x01EF, d{UpperLower, UpperLower, UpperLower}}, {0x01F1, 0x01F1, d{0, 2, 1}}, {0x01F2, 0x01F2, d{-1, 1, 0}}, {0x01F3, 0x01F3, d{-2, 0, -1}}, {0x01F4, 0x01F5, d{UpperLower, UpperLower, UpperLower}}, {0x01F6, 0x01F6, d{0, -97, 0}}, {0x01F7, 0x01F7, d{0, -56, 0}}, {0x01F8, 0x021F, d{UpperLower, UpperLower, UpperLower}}, {0x0220, 0x0220, d{0, -130, 0}}, {0x0222, 0x0233, d{UpperLower, UpperLower, UpperLower}}, {0x023A, 0x023A, d{0, 10795, 0}}, {0x023B, 0x023C, d{UpperLower, UpperLower, UpperLower}}, {0x023D, 0x023D, d{0, -163, 0}}, {0x023E, 0x023E, d{0, 10792, 0}}, {0x023F, 0x0240, d{10815, 0, 10815}}, {0x0241, 0x0242, d{UpperLower, UpperLower, UpperLower}}, {0x0243, 0x0243, d{0, -195, 0}}, {0x0244, 0x0244, d{0, 69, 0}}, {0x0245, 0x0245, d{0, 71, 0}}, {0x0246, 0x024F, d{UpperLower, UpperLower, UpperLower}}, {0x0250, 0x0250, d{10783, 0, 10783}}, {0x0251, 0x0251, d{10780, 0, 10780}}, {0x0252, 0x0252, d{10782, 0, 10782}}, {0x0253, 0x0253, d{-210, 0, -210}}, {0x0254, 0x0254, d{-206, 0, -206}}, {0x0256, 0x0257, d{-205, 0, -205}}, {0x0259, 0x0259, d{-202, 0, -202}}, {0x025B, 0x025B, d{-203, 0, -203}}, {0x025C, 0x025C, d{42319, 0, 42319}}, {0x0260, 0x0260, d{-205, 0, -205}}, {0x0261, 0x0261, d{42315, 0, 42315}}, {0x0263, 0x0263, d{-207, 0, -207}}, {0x0265, 0x0265, d{42280, 0, 42280}}, {0x0266, 0x0266, d{42308, 0, 42308}}, {0x0268, 0x0268, d{-209, 0, -209}}, {0x0269, 0x0269, d{-211, 0, -211}}, {0x026A, 0x026A, d{42308, 0, 42308}}, {0x026B, 0x026B, d{10743, 0, 10743}}, {0x026C, 0x026C, d{42305, 0, 42305}}, {0x026F, 0x026F, d{-211, 0, -211}}, {0x0271, 0x0271, d{10749, 0, 10749}}, {0x0272, 0x0272, d{-213, 0, -213}}, {0x0275, 0x0275, d{-214, 0, -214}}, {0x027D, 0x027D, d{10727, 0, 10727}}, {0x0280, 0x0280, d{-218, 0, -218}}, {0x0282, 0x0282, d{42307, 0, 42307}}, {0x0283, 0x0283, d{-218, 0, -218}}, {0x0287, 0x0287, d{42282, 0, 42282}}, {0x0288, 0x0288, d{-218, 0, -218}}, {0x0289, 0x0289, d{-69, 0, -69}}, {0x028A, 0x028B, d{-217, 0, -217}}, {0x028C, 0x028C, d{-71, 0, -71}}, {0x0292, 0x0292, d{-219, 0, -219}}, {0x029D, 0x029D, d{42261, 0, 42261}}, {0x029E, 0x029E, d{42258, 0, 42258}}, {0x0345, 0x0345, d{84, 0, 84}}, {0x0370, 0x0373, d{UpperLower, UpperLower, UpperLower}}, {0x0376, 0x0377, d{UpperLower, UpperLower, UpperLower}}, {0x037B, 0x037D, d{130, 0, 130}}, {0x037F, 0x037F, d{0, 116, 0}}, {0x0386, 0x0386, d{0, 38, 0}}, {0x0388, 0x038A, d{0, 37, 0}}, {0x038C, 0x038C, d{0, 64, 0}}, {0x038E, 0x038F, d{0, 63, 0}}, {0x0391, 0x03A1, d{0, 32, 0}}, {0x03A3, 0x03AB, d{0, 32, 0}}, {0x03AC, 0x03AC, d{-38, 0, -38}}, {0x03AD, 0x03AF, d{-37, 0, -37}}, {0x03B1, 0x03C1, d{-32, 0, -32}}, {0x03C2, 0x03C2, d{-31, 0, -31}}, {0x03C3, 0x03CB, d{-32, 0, -32}}, {0x03CC, 0x03CC, d{-64, 0, -64}}, {0x03CD, 0x03CE, d{-63, 0, -63}}, {0x03CF, 0x03CF, d{0, 8, 0}}, {0x03D0, 0x03D0, d{-62, 0, -62}}, {0x03D1, 0x03D1, d{-57, 0, -57}}, {0x03D5, 0x03D5, d{-47, 0, -47}}, {0x03D6, 0x03D6, d{-54, 0, -54}}, {0x03D7, 0x03D7, d{-8, 0, -8}}, {0x03D8, 0x03EF, d{UpperLower, UpperLower, UpperLower}}, {0x03F0, 0x03F0, d{-86, 0, -86}}, {0x03F1, 0x03F1, d{-80, 0, -80}}, {0x03F2, 0x03F2, d{7, 0, 7}}, {0x03F3, 0x03F3, d{-116, 0, -116}}, {0x03F4, 0x03F4, d{0, -60, 0}}, {0x03F5, 0x03F5, d{-96, 0, -96}}, {0x03F7, 0x03F8, d{UpperLower, UpperLower, UpperLower}}, {0x03F9, 0x03F9, d{0, -7, 0}}, {0x03FA, 0x03FB, d{UpperLower, UpperLower, UpperLower}}, {0x03FD, 0x03FF, d{0, -130, 0}}, {0x0400, 0x040F, d{0, 80, 0}}, {0x0410, 0x042F, d{0, 32, 0}}, {0x0430, 0x044F, d{-32, 0, -32}}, {0x0450, 0x045F, d{-80, 0, -80}}, {0x0460, 0x0481, d{UpperLower, UpperLower, UpperLower}}, {0x048A, 0x04BF, d{UpperLower, UpperLower, UpperLower}}, {0x04C0, 0x04C0, d{0, 15, 0}}, {0x04C1, 0x04CE, d{UpperLower, UpperLower, UpperLower}}, {0x04CF, 0x04CF, d{-15, 0, -15}}, {0x04D0, 0x052F, d{UpperLower, UpperLower, UpperLower}}, {0x0531, 0x0556, d{0, 48, 0}}, {0x0561, 0x0586, d{-48, 0, -48}}, {0x10A0, 0x10C5, d{0, 7264, 0}}, {0x10C7, 0x10C7, d{0, 7264, 0}}, {0x10CD, 0x10CD, d{0, 7264, 0}}, {0x10D0, 0x10FA, d{3008, 0, 0}}, {0x10FD, 0x10FF, d{3008, 0, 0}}, {0x13A0, 0x13EF, d{0, 38864, 0}}, {0x13F0, 0x13F5, d{0, 8, 0}}, {0x13F8, 0x13FD, d{-8, 0, -8}}, {0x1C80, 0x1C80, d{-6254, 0, -6254}}, {0x1C81, 0x1C81, d{-6253, 0, -6253}}, {0x1C82, 0x1C82, d{-6244, 0, -6244}}, {0x1C83, 0x1C84, d{-6242, 0, -6242}}, {0x1C85, 0x1C85, d{-6243, 0, -6243}}, {0x1C86, 0x1C86, d{-6236, 0, -6236}}, {0x1C87, 0x1C87, d{-6181, 0, -6181}}, {0x1C88, 0x1C88, d{35266, 0, 35266}}, {0x1C90, 0x1CBA, d{0, -3008, 0}}, {0x1CBD, 0x1CBF, d{0, -3008, 0}}, {0x1D79, 0x1D79, d{35332, 0, 35332}}, {0x1D7D, 0x1D7D, d{3814, 0, 3814}}, {0x1D8E, 0x1D8E, d{35384, 0, 35384}}, {0x1E00, 0x1E95, d{UpperLower, UpperLower, UpperLower}}, {0x1E9B, 0x1E9B, d{-59, 0, -59}}, {0x1E9E, 0x1E9E, d{0, -7615, 0}}, {0x1EA0, 0x1EFF, d{UpperLower, UpperLower, UpperLower}}, {0x1F00, 0x1F07, d{8, 0, 8}}, {0x1F08, 0x1F0F, d{0, -8, 0}}, {0x1F10, 0x1F15, d{8, 0, 8}}, {0x1F18, 0x1F1D, d{0, -8, 0}}, {0x1F20, 0x1F27, d{8, 0, 8}}, {0x1F28, 0x1F2F, d{0, -8, 0}}, {0x1F30, 0x1F37, d{8, 0, 8}}, {0x1F38, 0x1F3F, d{0, -8, 0}}, {0x1F40, 0x1F45, d{8, 0, 8}}, {0x1F48, 0x1F4D, d{0, -8, 0}}, {0x1F51, 0x1F51, d{8, 0, 8}}, {0x1F53, 0x1F53, d{8, 0, 8}}, {0x1F55, 0x1F55, d{8, 0, 8}}, {0x1F57, 0x1F57, d{8, 0, 8}}, {0x1F59, 0x1F59, d{0, -8, 0}}, {0x1F5B, 0x1F5B, d{0, -8, 0}}, {0x1F5D, 0x1F5D, d{0, -8, 0}}, {0x1F5F, 0x1F5F, d{0, -8, 0}}, {0x1F60, 0x1F67, d{8, 0, 8}}, {0x1F68, 0x1F6F, d{0, -8, 0}}, {0x1F70, 0x1F71, d{74, 0, 74}}, {0x1F72, 0x1F75, d{86, 0, 86}}, {0x1F76, 0x1F77, d{100, 0, 100}}, {0x1F78, 0x1F79, d{128, 0, 128}}, {0x1F7A, 0x1F7B, d{112, 0, 112}}, {0x1F7C, 0x1F7D, d{126, 0, 126}}, {0x1F80, 0x1F87, d{8, 0, 8}}, {0x1F88, 0x1F8F, d{0, -8, 0}}, {0x1F90, 0x1F97, d{8, 0, 8}}, {0x1F98, 0x1F9F, d{0, -8, 0}}, {0x1FA0, 0x1FA7, d{8, 0, 8}}, {0x1FA8, 0x1FAF, d{0, -8, 0}}, {0x1FB0, 0x1FB1, d{8, 0, 8}}, {0x1FB3, 0x1FB3, d{9, 0, 9}}, {0x1FB8, 0x1FB9, d{0, -8, 0}}, {0x1FBA, 0x1FBB, d{0, -74, 0}}, {0x1FBC, 0x1FBC, d{0, -9, 0}}, {0x1FBE, 0x1FBE, d{-7205, 0, -7205}}, {0x1FC3, 0x1FC3, d{9, 0, 9}}, {0x1FC8, 0x1FCB, d{0, -86, 0}}, {0x1FCC, 0x1FCC, d{0, -9, 0}}, {0x1FD0, 0x1FD1, d{8, 0, 8}}, {0x1FD8, 0x1FD9, d{0, -8, 0}}, {0x1FDA, 0x1FDB, d{0, -100, 0}}, {0x1FE0, 0x1FE1, d{8, 0, 8}}, {0x1FE5, 0x1FE5, d{7, 0, 7}}, {0x1FE8, 0x1FE9, d{0, -8, 0}}, {0x1FEA, 0x1FEB, d{0, -112, 0}}, {0x1FEC, 0x1FEC, d{0, -7, 0}}, {0x1FF3, 0x1FF3, d{9, 0, 9}}, {0x1FF8, 0x1FF9, d{0, -128, 0}}, {0x1FFA, 0x1FFB, d{0, -126, 0}}, {0x1FFC, 0x1FFC, d{0, -9, 0}}, {0x2126, 0x2126, d{0, -7517, 0}}, {0x212A, 0x212A, d{0, -8383, 0}}, {0x212B, 0x212B, d{0, -8262, 0}}, {0x2132, 0x2132, d{0, 28, 0}}, {0x214E, 0x214E, d{-28, 0, -28}}, {0x2160, 0x216F, d{0, 16, 0}}, {0x2170, 0x217F, d{-16, 0, -16}}, {0x2183, 0x2184, d{UpperLower, UpperLower, UpperLower}}, {0x24B6, 0x24CF, d{0, 26, 0}}, {0x24D0, 0x24E9, d{-26, 0, -26}}, {0x2C00, 0x2C2F, d{0, 48, 0}}, {0x2C30, 0x2C5F, d{-48, 0, -48}}, {0x2C60, 0x2C61, d{UpperLower, UpperLower, UpperLower}}, {0x2C62, 0x2C62, d{0, -10743, 0}}, {0x2C63, 0x2C63, d{0, -3814, 0}}, {0x2C64, 0x2C64, d{0, -10727, 0}}, {0x2C65, 0x2C65, d{-10795, 0, -10795}}, {0x2C66, 0x2C66, d{-10792, 0, -10792}}, {0x2C67, 0x2C6C, d{UpperLower, UpperLower, UpperLower}}, {0x2C6D, 0x2C6D, d{0, -10780, 0}}, {0x2C6E, 0x2C6E, d{0, -10749, 0}}, {0x2C6F, 0x2C6F, d{0, -10783, 0}}, {0x2C70, 0x2C70, d{0, -10782, 0}}, {0x2C72, 0x2C73, d{UpperLower, UpperLower, UpperLower}}, {0x2C75, 0x2C76, d{UpperLower, UpperLower, UpperLower}}, {0x2C7E, 0x2C7F, d{0, -10815, 0}}, {0x2C80, 0x2CE3, d{UpperLower, UpperLower, UpperLower}}, {0x2CEB, 0x2CEE, d{UpperLower, UpperLower, UpperLower}}, {0x2CF2, 0x2CF3, d{UpperLower, UpperLower, UpperLower}}, {0x2D00, 0x2D25, d{-7264, 0, -7264}}, {0x2D27, 0x2D27, d{-7264, 0, -7264}}, {0x2D2D, 0x2D2D, d{-7264, 0, -7264}}, {0xA640, 0xA66D, d{UpperLower, UpperLower, UpperLower}}, {0xA680, 0xA69B, d{UpperLower, UpperLower, UpperLower}}, {0xA722, 0xA72F, d{UpperLower, UpperLower, UpperLower}}, {0xA732, 0xA76F, d{UpperLower, UpperLower, UpperLower}}, {0xA779, 0xA77C, d{UpperLower, UpperLower, UpperLower}}, {0xA77D, 0xA77D, d{0, -35332, 0}}, {0xA77E, 0xA787, d{UpperLower, UpperLower, UpperLower}}, {0xA78B, 0xA78C, d{UpperLower, UpperLower, UpperLower}}, {0xA78D, 0xA78D, d{0, -42280, 0}}, {0xA790, 0xA793, d{UpperLower, UpperLower, UpperLower}}, {0xA794, 0xA794, d{48, 0, 48}}, {0xA796, 0xA7A9, d{UpperLower, UpperLower, UpperLower}}, {0xA7AA, 0xA7AA, d{0, -42308, 0}}, {0xA7AB, 0xA7AB, d{0, -42319, 0}}, {0xA7AC, 0xA7AC, d{0, -42315, 0}}, {0xA7AD, 0xA7AD, d{0, -42305, 0}}, {0xA7AE, 0xA7AE, d{0, -42308, 0}}, {0xA7B0, 0xA7B0, d{0, -42258, 0}}, {0xA7B1, 0xA7B1, d{0, -42282, 0}}, {0xA7B2, 0xA7B2, d{0, -42261, 0}}, {0xA7B3, 0xA7B3, d{0, 928, 0}}, {0xA7B4, 0xA7C3, d{UpperLower, UpperLower, UpperLower}}, {0xA7C4, 0xA7C4, d{0, -48, 0}}, {0xA7C5, 0xA7C5, d{0, -42307, 0}}, {0xA7C6, 0xA7C6, d{0, -35384, 0}}, {0xA7C7, 0xA7CA, d{UpperLower, UpperLower, UpperLower}}, {0xA7D0, 0xA7D1, d{UpperLower, UpperLower, UpperLower}}, {0xA7D6, 0xA7D9, d{UpperLower, UpperLower, UpperLower}}, {0xA7F5, 0xA7F6, d{UpperLower, UpperLower, UpperLower}}, {0xAB53, 0xAB53, d{-928, 0, -928}}, {0xAB70, 0xABBF, d{-38864, 0, -38864}}, {0xFF21, 0xFF3A, d{0, 32, 0}}, {0xFF41, 0xFF5A, d{-32, 0, -32}}, {0x10400, 0x10427, d{0, 40, 0}}, {0x10428, 0x1044F, d{-40, 0, -40}}, {0x104B0, 0x104D3, d{0, 40, 0}}, {0x104D8, 0x104FB, d{-40, 0, -40}}, {0x10570, 0x1057A, d{0, 39, 0}}, {0x1057C, 0x1058A, d{0, 39, 0}}, {0x1058C, 0x10592, d{0, 39, 0}}, {0x10594, 0x10595, d{0, 39, 0}}, {0x10597, 0x105A1, d{-39, 0, -39}}, {0x105A3, 0x105B1, d{-39, 0, -39}}, {0x105B3, 0x105B9, d{-39, 0, -39}}, {0x105BB, 0x105BC, d{-39, 0, -39}}, {0x10C80, 0x10CB2, d{0, 64, 0}}, {0x10CC0, 0x10CF2, d{-64, 0, -64}}, {0x118A0, 0x118BF, d{0, 32, 0}}, {0x118C0, 0x118DF, d{-32, 0, -32}}, {0x16E40, 0x16E5F, d{0, 32, 0}}, {0x16E60, 0x16E7F, d{-32, 0, -32}}, {0x1E900, 0x1E921, d{0, 34, 0}}, {0x1E922, 0x1E943, d{-34, 0, -34}}, } var properties = [MaxLatin1 + 1]uint8{ 0x00: pC, // '\x00' 0x01: pC, // '\x01' 0x02: pC, // '\x02' 0x03: pC, // '\x03' 0x04: pC, // '\x04' 0x05: pC, // '\x05' 0x06: pC, // '\x06' 0x07: pC, // '\a' 0x08: pC, // '\b' 0x09: pC, // '\t' 0x0A: pC, // '\n' 0x0B: pC, // '\v' 0x0C: pC, // '\f' 0x0D: pC, // '\r' 0x0E: pC, // '\x0e' 0x0F: pC, // '\x0f' 0x10: pC, // '\x10' 0x11: pC, // '\x11' 0x12: pC, // '\x12' 0x13: pC, // '\x13' 0x14: pC, // '\x14' 0x15: pC, // '\x15' 0x16: pC, // '\x16' 0x17: pC, // '\x17' 0x18: pC, // '\x18' 0x19: pC, // '\x19' 0x1A: pC, // '\x1a' 0x1B: pC, // '\x1b' 0x1C: pC, // '\x1c' 0x1D: pC, // '\x1d' 0x1E: pC, // '\x1e' 0x1F: pC, // '\x1f' 0x20: pZ | pp, // ' ' 0x21: pP | pp, // '!' 0x22: pP | pp, // '"' 0x23: pP | pp, // '#' 0x24: pS | pp, // '$' 0x25: pP | pp, // '%' 0x26: pP | pp, // '&' 0x27: pP | pp, // '\'' 0x28: pP | pp, // '(' 0x29: pP | pp, // ')' 0x2A: pP | pp, // '*' 0x2B: pS | pp, // '+' 0x2C: pP | pp, // ',' 0x2D: pP | pp, // '-' 0x2E: pP | pp, // '.' 0x2F: pP | pp, // '/' 0x30: pN | pp, // '0' 0x31: pN | pp, // '1' 0x32: pN | pp, // '2' 0x33: pN | pp, // '3' 0x34: pN | pp, // '4' 0x35: pN | pp, // '5' 0x36: pN | pp, // '6' 0x37: pN | pp, // '7' 0x38: pN | pp, // '8' 0x39: pN | pp, // '9' 0x3A: pP | pp, // ':' 0x3B: pP | pp, // ';' 0x3C: pS | pp, // '<' 0x3D: pS | pp, // '=' 0x3E: pS | pp, // '>' 0x3F: pP | pp, // '?' 0x40: pP | pp, // '@' 0x41: pLu | pp, // 'A' 0x42: pLu | pp, // 'B' 0x43: pLu | pp, // 'C' 0x44: pLu | pp, // 'D' 0x45: pLu | pp, // 'E' 0x46: pLu | pp, // 'F' 0x47: pLu | pp, // 'G' 0x48: pLu | pp, // 'H' 0x49: pLu | pp, // 'I' 0x4A: pLu | pp, // 'J' 0x4B: pLu | pp, // 'K' 0x4C: pLu | pp, // 'L' 0x4D: pLu | pp, // 'M' 0x4E: pLu | pp, // 'N' 0x4F: pLu | pp, // 'O' 0x50: pLu | pp, // 'P' 0x51: pLu | pp, // 'Q' 0x52: pLu | pp, // 'R' 0x53: pLu | pp, // 'S' 0x54: pLu | pp, // 'T' 0x55: pLu | pp, // 'U' 0x56: pLu | pp, // 'V' 0x57: pLu | pp, // 'W' 0x58: pLu | pp, // 'X' 0x59: pLu | pp, // 'Y' 0x5A: pLu | pp, // 'Z' 0x5B: pP | pp, // '[' 0x5C: pP | pp, // '\\' 0x5D: pP | pp, // ']' 0x5E: pS | pp, // '^' 0x5F: pP | pp, // '_' 0x60: pS | pp, // '`' 0x61: pLl | pp, // 'a' 0x62: pLl | pp, // 'b' 0x63: pLl | pp, // 'c' 0x64: pLl | pp, // 'd' 0x65: pLl | pp, // 'e' 0x66: pLl | pp, // 'f' 0x67: pLl | pp, // 'g' 0x68: pLl | pp, // 'h' 0x69: pLl | pp, // 'i' 0x6A: pLl | pp, // 'j' 0x6B: pLl | pp, // 'k' 0x6C: pLl | pp, // 'l' 0x6D: pLl | pp, // 'm' 0x6E: pLl | pp, // 'n' 0x6F: pLl | pp, // 'o' 0x70: pLl | pp, // 'p' 0x71: pLl | pp, // 'q' 0x72: pLl | pp, // 'r' 0x73: pLl | pp, // 's' 0x74: pLl | pp, // 't' 0x75: pLl | pp, // 'u' 0x76: pLl | pp, // 'v' 0x77: pLl | pp, // 'w' 0x78: pLl | pp, // 'x' 0x79: pLl | pp, // 'y' 0x7A: pLl | pp, // 'z' 0x7B: pP | pp, // '{' 0x7C: pS | pp, // '|' 0x7D: pP | pp, // '}' 0x7E: pS | pp, // '~' 0x7F: pC, // '\x7f' 0x80: pC, // '\u0080' 0x81: pC, // '\u0081' 0x82: pC, // '\u0082' 0x83: pC, // '\u0083' 0x84: pC, // '\u0084' 0x85: pC, // '\u0085' 0x86: pC, // '\u0086' 0x87: pC, // '\u0087' 0x88: pC, // '\u0088' 0x89: pC, // '\u0089' 0x8A: pC, // '\u008a' 0x8B: pC, // '\u008b' 0x8C: pC, // '\u008c' 0x8D: pC, // '\u008d' 0x8E: pC, // '\u008e' 0x8F: pC, // '\u008f' 0x90: pC, // '\u0090' 0x91: pC, // '\u0091' 0x92: pC, // '\u0092' 0x93: pC, // '\u0093' 0x94: pC, // '\u0094' 0x95: pC, // '\u0095' 0x96: pC, // '\u0096' 0x97: pC, // '\u0097' 0x98: pC, // '\u0098' 0x99: pC, // '\u0099' 0x9A: pC, // '\u009a' 0x9B: pC, // '\u009b' 0x9C: pC, // '\u009c' 0x9D: pC, // '\u009d' 0x9E: pC, // '\u009e' 0x9F: pC, // '\u009f' 0xA0: pZ, // '\u00a0' 0xA1: pP | pp, // '¡' 0xA2: pS | pp, // '¢' 0xA3: pS | pp, // '£' 0xA4: pS | pp, // '¤' 0xA5: pS | pp, // '¥' 0xA6: pS | pp, // '¦' 0xA7: pP | pp, // '§' 0xA8: pS | pp, // '¨' 0xA9: pS | pp, // '©' 0xAA: pLo | pp, // 'ª' 0xAB: pP | pp, // '«' 0xAC: pS | pp, // '¬' 0xAD: 0, // '\u00ad' 0xAE: pS | pp, // '®' 0xAF: pS | pp, // '¯' 0xB0: pS | pp, // '°' 0xB1: pS | pp, // '±' 0xB2: pN | pp, // '²' 0xB3: pN | pp, // '³' 0xB4: pS | pp, // '´' 0xB5: pLl | pp, // 'µ' 0xB6: pP | pp, // '¶' 0xB7: pP | pp, // '·' 0xB8: pS | pp, // '¸' 0xB9: pN | pp, // '¹' 0xBA: pLo | pp, // 'º' 0xBB: pP | pp, // '»' 0xBC: pN | pp, // '¼' 0xBD: pN | pp, // '½' 0xBE: pN | pp, // '¾' 0xBF: pP | pp, // '¿' 0xC0: pLu | pp, // 'À' 0xC1: pLu | pp, // 'Á' 0xC2: pLu | pp, // 'Â' 0xC3: pLu | pp, // 'Ã' 0xC4: pLu | pp, // 'Ä' 0xC5: pLu | pp, // 'Å' 0xC6: pLu | pp, // 'Æ' 0xC7: pLu | pp, // 'Ç' 0xC8: pLu | pp, // 'È' 0xC9: pLu | pp, // 'É' 0xCA: pLu | pp, // 'Ê' 0xCB: pLu | pp, // 'Ë' 0xCC: pLu | pp, // 'Ì' 0xCD: pLu | pp, // 'Í' 0xCE: pLu | pp, // 'Î' 0xCF: pLu | pp, // 'Ï' 0xD0: pLu | pp, // 'Ð' 0xD1: pLu | pp, // 'Ñ' 0xD2: pLu | pp, // 'Ò' 0xD3: pLu | pp, // 'Ó' 0xD4: pLu | pp, // 'Ô' 0xD5: pLu | pp, // 'Õ' 0xD6: pLu | pp, // 'Ö' 0xD7: pS | pp, // '×' 0xD8: pLu | pp, // 'Ø' 0xD9: pLu | pp, // 'Ù' 0xDA: pLu | pp, // 'Ú' 0xDB: pLu | pp, // 'Û' 0xDC: pLu | pp, // 'Ü' 0xDD: pLu | pp, // 'Ý' 0xDE: pLu | pp, // 'Þ' 0xDF: pLl | pp, // 'ß' 0xE0: pLl | pp, // 'à' 0xE1: pLl | pp, // 'á' 0xE2: pLl | pp, // 'â' 0xE3: pLl | pp, // 'ã' 0xE4: pLl | pp, // 'ä' 0xE5: pLl | pp, // 'å' 0xE6: pLl | pp, // 'æ' 0xE7: pLl | pp, // 'ç' 0xE8: pLl | pp, // 'è' 0xE9: pLl | pp, // 'é' 0xEA: pLl | pp, // 'ê' 0xEB: pLl | pp, // 'ë' 0xEC: pLl | pp, // 'ì' 0xED: pLl | pp, // 'í' 0xEE: pLl | pp, // 'î' 0xEF: pLl | pp, // 'ï' 0xF0: pLl | pp, // 'ð' 0xF1: pLl | pp, // 'ñ' 0xF2: pLl | pp, // 'ò' 0xF3: pLl | pp, // 'ó' 0xF4: pLl | pp, // 'ô' 0xF5: pLl | pp, // 'õ' 0xF6: pLl | pp, // 'ö' 0xF7: pS | pp, // '÷' 0xF8: pLl | pp, // 'ø' 0xF9: pLl | pp, // 'ù' 0xFA: pLl | pp, // 'ú' 0xFB: pLl | pp, // 'û' 0xFC: pLl | pp, // 'ü' 0xFD: pLl | pp, // 'ý' 0xFE: pLl | pp, // 'þ' 0xFF: pLl | pp, // 'ÿ' } var asciiFold = [MaxASCII + 1]uint16{ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F, 0x0040, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007A, 0x005B, 0x005C, 0x005D, 0x005E, 0x005F, 0x0060, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004A, 0x212A, 0x004C, 0x004D, 0x004E, 0x004F, 0x0050, 0x0051, 0x0052, 0x017F, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005A, 0x007B, 0x007C, 0x007D, 0x007E, 0x007F, } var caseOrbit = []foldPair{ {0x004B, 0x006B}, {0x0053, 0x0073}, {0x006B, 0x212A}, {0x0073, 0x017F}, {0x00B5, 0x039C}, {0x00C5, 0x00E5}, {0x00DF, 0x1E9E}, {0x00E5, 0x212B}, {0x0130, 0x0130}, {0x0131, 0x0131}, {0x017F, 0x0053}, {0x01C4, 0x01C5}, {0x01C5, 0x01C6}, {0x01C6, 0x01C4}, {0x01C7, 0x01C8}, {0x01C8, 0x01C9}, {0x01C9, 0x01C7}, {0x01CA, 0x01CB}, {0x01CB, 0x01CC}, {0x01CC, 0x01CA}, {0x01F1, 0x01F2}, {0x01F2, 0x01F3}, {0x01F3, 0x01F1}, {0x0345, 0x0399}, {0x0392, 0x03B2}, {0x0395, 0x03B5}, {0x0398, 0x03B8}, {0x0399, 0x03B9}, {0x039A, 0x03BA}, {0x039C, 0x03BC}, {0x03A0, 0x03C0}, {0x03A1, 0x03C1}, {0x03A3, 0x03C2}, {0x03A6, 0x03C6}, {0x03A9, 0x03C9}, {0x03B2, 0x03D0}, {0x03B5, 0x03F5}, {0x03B8, 0x03D1}, {0x03B9, 0x1FBE}, {0x03BA, 0x03F0}, {0x03BC, 0x00B5}, {0x03C0, 0x03D6}, {0x03C1, 0x03F1}, {0x03C2, 0x03C3}, {0x03C3, 0x03A3}, {0x03C6, 0x03D5}, {0x03C9, 0x2126}, {0x03D0, 0x0392}, {0x03D1, 0x03F4}, {0x03D5, 0x03A6}, {0x03D6, 0x03A0}, {0x03F0, 0x039A}, {0x03F1, 0x03A1}, {0x03F4, 0x0398}, {0x03F5, 0x0395}, {0x0412, 0x0432}, {0x0414, 0x0434}, {0x041E, 0x043E}, {0x0421, 0x0441}, {0x0422, 0x0442}, {0x042A, 0x044A}, {0x0432, 0x1C80}, {0x0434, 0x1C81}, {0x043E, 0x1C82}, {0x0441, 0x1C83}, {0x0442, 0x1C84}, {0x044A, 0x1C86}, {0x0462, 0x0463}, {0x0463, 0x1C87}, {0x1C80, 0x0412}, {0x1C81, 0x0414}, {0x1C82, 0x041E}, {0x1C83, 0x0421}, {0x1C84, 0x1C85}, {0x1C85, 0x0422}, {0x1C86, 0x042A}, {0x1C87, 0x0462}, {0x1C88, 0xA64A}, {0x1E60, 0x1E61}, {0x1E61, 0x1E9B}, {0x1E9B, 0x1E60}, {0x1E9E, 0x00DF}, {0x1FBE, 0x0345}, {0x2126, 0x03A9}, {0x212A, 0x004B}, {0x212B, 0x00C5}, {0xA64A, 0xA64B}, {0xA64B, 0x1C88}, } // FoldCategory maps a category name to a table of // code points outside the category that are equivalent under // simple case folding to code points inside the category. // If there is no entry for a category name, there are no such points. var FoldCategory = map[string]*RangeTable{ "L": foldL, "Ll": foldLl, "Lt": foldLt, "Lu": foldLu, "M": foldM, "Mn": foldMn, } var foldL = &RangeTable{ R16: []Range16{ {0x0345, 0x0345, 1}, }, } var foldLl = &RangeTable{ R16: []Range16{ {0x0041, 0x005a, 1}, {0x00c0, 0x00d6, 1}, {0x00d8, 0x00de, 1}, {0x0100, 0x012e, 2}, {0x0132, 0x0136, 2}, {0x0139, 0x0147, 2}, {0x014a, 0x0178, 2}, {0x0179, 0x017d, 2}, {0x0181, 0x0182, 1}, {0x0184, 0x0186, 2}, {0x0187, 0x0189, 2}, {0x018a, 0x018b, 1}, {0x018e, 0x0191, 1}, {0x0193, 0x0194, 1}, {0x0196, 0x0198, 1}, {0x019c, 0x019d, 1}, {0x019f, 0x01a0, 1}, {0x01a2, 0x01a6, 2}, {0x01a7, 0x01a9, 2}, {0x01ac, 0x01ae, 2}, {0x01af, 0x01b1, 2}, {0x01b2, 0x01b3, 1}, {0x01b5, 0x01b7, 2}, {0x01b8, 0x01bc, 4}, {0x01c4, 0x01c5, 1}, {0x01c7, 0x01c8, 1}, {0x01ca, 0x01cb, 1}, {0x01cd, 0x01db, 2}, {0x01de, 0x01ee, 2}, {0x01f1, 0x01f2, 1}, {0x01f4, 0x01f6, 2}, {0x01f7, 0x01f8, 1}, {0x01fa, 0x0232, 2}, {0x023a, 0x023b, 1}, {0x023d, 0x023e, 1}, {0x0241, 0x0243, 2}, {0x0244, 0x0246, 1}, {0x0248, 0x024e, 2}, {0x0345, 0x0370, 43}, {0x0372, 0x0376, 4}, {0x037f, 0x0386, 7}, {0x0388, 0x038a, 1}, {0x038c, 0x038e, 2}, {0x038f, 0x0391, 2}, {0x0392, 0x03a1, 1}, {0x03a3, 0x03ab, 1}, {0x03cf, 0x03d8, 9}, {0x03da, 0x03ee, 2}, {0x03f4, 0x03f7, 3}, {0x03f9, 0x03fa, 1}, {0x03fd, 0x042f, 1}, {0x0460, 0x0480, 2}, {0x048a, 0x04c0, 2}, {0x04c1, 0x04cd, 2}, {0x04d0, 0x052e, 2}, {0x0531, 0x0556, 1}, {0x10a0, 0x10c5, 1}, {0x10c7, 0x10cd, 6}, {0x13a0, 0x13f5, 1}, {0x1c90, 0x1cba, 1}, {0x1cbd, 0x1cbf, 1}, {0x1e00, 0x1e94, 2}, {0x1e9e, 0x1efe, 2}, {0x1f08, 0x1f0f, 1}, {0x1f18, 0x1f1d, 1}, {0x1f28, 0x1f2f, 1}, {0x1f38, 0x1f3f, 1}, {0x1f48, 0x1f4d, 1}, {0x1f59, 0x1f5f, 2}, {0x1f68, 0x1f6f, 1}, {0x1f88, 0x1f8f, 1}, {0x1f98, 0x1f9f, 1}, {0x1fa8, 0x1faf, 1}, {0x1fb8, 0x1fbc, 1}, {0x1fc8, 0x1fcc, 1}, {0x1fd8, 0x1fdb, 1}, {0x1fe8, 0x1fec, 1}, {0x1ff8, 0x1ffc, 1}, {0x2126, 0x212a, 4}, {0x212b, 0x2132, 7}, {0x2183, 0x2c00, 2685}, {0x2c01, 0x2c2f, 1}, {0x2c60, 0x2c62, 2}, {0x2c63, 0x2c64, 1}, {0x2c67, 0x2c6d, 2}, {0x2c6e, 0x2c70, 1}, {0x2c72, 0x2c75, 3}, {0x2c7e, 0x2c80, 1}, {0x2c82, 0x2ce2, 2}, {0x2ceb, 0x2ced, 2}, {0x2cf2, 0xa640, 31054}, {0xa642, 0xa66c, 2}, {0xa680, 0xa69a, 2}, {0xa722, 0xa72e, 2}, {0xa732, 0xa76e, 2}, {0xa779, 0xa77d, 2}, {0xa77e, 0xa786, 2}, {0xa78b, 0xa78d, 2}, {0xa790, 0xa792, 2}, {0xa796, 0xa7aa, 2}, {0xa7ab, 0xa7ae, 1}, {0xa7b0, 0xa7b4, 1}, {0xa7b6, 0xa7c4, 2}, {0xa7c5, 0xa7c7, 1}, {0xa7c9, 0xa7d0, 7}, {0xa7d6, 0xa7d8, 2}, {0xa7f5, 0xff21, 22316}, {0xff22, 0xff3a, 1}, }, R32: []Range32{ {0x10400, 0x10427, 1}, {0x104b0, 0x104d3, 1}, {0x10570, 0x1057a, 1}, {0x1057c, 0x1058a, 1}, {0x1058c, 0x10592, 1}, {0x10594, 0x10595, 1}, {0x10c80, 0x10cb2, 1}, {0x118a0, 0x118bf, 1}, {0x16e40, 0x16e5f, 1}, {0x1e900, 0x1e921, 1}, }, LatinOffset: 3, } var foldLt = &RangeTable{ R16: []Range16{ {0x01c4, 0x01c6, 2}, {0x01c7, 0x01c9, 2}, {0x01ca, 0x01cc, 2}, {0x01f1, 0x01f3, 2}, {0x1f80, 0x1f87, 1}, {0x1f90, 0x1f97, 1}, {0x1fa0, 0x1fa7, 1}, {0x1fb3, 0x1fc3, 16}, {0x1ff3, 0x1ff3, 1}, }, } var foldLu = &RangeTable{ R16: []Range16{ {0x0061, 0x007a, 1}, {0x00b5, 0x00df, 42}, {0x00e0, 0x00f6, 1}, {0x00f8, 0x00ff, 1}, {0x0101, 0x012f, 2}, {0x0133, 0x0137, 2}, {0x013a, 0x0148, 2}, {0x014b, 0x0177, 2}, {0x017a, 0x017e, 2}, {0x017f, 0x0180, 1}, {0x0183, 0x0185, 2}, {0x0188, 0x018c, 4}, {0x0192, 0x0195, 3}, {0x0199, 0x019a, 1}, {0x019e, 0x01a1, 3}, {0x01a3, 0x01a5, 2}, {0x01a8, 0x01ad, 5}, {0x01b0, 0x01b4, 4}, {0x01b6, 0x01b9, 3}, {0x01bd, 0x01bf, 2}, {0x01c5, 0x01c6, 1}, {0x01c8, 0x01c9, 1}, {0x01cb, 0x01cc, 1}, {0x01ce, 0x01dc, 2}, {0x01dd, 0x01ef, 2}, {0x01f2, 0x01f3, 1}, {0x01f5, 0x01f9, 4}, {0x01fb, 0x021f, 2}, {0x0223, 0x0233, 2}, {0x023c, 0x023f, 3}, {0x0240, 0x0242, 2}, {0x0247, 0x024f, 2}, {0x0250, 0x0254, 1}, {0x0256, 0x0257, 1}, {0x0259, 0x025b, 2}, {0x025c, 0x0260, 4}, {0x0261, 0x0265, 2}, {0x0266, 0x0268, 2}, {0x0269, 0x026c, 1}, {0x026f, 0x0271, 2}, {0x0272, 0x0275, 3}, {0x027d, 0x0280, 3}, {0x0282, 0x0283, 1}, {0x0287, 0x028c, 1}, {0x0292, 0x029d, 11}, {0x029e, 0x0345, 167}, {0x0371, 0x0373, 2}, {0x0377, 0x037b, 4}, {0x037c, 0x037d, 1}, {0x03ac, 0x03af, 1}, {0x03b1, 0x03ce, 1}, {0x03d0, 0x03d1, 1}, {0x03d5, 0x03d7, 1}, {0x03d9, 0x03ef, 2}, {0x03f0, 0x03f3, 1}, {0x03f5, 0x03fb, 3}, {0x0430, 0x045f, 1}, {0x0461, 0x0481, 2}, {0x048b, 0x04bf, 2}, {0x04c2, 0x04ce, 2}, {0x04cf, 0x052f, 2}, {0x0561, 0x0586, 1}, {0x10d0, 0x10fa, 1}, {0x10fd, 0x10ff, 1}, {0x13f8, 0x13fd, 1}, {0x1c80, 0x1c88, 1}, {0x1d79, 0x1d7d, 4}, {0x1d8e, 0x1e01, 115}, {0x1e03, 0x1e95, 2}, {0x1e9b, 0x1ea1, 6}, {0x1ea3, 0x1eff, 2}, {0x1f00, 0x1f07, 1}, {0x1f10, 0x1f15, 1}, {0x1f20, 0x1f27, 1}, {0x1f30, 0x1f37, 1}, {0x1f40, 0x1f45, 1}, {0x1f51, 0x1f57, 2}, {0x1f60, 0x1f67, 1}, {0x1f70, 0x1f7d, 1}, {0x1fb0, 0x1fb1, 1}, {0x1fbe, 0x1fd0, 18}, {0x1fd1, 0x1fe0, 15}, {0x1fe1, 0x1fe5, 4}, {0x214e, 0x2184, 54}, {0x2c30, 0x2c5f, 1}, {0x2c61, 0x2c65, 4}, {0x2c66, 0x2c6c, 2}, {0x2c73, 0x2c76, 3}, {0x2c81, 0x2ce3, 2}, {0x2cec, 0x2cee, 2}, {0x2cf3, 0x2d00, 13}, {0x2d01, 0x2d25, 1}, {0x2d27, 0x2d2d, 6}, {0xa641, 0xa66d, 2}, {0xa681, 0xa69b, 2}, {0xa723, 0xa72f, 2}, {0xa733, 0xa76f, 2}, {0xa77a, 0xa77c, 2}, {0xa77f, 0xa787, 2}, {0xa78c, 0xa791, 5}, {0xa793, 0xa794, 1}, {0xa797, 0xa7a9, 2}, {0xa7b5, 0xa7c3, 2}, {0xa7c8, 0xa7ca, 2}, {0xa7d1, 0xa7d7, 6}, {0xa7d9, 0xa7f6, 29}, {0xab53, 0xab70, 29}, {0xab71, 0xabbf, 1}, {0xff41, 0xff5a, 1}, }, R32: []Range32{ {0x10428, 0x1044f, 1}, {0x104d8, 0x104fb, 1}, {0x10597, 0x105a1, 1}, {0x105a3, 0x105b1, 1}, {0x105b3, 0x105b9, 1}, {0x105bb, 0x105bc, 1}, {0x10cc0, 0x10cf2, 1}, {0x118c0, 0x118df, 1}, {0x16e60, 0x16e7f, 1}, {0x1e922, 0x1e943, 1}, }, LatinOffset: 4, } var foldM = &RangeTable{ R16: []Range16{ {0x0399, 0x03b9, 32}, {0x1fbe, 0x1fbe, 1}, }, } var foldMn = &RangeTable{ R16: []Range16{ {0x0399, 0x03b9, 32}, {0x1fbe, 0x1fbe, 1}, }, } // FoldScript maps a script name to a table of // code points outside the script that are equivalent under // simple case folding to code points inside the script. // If there is no entry for a script name, there are no such points. var FoldScript = map[string]*RangeTable{ "Common": foldCommon, "Greek": foldGreek, "Inherited": foldInherited, } var foldCommon = &RangeTable{ R16: []Range16{ {0x039c, 0x03bc, 32}, }, } var foldGreek = &RangeTable{ R16: []Range16{ {0x00b5, 0x0345, 656}, }, } var foldInherited = &RangeTable{ R16: []Range16{ {0x0399, 0x03b9, 32}, {0x1fbe, 0x1fbe, 1}, }, } // Range entries: 3535 16-bit, 2031 32-bit, 5566 total. // Range bytes: 21210 16-bit, 24372 32-bit, 45582 total. // Fold orbit bytes: 88 pairs, 352 bytes
go/src/unicode/tables.go/0
{ "file_path": "go/src/unicode/tables.go", "repo_id": "go", "token_count": 139066 }
448
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sha3 // This file provides functions for creating instances of the SHA-3 // and SHAKE hash functions, as well as utility functions for hashing // bytes. import ( "crypto" "hash" ) // New224 creates a new SHA3-224 hash. // Its generic security strength is 224 bits against preimage attacks, // and 112 bits against collision attacks. func New224() hash.Hash { return new224() } // New256 creates a new SHA3-256 hash. // Its generic security strength is 256 bits against preimage attacks, // and 128 bits against collision attacks. func New256() hash.Hash { return new256() } // New384 creates a new SHA3-384 hash. // Its generic security strength is 384 bits against preimage attacks, // and 192 bits against collision attacks. func New384() hash.Hash { return new384() } // New512 creates a new SHA3-512 hash. // Its generic security strength is 512 bits against preimage attacks, // and 256 bits against collision attacks. func New512() hash.Hash { return new512() } func init() { crypto.RegisterHash(crypto.SHA3_224, New224) crypto.RegisterHash(crypto.SHA3_256, New256) crypto.RegisterHash(crypto.SHA3_384, New384) crypto.RegisterHash(crypto.SHA3_512, New512) } func new224Generic() *state { return &state{rate: 144, outputLen: 28, dsbyte: 0x06} } func new256Generic() *state { return &state{rate: 136, outputLen: 32, dsbyte: 0x06} } func new384Generic() *state { return &state{rate: 104, outputLen: 48, dsbyte: 0x06} } func new512Generic() *state { return &state{rate: 72, outputLen: 64, dsbyte: 0x06} } // NewLegacyKeccak256 creates a new Keccak-256 hash. // // Only use this function if you require compatibility with an existing cryptosystem // that uses non-standard padding. All other users should use New256 instead. func NewLegacyKeccak256() hash.Hash { return &state{rate: 136, outputLen: 32, dsbyte: 0x01} } // NewLegacyKeccak512 creates a new Keccak-512 hash. // // Only use this function if you require compatibility with an existing cryptosystem // that uses non-standard padding. All other users should use New512 instead. func NewLegacyKeccak512() hash.Hash { return &state{rate: 72, outputLen: 64, dsbyte: 0x01} } // Sum224 returns the SHA3-224 digest of the data. func Sum224(data []byte) (digest [28]byte) { h := New224() h.Write(data) h.Sum(digest[:0]) return } // Sum256 returns the SHA3-256 digest of the data. func Sum256(data []byte) (digest [32]byte) { h := New256() h.Write(data) h.Sum(digest[:0]) return } // Sum384 returns the SHA3-384 digest of the data. func Sum384(data []byte) (digest [48]byte) { h := New384() h.Write(data) h.Sum(digest[:0]) return } // Sum512 returns the SHA3-512 digest of the data. func Sum512(data []byte) (digest [64]byte) { h := New512() h.Write(data) h.Sum(digest[:0]) return }
go/src/vendor/golang.org/x/crypto/sha3/hashes.go/0
{ "file_path": "go/src/vendor/golang.org/x/crypto/sha3/hashes.go", "repo_id": "go", "token_count": 985 }
449
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package httpproxy provides support for HTTP proxy determination // based on environment variables, as provided by net/http's // ProxyFromEnvironment function. // // The API is not subject to the Go 1 compatibility promise and may change at // any time. package httpproxy import ( "errors" "fmt" "net" "net/url" "os" "strings" "unicode/utf8" "golang.org/x/net/idna" ) // Config holds configuration for HTTP proxy settings. See // FromEnvironment for details. type Config struct { // HTTPProxy represents the value of the HTTP_PROXY or // http_proxy environment variable. It will be used as the proxy // URL for HTTP requests unless overridden by NoProxy. HTTPProxy string // HTTPSProxy represents the HTTPS_PROXY or https_proxy // environment variable. It will be used as the proxy URL for // HTTPS requests unless overridden by NoProxy. HTTPSProxy string // NoProxy represents the NO_PROXY or no_proxy environment // variable. It specifies a string that contains comma-separated values // specifying hosts that should be excluded from proxying. Each value is // represented by an IP address prefix (1.2.3.4), an IP address prefix in // CIDR notation (1.2.3.4/8), a domain name, or a special DNS label (*). // An IP address prefix and domain name can also include a literal port // number (1.2.3.4:80). // A domain name matches that name and all subdomains. A domain name with // a leading "." matches subdomains only. For example "foo.com" matches // "foo.com" and "bar.foo.com"; ".y.com" matches "x.y.com" but not "y.com". // A single asterisk (*) indicates that no proxying should be done. // A best effort is made to parse the string and errors are // ignored. NoProxy string // CGI holds whether the current process is running // as a CGI handler (FromEnvironment infers this from the // presence of a REQUEST_METHOD environment variable). // When this is set, ProxyForURL will return an error // when HTTPProxy applies, because a client could be // setting HTTP_PROXY maliciously. See https://golang.org/s/cgihttpproxy. CGI bool } // config holds the parsed configuration for HTTP proxy settings. type config struct { // Config represents the original configuration as defined above. Config // httpsProxy is the parsed URL of the HTTPSProxy if defined. httpsProxy *url.URL // httpProxy is the parsed URL of the HTTPProxy if defined. httpProxy *url.URL // ipMatchers represent all values in the NoProxy that are IP address // prefixes or an IP address in CIDR notation. ipMatchers []matcher // domainMatchers represent all values in the NoProxy that are a domain // name or hostname & domain name domainMatchers []matcher } // FromEnvironment returns a Config instance populated from the // environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the // lowercase versions thereof). // // The environment values may be either a complete URL or a // "host[:port]", in which case the "http" scheme is assumed. An error // is returned if the value is a different form. func FromEnvironment() *Config { return &Config{ HTTPProxy: getEnvAny("HTTP_PROXY", "http_proxy"), HTTPSProxy: getEnvAny("HTTPS_PROXY", "https_proxy"), NoProxy: getEnvAny("NO_PROXY", "no_proxy"), CGI: os.Getenv("REQUEST_METHOD") != "", } } func getEnvAny(names ...string) string { for _, n := range names { if val := os.Getenv(n); val != "" { return val } } return "" } // ProxyFunc returns a function that determines the proxy URL to use for // a given request URL. Changing the contents of cfg will not affect // proxy functions created earlier. // // A nil URL and nil error are returned if no proxy is defined in the // environment, or a proxy should not be used for the given request, as // defined by NO_PROXY. // // As a special case, if req.URL.Host is "localhost" or a loopback address // (with or without a port number), then a nil URL and nil error will be returned. func (cfg *Config) ProxyFunc() func(reqURL *url.URL) (*url.URL, error) { // Preprocess the Config settings for more efficient evaluation. cfg1 := &config{ Config: *cfg, } cfg1.init() return cfg1.proxyForURL } func (cfg *config) proxyForURL(reqURL *url.URL) (*url.URL, error) { var proxy *url.URL if reqURL.Scheme == "https" { proxy = cfg.httpsProxy } else if reqURL.Scheme == "http" { proxy = cfg.httpProxy if proxy != nil && cfg.CGI { return nil, errors.New("refusing to use HTTP_PROXY value in CGI environment; see golang.org/s/cgihttpproxy") } } if proxy == nil { return nil, nil } if !cfg.useProxy(canonicalAddr(reqURL)) { return nil, nil } return proxy, nil } func parseProxy(proxy string) (*url.URL, error) { if proxy == "" { return nil, nil } proxyURL, err := url.Parse(proxy) if err != nil || proxyURL.Scheme == "" || proxyURL.Host == "" { // proxy was bogus. Try prepending "http://" to it and // see if that parses correctly. If not, we fall // through and complain about the original one. if proxyURL, err := url.Parse("http://" + proxy); err == nil { return proxyURL, nil } } if err != nil { return nil, fmt.Errorf("invalid proxy address %q: %v", proxy, err) } return proxyURL, nil } // useProxy reports whether requests to addr should use a proxy, // according to the NO_PROXY or no_proxy environment variable. // addr is always a canonicalAddr with a host and port. func (cfg *config) useProxy(addr string) bool { if len(addr) == 0 { return true } host, port, err := net.SplitHostPort(addr) if err != nil { return false } if host == "localhost" { return false } ip := net.ParseIP(host) if ip != nil { if ip.IsLoopback() { return false } } addr = strings.ToLower(strings.TrimSpace(host)) if ip != nil { for _, m := range cfg.ipMatchers { if m.match(addr, port, ip) { return false } } } for _, m := range cfg.domainMatchers { if m.match(addr, port, ip) { return false } } return true } func (c *config) init() { if parsed, err := parseProxy(c.HTTPProxy); err == nil { c.httpProxy = parsed } if parsed, err := parseProxy(c.HTTPSProxy); err == nil { c.httpsProxy = parsed } for _, p := range strings.Split(c.NoProxy, ",") { p = strings.ToLower(strings.TrimSpace(p)) if len(p) == 0 { continue } if p == "*" { c.ipMatchers = []matcher{allMatch{}} c.domainMatchers = []matcher{allMatch{}} return } // IPv4/CIDR, IPv6/CIDR if _, pnet, err := net.ParseCIDR(p); err == nil { c.ipMatchers = append(c.ipMatchers, cidrMatch{cidr: pnet}) continue } // IPv4:port, [IPv6]:port phost, pport, err := net.SplitHostPort(p) if err == nil { if len(phost) == 0 { // There is no host part, likely the entry is malformed; ignore. continue } if phost[0] == '[' && phost[len(phost)-1] == ']' { phost = phost[1 : len(phost)-1] } } else { phost = p } // IPv4, IPv6 if pip := net.ParseIP(phost); pip != nil { c.ipMatchers = append(c.ipMatchers, ipMatch{ip: pip, port: pport}) continue } if len(phost) == 0 { // There is no host part, likely the entry is malformed; ignore. continue } // domain.com or domain.com:80 // foo.com matches bar.foo.com // .domain.com or .domain.com:port // *.domain.com or *.domain.com:port if strings.HasPrefix(phost, "*.") { phost = phost[1:] } matchHost := false if phost[0] != '.' { matchHost = true phost = "." + phost } if v, err := idnaASCII(phost); err == nil { phost = v } c.domainMatchers = append(c.domainMatchers, domainMatch{host: phost, port: pport, matchHost: matchHost}) } } var portMap = map[string]string{ "http": "80", "https": "443", "socks5": "1080", } // canonicalAddr returns url.Host but always with a ":port" suffix func canonicalAddr(url *url.URL) string { addr := url.Hostname() if v, err := idnaASCII(addr); err == nil { addr = v } port := url.Port() if port == "" { port = portMap[url.Scheme] } return net.JoinHostPort(addr, port) } // Given a string of the form "host", "host:port", or "[ipv6::address]:port", // return true if the string includes a port. func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") } func idnaASCII(v string) (string, error) { // TODO: Consider removing this check after verifying performance is okay. // Right now punycode verification, length checks, context checks, and the // permissible character tests are all omitted. It also prevents the ToASCII // call from salvaging an invalid IDN, when possible. As a result it may be // possible to have two IDNs that appear identical to the user where the // ASCII-only version causes an error downstream whereas the non-ASCII // version does not. // Note that for correct ASCII IDNs ToASCII will only do considerably more // work, but it will not cause an allocation. if isASCII(v) { return v, nil } return idna.Lookup.ToASCII(v) } func isASCII(s string) bool { for i := 0; i < len(s); i++ { if s[i] >= utf8.RuneSelf { return false } } return true } // matcher represents the matching rule for a given value in the NO_PROXY list type matcher interface { // match returns true if the host and optional port or ip and optional port // are allowed match(host, port string, ip net.IP) bool } // allMatch matches on all possible inputs type allMatch struct{} func (a allMatch) match(host, port string, ip net.IP) bool { return true } type cidrMatch struct { cidr *net.IPNet } func (m cidrMatch) match(host, port string, ip net.IP) bool { return m.cidr.Contains(ip) } type ipMatch struct { ip net.IP port string } func (m ipMatch) match(host, port string, ip net.IP) bool { if m.ip.Equal(ip) { return m.port == "" || m.port == port } return false } type domainMatch struct { host string port string matchHost bool } func (m domainMatch) match(host, port string, ip net.IP) bool { if strings.HasSuffix(host, m.host) || (m.matchHost && host == m.host[1:]) { return m.port == "" || m.port == port } return false }
go/src/vendor/golang.org/x/net/http/httpproxy/proxy.go/0
{ "file_path": "go/src/vendor/golang.org/x/net/http/httpproxy/proxy.go", "repo_id": "go", "token_count": 3542 }
450
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package route import "syscall" func (typ RIBType) parseable() bool { switch typ { case syscall.NET_RT_STAT, syscall.NET_RT_TRASH: return false default: return true } } // RouteMetrics represents route metrics. type RouteMetrics struct { PathMTU int // path maximum transmission unit } // SysType implements the SysType method of Sys interface. func (rmx *RouteMetrics) SysType() SysType { return SysMetrics } // Sys implements the Sys method of Message interface. func (m *RouteMessage) Sys() []Sys { return []Sys{ &RouteMetrics{ PathMTU: int(nativeEndian.Uint32(m.raw[m.extOff+4 : m.extOff+8])), }, } } // InterfaceMetrics represents interface metrics. type InterfaceMetrics struct { Type int // interface type MTU int // maximum transmission unit } // SysType implements the SysType method of Sys interface. func (imx *InterfaceMetrics) SysType() SysType { return SysMetrics } // Sys implements the Sys method of Message interface. func (m *InterfaceMessage) Sys() []Sys { return []Sys{ &InterfaceMetrics{ Type: int(m.raw[m.extOff]), MTU: int(nativeEndian.Uint32(m.raw[m.extOff+8 : m.extOff+12])), }, } } func probeRoutingStack() (int, map[int]*wireFormat) { rtm := &wireFormat{extOff: 36, bodyOff: sizeofRtMsghdrDarwin15} rtm.parse = rtm.parseRouteMessage rtm2 := &wireFormat{extOff: 36, bodyOff: sizeofRtMsghdr2Darwin15} rtm2.parse = rtm2.parseRouteMessage ifm := &wireFormat{extOff: 16, bodyOff: sizeofIfMsghdrDarwin15} ifm.parse = ifm.parseInterfaceMessage ifm2 := &wireFormat{extOff: 32, bodyOff: sizeofIfMsghdr2Darwin15} ifm2.parse = ifm2.parseInterfaceMessage ifam := &wireFormat{extOff: sizeofIfaMsghdrDarwin15, bodyOff: sizeofIfaMsghdrDarwin15} ifam.parse = ifam.parseInterfaceAddrMessage ifmam := &wireFormat{extOff: sizeofIfmaMsghdrDarwin15, bodyOff: sizeofIfmaMsghdrDarwin15} ifmam.parse = ifmam.parseInterfaceMulticastAddrMessage ifmam2 := &wireFormat{extOff: sizeofIfmaMsghdr2Darwin15, bodyOff: sizeofIfmaMsghdr2Darwin15} ifmam2.parse = ifmam2.parseInterfaceMulticastAddrMessage // Darwin kernels require 32-bit aligned access to routing facilities. return 4, map[int]*wireFormat{ syscall.RTM_ADD: rtm, syscall.RTM_DELETE: rtm, syscall.RTM_CHANGE: rtm, syscall.RTM_GET: rtm, syscall.RTM_LOSING: rtm, syscall.RTM_REDIRECT: rtm, syscall.RTM_MISS: rtm, syscall.RTM_LOCK: rtm, syscall.RTM_RESOLVE: rtm, syscall.RTM_NEWADDR: ifam, syscall.RTM_DELADDR: ifam, syscall.RTM_IFINFO: ifm, syscall.RTM_NEWMADDR: ifmam, syscall.RTM_DELMADDR: ifmam, syscall.RTM_IFINFO2: ifm2, syscall.RTM_NEWMADDR2: ifmam2, syscall.RTM_GET2: rtm2, } }
go/src/vendor/golang.org/x/net/route/sys_darwin.go/0
{ "file_path": "go/src/vendor/golang.org/x/net/route/sys_darwin.go", "repo_id": "go", "token_count": 1163 }
451
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cpu func doinit() { ARM.HasSWP = isSet(hwCap, hwcap_SWP) ARM.HasHALF = isSet(hwCap, hwcap_HALF) ARM.HasTHUMB = isSet(hwCap, hwcap_THUMB) ARM.Has26BIT = isSet(hwCap, hwcap_26BIT) ARM.HasFASTMUL = isSet(hwCap, hwcap_FAST_MULT) ARM.HasFPA = isSet(hwCap, hwcap_FPA) ARM.HasVFP = isSet(hwCap, hwcap_VFP) ARM.HasEDSP = isSet(hwCap, hwcap_EDSP) ARM.HasJAVA = isSet(hwCap, hwcap_JAVA) ARM.HasIWMMXT = isSet(hwCap, hwcap_IWMMXT) ARM.HasCRUNCH = isSet(hwCap, hwcap_CRUNCH) ARM.HasTHUMBEE = isSet(hwCap, hwcap_THUMBEE) ARM.HasNEON = isSet(hwCap, hwcap_NEON) ARM.HasVFPv3 = isSet(hwCap, hwcap_VFPv3) ARM.HasVFPv3D16 = isSet(hwCap, hwcap_VFPv3D16) ARM.HasTLS = isSet(hwCap, hwcap_TLS) ARM.HasVFPv4 = isSet(hwCap, hwcap_VFPv4) ARM.HasIDIVA = isSet(hwCap, hwcap_IDIVA) ARM.HasIDIVT = isSet(hwCap, hwcap_IDIVT) ARM.HasVFPD32 = isSet(hwCap, hwcap_VFPD32) ARM.HasLPAE = isSet(hwCap, hwcap_LPAE) ARM.HasEVTSTRM = isSet(hwCap, hwcap_EVTSTRM) ARM.HasAES = isSet(hwCap2, hwcap2_AES) ARM.HasPMULL = isSet(hwCap2, hwcap2_PMULL) ARM.HasSHA1 = isSet(hwCap2, hwcap2_SHA1) ARM.HasSHA2 = isSet(hwCap2, hwcap2_SHA2) ARM.HasCRC32 = isSet(hwCap2, hwcap2_CRC32) } func isSet(hwc uint, value uint) bool { return hwc&value != 0 }
go/src/vendor/golang.org/x/sys/cpu/cpu_linux_arm.go/0
{ "file_path": "go/src/vendor/golang.org/x/sys/cpu/cpu_linux_arm.go", "repo_id": "go", "token_count": 708 }
452
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build go1.21 package cpu import ( _ "unsafe" // for linkname ) //go:linkname runtime_getAuxv runtime.getAuxv func runtime_getAuxv() []uintptr func init() { getAuxvFn = runtime_getAuxv }
go/src/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go/0
{ "file_path": "go/src/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go", "repo_id": "go", "token_count": 126 }
453
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.16 && !go1.21 package bidi // UnicodeVersion is the Unicode version from which the tables in this package are derived. const UnicodeVersion = "13.0.0" // xorMasks contains masks to be xor-ed with brackets to get the reverse // version. var xorMasks = []int32{ // 8 elements 0, 1, 6, 7, 3, 15, 29, 63, } // Size: 56 bytes // lookup returns the trie value for the first UTF-8 encoding in s and // the width in bytes of this encoding. The size will be 0 if s does not // hold enough bytes to complete the encoding. len(s) must be greater than 0. func (t *bidiTrie) lookup(s []byte) (v uint8, sz int) { c0 := s[0] switch { case c0 < 0x80: // is ASCII return bidiValues[c0], 1 case c0 < 0xC2: return 0, 1 // Illegal UTF-8: not a starter, not ASCII. case c0 < 0xE0: // 2-byte UTF-8 if len(s) < 2 { return 0, 0 } i := bidiIndex[c0] c1 := s[1] if c1 < 0x80 || 0xC0 <= c1 { return 0, 1 // Illegal UTF-8: not a continuation byte. } return t.lookupValue(uint32(i), c1), 2 case c0 < 0xF0: // 3-byte UTF-8 if len(s) < 3 { return 0, 0 } i := bidiIndex[c0] c1 := s[1] if c1 < 0x80 || 0xC0 <= c1 { return 0, 1 // Illegal UTF-8: not a continuation byte. } o := uint32(i)<<6 + uint32(c1) i = bidiIndex[o] c2 := s[2] if c2 < 0x80 || 0xC0 <= c2 { return 0, 2 // Illegal UTF-8: not a continuation byte. } return t.lookupValue(uint32(i), c2), 3 case c0 < 0xF8: // 4-byte UTF-8 if len(s) < 4 { return 0, 0 } i := bidiIndex[c0] c1 := s[1] if c1 < 0x80 || 0xC0 <= c1 { return 0, 1 // Illegal UTF-8: not a continuation byte. } o := uint32(i)<<6 + uint32(c1) i = bidiIndex[o] c2 := s[2] if c2 < 0x80 || 0xC0 <= c2 { return 0, 2 // Illegal UTF-8: not a continuation byte. } o = uint32(i)<<6 + uint32(c2) i = bidiIndex[o] c3 := s[3] if c3 < 0x80 || 0xC0 <= c3 { return 0, 3 // Illegal UTF-8: not a continuation byte. } return t.lookupValue(uint32(i), c3), 4 } // Illegal rune return 0, 1 } // lookupUnsafe returns the trie value for the first UTF-8 encoding in s. // s must start with a full and valid UTF-8 encoded rune. func (t *bidiTrie) lookupUnsafe(s []byte) uint8 { c0 := s[0] if c0 < 0x80 { // is ASCII return bidiValues[c0] } i := bidiIndex[c0] if c0 < 0xE0 { // 2-byte UTF-8 return t.lookupValue(uint32(i), s[1]) } i = bidiIndex[uint32(i)<<6+uint32(s[1])] if c0 < 0xF0 { // 3-byte UTF-8 return t.lookupValue(uint32(i), s[2]) } i = bidiIndex[uint32(i)<<6+uint32(s[2])] if c0 < 0xF8 { // 4-byte UTF-8 return t.lookupValue(uint32(i), s[3]) } return 0 } // lookupString returns the trie value for the first UTF-8 encoding in s and // the width in bytes of this encoding. The size will be 0 if s does not // hold enough bytes to complete the encoding. len(s) must be greater than 0. func (t *bidiTrie) lookupString(s string) (v uint8, sz int) { c0 := s[0] switch { case c0 < 0x80: // is ASCII return bidiValues[c0], 1 case c0 < 0xC2: return 0, 1 // Illegal UTF-8: not a starter, not ASCII. case c0 < 0xE0: // 2-byte UTF-8 if len(s) < 2 { return 0, 0 } i := bidiIndex[c0] c1 := s[1] if c1 < 0x80 || 0xC0 <= c1 { return 0, 1 // Illegal UTF-8: not a continuation byte. } return t.lookupValue(uint32(i), c1), 2 case c0 < 0xF0: // 3-byte UTF-8 if len(s) < 3 { return 0, 0 } i := bidiIndex[c0] c1 := s[1] if c1 < 0x80 || 0xC0 <= c1 { return 0, 1 // Illegal UTF-8: not a continuation byte. } o := uint32(i)<<6 + uint32(c1) i = bidiIndex[o] c2 := s[2] if c2 < 0x80 || 0xC0 <= c2 { return 0, 2 // Illegal UTF-8: not a continuation byte. } return t.lookupValue(uint32(i), c2), 3 case c0 < 0xF8: // 4-byte UTF-8 if len(s) < 4 { return 0, 0 } i := bidiIndex[c0] c1 := s[1] if c1 < 0x80 || 0xC0 <= c1 { return 0, 1 // Illegal UTF-8: not a continuation byte. } o := uint32(i)<<6 + uint32(c1) i = bidiIndex[o] c2 := s[2] if c2 < 0x80 || 0xC0 <= c2 { return 0, 2 // Illegal UTF-8: not a continuation byte. } o = uint32(i)<<6 + uint32(c2) i = bidiIndex[o] c3 := s[3] if c3 < 0x80 || 0xC0 <= c3 { return 0, 3 // Illegal UTF-8: not a continuation byte. } return t.lookupValue(uint32(i), c3), 4 } // Illegal rune return 0, 1 } // lookupStringUnsafe returns the trie value for the first UTF-8 encoding in s. // s must start with a full and valid UTF-8 encoded rune. func (t *bidiTrie) lookupStringUnsafe(s string) uint8 { c0 := s[0] if c0 < 0x80 { // is ASCII return bidiValues[c0] } i := bidiIndex[c0] if c0 < 0xE0 { // 2-byte UTF-8 return t.lookupValue(uint32(i), s[1]) } i = bidiIndex[uint32(i)<<6+uint32(s[1])] if c0 < 0xF0 { // 3-byte UTF-8 return t.lookupValue(uint32(i), s[2]) } i = bidiIndex[uint32(i)<<6+uint32(s[2])] if c0 < 0xF8 { // 4-byte UTF-8 return t.lookupValue(uint32(i), s[3]) } return 0 } // bidiTrie. Total size: 17408 bytes (17.00 KiB). Checksum: df85fcbfe9b8377f. type bidiTrie struct{} func newBidiTrie(i int) *bidiTrie { return &bidiTrie{} } // lookupValue determines the type of block n and looks up the value for b. func (t *bidiTrie) lookupValue(n uint32, b byte) uint8 { switch { default: return uint8(bidiValues[n<<6+uint32(b)]) } } // bidiValues: 248 blocks, 15872 entries, 15872 bytes // The third block is the zero block. var bidiValues = [15872]uint8{ // Block 0x0, offset 0x0 0x00: 0x000b, 0x01: 0x000b, 0x02: 0x000b, 0x03: 0x000b, 0x04: 0x000b, 0x05: 0x000b, 0x06: 0x000b, 0x07: 0x000b, 0x08: 0x000b, 0x09: 0x0008, 0x0a: 0x0007, 0x0b: 0x0008, 0x0c: 0x0009, 0x0d: 0x0007, 0x0e: 0x000b, 0x0f: 0x000b, 0x10: 0x000b, 0x11: 0x000b, 0x12: 0x000b, 0x13: 0x000b, 0x14: 0x000b, 0x15: 0x000b, 0x16: 0x000b, 0x17: 0x000b, 0x18: 0x000b, 0x19: 0x000b, 0x1a: 0x000b, 0x1b: 0x000b, 0x1c: 0x0007, 0x1d: 0x0007, 0x1e: 0x0007, 0x1f: 0x0008, 0x20: 0x0009, 0x21: 0x000a, 0x22: 0x000a, 0x23: 0x0004, 0x24: 0x0004, 0x25: 0x0004, 0x26: 0x000a, 0x27: 0x000a, 0x28: 0x003a, 0x29: 0x002a, 0x2a: 0x000a, 0x2b: 0x0003, 0x2c: 0x0006, 0x2d: 0x0003, 0x2e: 0x0006, 0x2f: 0x0006, 0x30: 0x0002, 0x31: 0x0002, 0x32: 0x0002, 0x33: 0x0002, 0x34: 0x0002, 0x35: 0x0002, 0x36: 0x0002, 0x37: 0x0002, 0x38: 0x0002, 0x39: 0x0002, 0x3a: 0x0006, 0x3b: 0x000a, 0x3c: 0x000a, 0x3d: 0x000a, 0x3e: 0x000a, 0x3f: 0x000a, // Block 0x1, offset 0x40 0x40: 0x000a, 0x5b: 0x005a, 0x5c: 0x000a, 0x5d: 0x004a, 0x5e: 0x000a, 0x5f: 0x000a, 0x60: 0x000a, 0x7b: 0x005a, 0x7c: 0x000a, 0x7d: 0x004a, 0x7e: 0x000a, 0x7f: 0x000b, // Block 0x2, offset 0x80 // Block 0x3, offset 0xc0 0xc0: 0x000b, 0xc1: 0x000b, 0xc2: 0x000b, 0xc3: 0x000b, 0xc4: 0x000b, 0xc5: 0x0007, 0xc6: 0x000b, 0xc7: 0x000b, 0xc8: 0x000b, 0xc9: 0x000b, 0xca: 0x000b, 0xcb: 0x000b, 0xcc: 0x000b, 0xcd: 0x000b, 0xce: 0x000b, 0xcf: 0x000b, 0xd0: 0x000b, 0xd1: 0x000b, 0xd2: 0x000b, 0xd3: 0x000b, 0xd4: 0x000b, 0xd5: 0x000b, 0xd6: 0x000b, 0xd7: 0x000b, 0xd8: 0x000b, 0xd9: 0x000b, 0xda: 0x000b, 0xdb: 0x000b, 0xdc: 0x000b, 0xdd: 0x000b, 0xde: 0x000b, 0xdf: 0x000b, 0xe0: 0x0006, 0xe1: 0x000a, 0xe2: 0x0004, 0xe3: 0x0004, 0xe4: 0x0004, 0xe5: 0x0004, 0xe6: 0x000a, 0xe7: 0x000a, 0xe8: 0x000a, 0xe9: 0x000a, 0xeb: 0x000a, 0xec: 0x000a, 0xed: 0x000b, 0xee: 0x000a, 0xef: 0x000a, 0xf0: 0x0004, 0xf1: 0x0004, 0xf2: 0x0002, 0xf3: 0x0002, 0xf4: 0x000a, 0xf6: 0x000a, 0xf7: 0x000a, 0xf8: 0x000a, 0xf9: 0x0002, 0xfb: 0x000a, 0xfc: 0x000a, 0xfd: 0x000a, 0xfe: 0x000a, 0xff: 0x000a, // Block 0x4, offset 0x100 0x117: 0x000a, 0x137: 0x000a, // Block 0x5, offset 0x140 0x179: 0x000a, 0x17a: 0x000a, // Block 0x6, offset 0x180 0x182: 0x000a, 0x183: 0x000a, 0x184: 0x000a, 0x185: 0x000a, 0x186: 0x000a, 0x187: 0x000a, 0x188: 0x000a, 0x189: 0x000a, 0x18a: 0x000a, 0x18b: 0x000a, 0x18c: 0x000a, 0x18d: 0x000a, 0x18e: 0x000a, 0x18f: 0x000a, 0x192: 0x000a, 0x193: 0x000a, 0x194: 0x000a, 0x195: 0x000a, 0x196: 0x000a, 0x197: 0x000a, 0x198: 0x000a, 0x199: 0x000a, 0x19a: 0x000a, 0x19b: 0x000a, 0x19c: 0x000a, 0x19d: 0x000a, 0x19e: 0x000a, 0x19f: 0x000a, 0x1a5: 0x000a, 0x1a6: 0x000a, 0x1a7: 0x000a, 0x1a8: 0x000a, 0x1a9: 0x000a, 0x1aa: 0x000a, 0x1ab: 0x000a, 0x1ac: 0x000a, 0x1ad: 0x000a, 0x1af: 0x000a, 0x1b0: 0x000a, 0x1b1: 0x000a, 0x1b2: 0x000a, 0x1b3: 0x000a, 0x1b4: 0x000a, 0x1b5: 0x000a, 0x1b6: 0x000a, 0x1b7: 0x000a, 0x1b8: 0x000a, 0x1b9: 0x000a, 0x1ba: 0x000a, 0x1bb: 0x000a, 0x1bc: 0x000a, 0x1bd: 0x000a, 0x1be: 0x000a, 0x1bf: 0x000a, // Block 0x7, offset 0x1c0 0x1c0: 0x000c, 0x1c1: 0x000c, 0x1c2: 0x000c, 0x1c3: 0x000c, 0x1c4: 0x000c, 0x1c5: 0x000c, 0x1c6: 0x000c, 0x1c7: 0x000c, 0x1c8: 0x000c, 0x1c9: 0x000c, 0x1ca: 0x000c, 0x1cb: 0x000c, 0x1cc: 0x000c, 0x1cd: 0x000c, 0x1ce: 0x000c, 0x1cf: 0x000c, 0x1d0: 0x000c, 0x1d1: 0x000c, 0x1d2: 0x000c, 0x1d3: 0x000c, 0x1d4: 0x000c, 0x1d5: 0x000c, 0x1d6: 0x000c, 0x1d7: 0x000c, 0x1d8: 0x000c, 0x1d9: 0x000c, 0x1da: 0x000c, 0x1db: 0x000c, 0x1dc: 0x000c, 0x1dd: 0x000c, 0x1de: 0x000c, 0x1df: 0x000c, 0x1e0: 0x000c, 0x1e1: 0x000c, 0x1e2: 0x000c, 0x1e3: 0x000c, 0x1e4: 0x000c, 0x1e5: 0x000c, 0x1e6: 0x000c, 0x1e7: 0x000c, 0x1e8: 0x000c, 0x1e9: 0x000c, 0x1ea: 0x000c, 0x1eb: 0x000c, 0x1ec: 0x000c, 0x1ed: 0x000c, 0x1ee: 0x000c, 0x1ef: 0x000c, 0x1f0: 0x000c, 0x1f1: 0x000c, 0x1f2: 0x000c, 0x1f3: 0x000c, 0x1f4: 0x000c, 0x1f5: 0x000c, 0x1f6: 0x000c, 0x1f7: 0x000c, 0x1f8: 0x000c, 0x1f9: 0x000c, 0x1fa: 0x000c, 0x1fb: 0x000c, 0x1fc: 0x000c, 0x1fd: 0x000c, 0x1fe: 0x000c, 0x1ff: 0x000c, // Block 0x8, offset 0x200 0x200: 0x000c, 0x201: 0x000c, 0x202: 0x000c, 0x203: 0x000c, 0x204: 0x000c, 0x205: 0x000c, 0x206: 0x000c, 0x207: 0x000c, 0x208: 0x000c, 0x209: 0x000c, 0x20a: 0x000c, 0x20b: 0x000c, 0x20c: 0x000c, 0x20d: 0x000c, 0x20e: 0x000c, 0x20f: 0x000c, 0x210: 0x000c, 0x211: 0x000c, 0x212: 0x000c, 0x213: 0x000c, 0x214: 0x000c, 0x215: 0x000c, 0x216: 0x000c, 0x217: 0x000c, 0x218: 0x000c, 0x219: 0x000c, 0x21a: 0x000c, 0x21b: 0x000c, 0x21c: 0x000c, 0x21d: 0x000c, 0x21e: 0x000c, 0x21f: 0x000c, 0x220: 0x000c, 0x221: 0x000c, 0x222: 0x000c, 0x223: 0x000c, 0x224: 0x000c, 0x225: 0x000c, 0x226: 0x000c, 0x227: 0x000c, 0x228: 0x000c, 0x229: 0x000c, 0x22a: 0x000c, 0x22b: 0x000c, 0x22c: 0x000c, 0x22d: 0x000c, 0x22e: 0x000c, 0x22f: 0x000c, 0x234: 0x000a, 0x235: 0x000a, 0x23e: 0x000a, // Block 0x9, offset 0x240 0x244: 0x000a, 0x245: 0x000a, 0x247: 0x000a, // Block 0xa, offset 0x280 0x2b6: 0x000a, // Block 0xb, offset 0x2c0 0x2c3: 0x000c, 0x2c4: 0x000c, 0x2c5: 0x000c, 0x2c6: 0x000c, 0x2c7: 0x000c, 0x2c8: 0x000c, 0x2c9: 0x000c, // Block 0xc, offset 0x300 0x30a: 0x000a, 0x30d: 0x000a, 0x30e: 0x000a, 0x30f: 0x0004, 0x310: 0x0001, 0x311: 0x000c, 0x312: 0x000c, 0x313: 0x000c, 0x314: 0x000c, 0x315: 0x000c, 0x316: 0x000c, 0x317: 0x000c, 0x318: 0x000c, 0x319: 0x000c, 0x31a: 0x000c, 0x31b: 0x000c, 0x31c: 0x000c, 0x31d: 0x000c, 0x31e: 0x000c, 0x31f: 0x000c, 0x320: 0x000c, 0x321: 0x000c, 0x322: 0x000c, 0x323: 0x000c, 0x324: 0x000c, 0x325: 0x000c, 0x326: 0x000c, 0x327: 0x000c, 0x328: 0x000c, 0x329: 0x000c, 0x32a: 0x000c, 0x32b: 0x000c, 0x32c: 0x000c, 0x32d: 0x000c, 0x32e: 0x000c, 0x32f: 0x000c, 0x330: 0x000c, 0x331: 0x000c, 0x332: 0x000c, 0x333: 0x000c, 0x334: 0x000c, 0x335: 0x000c, 0x336: 0x000c, 0x337: 0x000c, 0x338: 0x000c, 0x339: 0x000c, 0x33a: 0x000c, 0x33b: 0x000c, 0x33c: 0x000c, 0x33d: 0x000c, 0x33e: 0x0001, 0x33f: 0x000c, // Block 0xd, offset 0x340 0x340: 0x0001, 0x341: 0x000c, 0x342: 0x000c, 0x343: 0x0001, 0x344: 0x000c, 0x345: 0x000c, 0x346: 0x0001, 0x347: 0x000c, 0x348: 0x0001, 0x349: 0x0001, 0x34a: 0x0001, 0x34b: 0x0001, 0x34c: 0x0001, 0x34d: 0x0001, 0x34e: 0x0001, 0x34f: 0x0001, 0x350: 0x0001, 0x351: 0x0001, 0x352: 0x0001, 0x353: 0x0001, 0x354: 0x0001, 0x355: 0x0001, 0x356: 0x0001, 0x357: 0x0001, 0x358: 0x0001, 0x359: 0x0001, 0x35a: 0x0001, 0x35b: 0x0001, 0x35c: 0x0001, 0x35d: 0x0001, 0x35e: 0x0001, 0x35f: 0x0001, 0x360: 0x0001, 0x361: 0x0001, 0x362: 0x0001, 0x363: 0x0001, 0x364: 0x0001, 0x365: 0x0001, 0x366: 0x0001, 0x367: 0x0001, 0x368: 0x0001, 0x369: 0x0001, 0x36a: 0x0001, 0x36b: 0x0001, 0x36c: 0x0001, 0x36d: 0x0001, 0x36e: 0x0001, 0x36f: 0x0001, 0x370: 0x0001, 0x371: 0x0001, 0x372: 0x0001, 0x373: 0x0001, 0x374: 0x0001, 0x375: 0x0001, 0x376: 0x0001, 0x377: 0x0001, 0x378: 0x0001, 0x379: 0x0001, 0x37a: 0x0001, 0x37b: 0x0001, 0x37c: 0x0001, 0x37d: 0x0001, 0x37e: 0x0001, 0x37f: 0x0001, // Block 0xe, offset 0x380 0x380: 0x0005, 0x381: 0x0005, 0x382: 0x0005, 0x383: 0x0005, 0x384: 0x0005, 0x385: 0x0005, 0x386: 0x000a, 0x387: 0x000a, 0x388: 0x000d, 0x389: 0x0004, 0x38a: 0x0004, 0x38b: 0x000d, 0x38c: 0x0006, 0x38d: 0x000d, 0x38e: 0x000a, 0x38f: 0x000a, 0x390: 0x000c, 0x391: 0x000c, 0x392: 0x000c, 0x393: 0x000c, 0x394: 0x000c, 0x395: 0x000c, 0x396: 0x000c, 0x397: 0x000c, 0x398: 0x000c, 0x399: 0x000c, 0x39a: 0x000c, 0x39b: 0x000d, 0x39c: 0x000d, 0x39d: 0x000d, 0x39e: 0x000d, 0x39f: 0x000d, 0x3a0: 0x000d, 0x3a1: 0x000d, 0x3a2: 0x000d, 0x3a3: 0x000d, 0x3a4: 0x000d, 0x3a5: 0x000d, 0x3a6: 0x000d, 0x3a7: 0x000d, 0x3a8: 0x000d, 0x3a9: 0x000d, 0x3aa: 0x000d, 0x3ab: 0x000d, 0x3ac: 0x000d, 0x3ad: 0x000d, 0x3ae: 0x000d, 0x3af: 0x000d, 0x3b0: 0x000d, 0x3b1: 0x000d, 0x3b2: 0x000d, 0x3b3: 0x000d, 0x3b4: 0x000d, 0x3b5: 0x000d, 0x3b6: 0x000d, 0x3b7: 0x000d, 0x3b8: 0x000d, 0x3b9: 0x000d, 0x3ba: 0x000d, 0x3bb: 0x000d, 0x3bc: 0x000d, 0x3bd: 0x000d, 0x3be: 0x000d, 0x3bf: 0x000d, // Block 0xf, offset 0x3c0 0x3c0: 0x000d, 0x3c1: 0x000d, 0x3c2: 0x000d, 0x3c3: 0x000d, 0x3c4: 0x000d, 0x3c5: 0x000d, 0x3c6: 0x000d, 0x3c7: 0x000d, 0x3c8: 0x000d, 0x3c9: 0x000d, 0x3ca: 0x000d, 0x3cb: 0x000c, 0x3cc: 0x000c, 0x3cd: 0x000c, 0x3ce: 0x000c, 0x3cf: 0x000c, 0x3d0: 0x000c, 0x3d1: 0x000c, 0x3d2: 0x000c, 0x3d3: 0x000c, 0x3d4: 0x000c, 0x3d5: 0x000c, 0x3d6: 0x000c, 0x3d7: 0x000c, 0x3d8: 0x000c, 0x3d9: 0x000c, 0x3da: 0x000c, 0x3db: 0x000c, 0x3dc: 0x000c, 0x3dd: 0x000c, 0x3de: 0x000c, 0x3df: 0x000c, 0x3e0: 0x0005, 0x3e1: 0x0005, 0x3e2: 0x0005, 0x3e3: 0x0005, 0x3e4: 0x0005, 0x3e5: 0x0005, 0x3e6: 0x0005, 0x3e7: 0x0005, 0x3e8: 0x0005, 0x3e9: 0x0005, 0x3ea: 0x0004, 0x3eb: 0x0005, 0x3ec: 0x0005, 0x3ed: 0x000d, 0x3ee: 0x000d, 0x3ef: 0x000d, 0x3f0: 0x000c, 0x3f1: 0x000d, 0x3f2: 0x000d, 0x3f3: 0x000d, 0x3f4: 0x000d, 0x3f5: 0x000d, 0x3f6: 0x000d, 0x3f7: 0x000d, 0x3f8: 0x000d, 0x3f9: 0x000d, 0x3fa: 0x000d, 0x3fb: 0x000d, 0x3fc: 0x000d, 0x3fd: 0x000d, 0x3fe: 0x000d, 0x3ff: 0x000d, // Block 0x10, offset 0x400 0x400: 0x000d, 0x401: 0x000d, 0x402: 0x000d, 0x403: 0x000d, 0x404: 0x000d, 0x405: 0x000d, 0x406: 0x000d, 0x407: 0x000d, 0x408: 0x000d, 0x409: 0x000d, 0x40a: 0x000d, 0x40b: 0x000d, 0x40c: 0x000d, 0x40d: 0x000d, 0x40e: 0x000d, 0x40f: 0x000d, 0x410: 0x000d, 0x411: 0x000d, 0x412: 0x000d, 0x413: 0x000d, 0x414: 0x000d, 0x415: 0x000d, 0x416: 0x000d, 0x417: 0x000d, 0x418: 0x000d, 0x419: 0x000d, 0x41a: 0x000d, 0x41b: 0x000d, 0x41c: 0x000d, 0x41d: 0x000d, 0x41e: 0x000d, 0x41f: 0x000d, 0x420: 0x000d, 0x421: 0x000d, 0x422: 0x000d, 0x423: 0x000d, 0x424: 0x000d, 0x425: 0x000d, 0x426: 0x000d, 0x427: 0x000d, 0x428: 0x000d, 0x429: 0x000d, 0x42a: 0x000d, 0x42b: 0x000d, 0x42c: 0x000d, 0x42d: 0x000d, 0x42e: 0x000d, 0x42f: 0x000d, 0x430: 0x000d, 0x431: 0x000d, 0x432: 0x000d, 0x433: 0x000d, 0x434: 0x000d, 0x435: 0x000d, 0x436: 0x000d, 0x437: 0x000d, 0x438: 0x000d, 0x439: 0x000d, 0x43a: 0x000d, 0x43b: 0x000d, 0x43c: 0x000d, 0x43d: 0x000d, 0x43e: 0x000d, 0x43f: 0x000d, // Block 0x11, offset 0x440 0x440: 0x000d, 0x441: 0x000d, 0x442: 0x000d, 0x443: 0x000d, 0x444: 0x000d, 0x445: 0x000d, 0x446: 0x000d, 0x447: 0x000d, 0x448: 0x000d, 0x449: 0x000d, 0x44a: 0x000d, 0x44b: 0x000d, 0x44c: 0x000d, 0x44d: 0x000d, 0x44e: 0x000d, 0x44f: 0x000d, 0x450: 0x000d, 0x451: 0x000d, 0x452: 0x000d, 0x453: 0x000d, 0x454: 0x000d, 0x455: 0x000d, 0x456: 0x000c, 0x457: 0x000c, 0x458: 0x000c, 0x459: 0x000c, 0x45a: 0x000c, 0x45b: 0x000c, 0x45c: 0x000c, 0x45d: 0x0005, 0x45e: 0x000a, 0x45f: 0x000c, 0x460: 0x000c, 0x461: 0x000c, 0x462: 0x000c, 0x463: 0x000c, 0x464: 0x000c, 0x465: 0x000d, 0x466: 0x000d, 0x467: 0x000c, 0x468: 0x000c, 0x469: 0x000a, 0x46a: 0x000c, 0x46b: 0x000c, 0x46c: 0x000c, 0x46d: 0x000c, 0x46e: 0x000d, 0x46f: 0x000d, 0x470: 0x0002, 0x471: 0x0002, 0x472: 0x0002, 0x473: 0x0002, 0x474: 0x0002, 0x475: 0x0002, 0x476: 0x0002, 0x477: 0x0002, 0x478: 0x0002, 0x479: 0x0002, 0x47a: 0x000d, 0x47b: 0x000d, 0x47c: 0x000d, 0x47d: 0x000d, 0x47e: 0x000d, 0x47f: 0x000d, // Block 0x12, offset 0x480 0x480: 0x000d, 0x481: 0x000d, 0x482: 0x000d, 0x483: 0x000d, 0x484: 0x000d, 0x485: 0x000d, 0x486: 0x000d, 0x487: 0x000d, 0x488: 0x000d, 0x489: 0x000d, 0x48a: 0x000d, 0x48b: 0x000d, 0x48c: 0x000d, 0x48d: 0x000d, 0x48e: 0x000d, 0x48f: 0x000d, 0x490: 0x000d, 0x491: 0x000c, 0x492: 0x000d, 0x493: 0x000d, 0x494: 0x000d, 0x495: 0x000d, 0x496: 0x000d, 0x497: 0x000d, 0x498: 0x000d, 0x499: 0x000d, 0x49a: 0x000d, 0x49b: 0x000d, 0x49c: 0x000d, 0x49d: 0x000d, 0x49e: 0x000d, 0x49f: 0x000d, 0x4a0: 0x000d, 0x4a1: 0x000d, 0x4a2: 0x000d, 0x4a3: 0x000d, 0x4a4: 0x000d, 0x4a5: 0x000d, 0x4a6: 0x000d, 0x4a7: 0x000d, 0x4a8: 0x000d, 0x4a9: 0x000d, 0x4aa: 0x000d, 0x4ab: 0x000d, 0x4ac: 0x000d, 0x4ad: 0x000d, 0x4ae: 0x000d, 0x4af: 0x000d, 0x4b0: 0x000c, 0x4b1: 0x000c, 0x4b2: 0x000c, 0x4b3: 0x000c, 0x4b4: 0x000c, 0x4b5: 0x000c, 0x4b6: 0x000c, 0x4b7: 0x000c, 0x4b8: 0x000c, 0x4b9: 0x000c, 0x4ba: 0x000c, 0x4bb: 0x000c, 0x4bc: 0x000c, 0x4bd: 0x000c, 0x4be: 0x000c, 0x4bf: 0x000c, // Block 0x13, offset 0x4c0 0x4c0: 0x000c, 0x4c1: 0x000c, 0x4c2: 0x000c, 0x4c3: 0x000c, 0x4c4: 0x000c, 0x4c5: 0x000c, 0x4c6: 0x000c, 0x4c7: 0x000c, 0x4c8: 0x000c, 0x4c9: 0x000c, 0x4ca: 0x000c, 0x4cb: 0x000d, 0x4cc: 0x000d, 0x4cd: 0x000d, 0x4ce: 0x000d, 0x4cf: 0x000d, 0x4d0: 0x000d, 0x4d1: 0x000d, 0x4d2: 0x000d, 0x4d3: 0x000d, 0x4d4: 0x000d, 0x4d5: 0x000d, 0x4d6: 0x000d, 0x4d7: 0x000d, 0x4d8: 0x000d, 0x4d9: 0x000d, 0x4da: 0x000d, 0x4db: 0x000d, 0x4dc: 0x000d, 0x4dd: 0x000d, 0x4de: 0x000d, 0x4df: 0x000d, 0x4e0: 0x000d, 0x4e1: 0x000d, 0x4e2: 0x000d, 0x4e3: 0x000d, 0x4e4: 0x000d, 0x4e5: 0x000d, 0x4e6: 0x000d, 0x4e7: 0x000d, 0x4e8: 0x000d, 0x4e9: 0x000d, 0x4ea: 0x000d, 0x4eb: 0x000d, 0x4ec: 0x000d, 0x4ed: 0x000d, 0x4ee: 0x000d, 0x4ef: 0x000d, 0x4f0: 0x000d, 0x4f1: 0x000d, 0x4f2: 0x000d, 0x4f3: 0x000d, 0x4f4: 0x000d, 0x4f5: 0x000d, 0x4f6: 0x000d, 0x4f7: 0x000d, 0x4f8: 0x000d, 0x4f9: 0x000d, 0x4fa: 0x000d, 0x4fb: 0x000d, 0x4fc: 0x000d, 0x4fd: 0x000d, 0x4fe: 0x000d, 0x4ff: 0x000d, // Block 0x14, offset 0x500 0x500: 0x000d, 0x501: 0x000d, 0x502: 0x000d, 0x503: 0x000d, 0x504: 0x000d, 0x505: 0x000d, 0x506: 0x000d, 0x507: 0x000d, 0x508: 0x000d, 0x509: 0x000d, 0x50a: 0x000d, 0x50b: 0x000d, 0x50c: 0x000d, 0x50d: 0x000d, 0x50e: 0x000d, 0x50f: 0x000d, 0x510: 0x000d, 0x511: 0x000d, 0x512: 0x000d, 0x513: 0x000d, 0x514: 0x000d, 0x515: 0x000d, 0x516: 0x000d, 0x517: 0x000d, 0x518: 0x000d, 0x519: 0x000d, 0x51a: 0x000d, 0x51b: 0x000d, 0x51c: 0x000d, 0x51d: 0x000d, 0x51e: 0x000d, 0x51f: 0x000d, 0x520: 0x000d, 0x521: 0x000d, 0x522: 0x000d, 0x523: 0x000d, 0x524: 0x000d, 0x525: 0x000d, 0x526: 0x000c, 0x527: 0x000c, 0x528: 0x000c, 0x529: 0x000c, 0x52a: 0x000c, 0x52b: 0x000c, 0x52c: 0x000c, 0x52d: 0x000c, 0x52e: 0x000c, 0x52f: 0x000c, 0x530: 0x000c, 0x531: 0x000d, 0x532: 0x000d, 0x533: 0x000d, 0x534: 0x000d, 0x535: 0x000d, 0x536: 0x000d, 0x537: 0x000d, 0x538: 0x000d, 0x539: 0x000d, 0x53a: 0x000d, 0x53b: 0x000d, 0x53c: 0x000d, 0x53d: 0x000d, 0x53e: 0x000d, 0x53f: 0x000d, // Block 0x15, offset 0x540 0x540: 0x0001, 0x541: 0x0001, 0x542: 0x0001, 0x543: 0x0001, 0x544: 0x0001, 0x545: 0x0001, 0x546: 0x0001, 0x547: 0x0001, 0x548: 0x0001, 0x549: 0x0001, 0x54a: 0x0001, 0x54b: 0x0001, 0x54c: 0x0001, 0x54d: 0x0001, 0x54e: 0x0001, 0x54f: 0x0001, 0x550: 0x0001, 0x551: 0x0001, 0x552: 0x0001, 0x553: 0x0001, 0x554: 0x0001, 0x555: 0x0001, 0x556: 0x0001, 0x557: 0x0001, 0x558: 0x0001, 0x559: 0x0001, 0x55a: 0x0001, 0x55b: 0x0001, 0x55c: 0x0001, 0x55d: 0x0001, 0x55e: 0x0001, 0x55f: 0x0001, 0x560: 0x0001, 0x561: 0x0001, 0x562: 0x0001, 0x563: 0x0001, 0x564: 0x0001, 0x565: 0x0001, 0x566: 0x0001, 0x567: 0x0001, 0x568: 0x0001, 0x569: 0x0001, 0x56a: 0x0001, 0x56b: 0x000c, 0x56c: 0x000c, 0x56d: 0x000c, 0x56e: 0x000c, 0x56f: 0x000c, 0x570: 0x000c, 0x571: 0x000c, 0x572: 0x000c, 0x573: 0x000c, 0x574: 0x0001, 0x575: 0x0001, 0x576: 0x000a, 0x577: 0x000a, 0x578: 0x000a, 0x579: 0x000a, 0x57a: 0x0001, 0x57b: 0x0001, 0x57c: 0x0001, 0x57d: 0x000c, 0x57e: 0x0001, 0x57f: 0x0001, // Block 0x16, offset 0x580 0x580: 0x0001, 0x581: 0x0001, 0x582: 0x0001, 0x583: 0x0001, 0x584: 0x0001, 0x585: 0x0001, 0x586: 0x0001, 0x587: 0x0001, 0x588: 0x0001, 0x589: 0x0001, 0x58a: 0x0001, 0x58b: 0x0001, 0x58c: 0x0001, 0x58d: 0x0001, 0x58e: 0x0001, 0x58f: 0x0001, 0x590: 0x0001, 0x591: 0x0001, 0x592: 0x0001, 0x593: 0x0001, 0x594: 0x0001, 0x595: 0x0001, 0x596: 0x000c, 0x597: 0x000c, 0x598: 0x000c, 0x599: 0x000c, 0x59a: 0x0001, 0x59b: 0x000c, 0x59c: 0x000c, 0x59d: 0x000c, 0x59e: 0x000c, 0x59f: 0x000c, 0x5a0: 0x000c, 0x5a1: 0x000c, 0x5a2: 0x000c, 0x5a3: 0x000c, 0x5a4: 0x0001, 0x5a5: 0x000c, 0x5a6: 0x000c, 0x5a7: 0x000c, 0x5a8: 0x0001, 0x5a9: 0x000c, 0x5aa: 0x000c, 0x5ab: 0x000c, 0x5ac: 0x000c, 0x5ad: 0x000c, 0x5ae: 0x0001, 0x5af: 0x0001, 0x5b0: 0x0001, 0x5b1: 0x0001, 0x5b2: 0x0001, 0x5b3: 0x0001, 0x5b4: 0x0001, 0x5b5: 0x0001, 0x5b6: 0x0001, 0x5b7: 0x0001, 0x5b8: 0x0001, 0x5b9: 0x0001, 0x5ba: 0x0001, 0x5bb: 0x0001, 0x5bc: 0x0001, 0x5bd: 0x0001, 0x5be: 0x0001, 0x5bf: 0x0001, // Block 0x17, offset 0x5c0 0x5c0: 0x0001, 0x5c1: 0x0001, 0x5c2: 0x0001, 0x5c3: 0x0001, 0x5c4: 0x0001, 0x5c5: 0x0001, 0x5c6: 0x0001, 0x5c7: 0x0001, 0x5c8: 0x0001, 0x5c9: 0x0001, 0x5ca: 0x0001, 0x5cb: 0x0001, 0x5cc: 0x0001, 0x5cd: 0x0001, 0x5ce: 0x0001, 0x5cf: 0x0001, 0x5d0: 0x0001, 0x5d1: 0x0001, 0x5d2: 0x0001, 0x5d3: 0x0001, 0x5d4: 0x0001, 0x5d5: 0x0001, 0x5d6: 0x0001, 0x5d7: 0x0001, 0x5d8: 0x0001, 0x5d9: 0x000c, 0x5da: 0x000c, 0x5db: 0x000c, 0x5dc: 0x0001, 0x5dd: 0x0001, 0x5de: 0x0001, 0x5df: 0x0001, 0x5e0: 0x000d, 0x5e1: 0x000d, 0x5e2: 0x000d, 0x5e3: 0x000d, 0x5e4: 0x000d, 0x5e5: 0x000d, 0x5e6: 0x000d, 0x5e7: 0x000d, 0x5e8: 0x000d, 0x5e9: 0x000d, 0x5ea: 0x000d, 0x5eb: 0x000d, 0x5ec: 0x000d, 0x5ed: 0x000d, 0x5ee: 0x000d, 0x5ef: 0x000d, 0x5f0: 0x0001, 0x5f1: 0x0001, 0x5f2: 0x0001, 0x5f3: 0x0001, 0x5f4: 0x0001, 0x5f5: 0x0001, 0x5f6: 0x0001, 0x5f7: 0x0001, 0x5f8: 0x0001, 0x5f9: 0x0001, 0x5fa: 0x0001, 0x5fb: 0x0001, 0x5fc: 0x0001, 0x5fd: 0x0001, 0x5fe: 0x0001, 0x5ff: 0x0001, // Block 0x18, offset 0x600 0x600: 0x0001, 0x601: 0x0001, 0x602: 0x0001, 0x603: 0x0001, 0x604: 0x0001, 0x605: 0x0001, 0x606: 0x0001, 0x607: 0x0001, 0x608: 0x0001, 0x609: 0x0001, 0x60a: 0x0001, 0x60b: 0x0001, 0x60c: 0x0001, 0x60d: 0x0001, 0x60e: 0x0001, 0x60f: 0x0001, 0x610: 0x0001, 0x611: 0x0001, 0x612: 0x0001, 0x613: 0x0001, 0x614: 0x0001, 0x615: 0x0001, 0x616: 0x0001, 0x617: 0x0001, 0x618: 0x0001, 0x619: 0x0001, 0x61a: 0x0001, 0x61b: 0x0001, 0x61c: 0x0001, 0x61d: 0x0001, 0x61e: 0x0001, 0x61f: 0x0001, 0x620: 0x000d, 0x621: 0x000d, 0x622: 0x000d, 0x623: 0x000d, 0x624: 0x000d, 0x625: 0x000d, 0x626: 0x000d, 0x627: 0x000d, 0x628: 0x000d, 0x629: 0x000d, 0x62a: 0x000d, 0x62b: 0x000d, 0x62c: 0x000d, 0x62d: 0x000d, 0x62e: 0x000d, 0x62f: 0x000d, 0x630: 0x000d, 0x631: 0x000d, 0x632: 0x000d, 0x633: 0x000d, 0x634: 0x000d, 0x635: 0x000d, 0x636: 0x000d, 0x637: 0x000d, 0x638: 0x000d, 0x639: 0x000d, 0x63a: 0x000d, 0x63b: 0x000d, 0x63c: 0x000d, 0x63d: 0x000d, 0x63e: 0x000d, 0x63f: 0x000d, // Block 0x19, offset 0x640 0x640: 0x000d, 0x641: 0x000d, 0x642: 0x000d, 0x643: 0x000d, 0x644: 0x000d, 0x645: 0x000d, 0x646: 0x000d, 0x647: 0x000d, 0x648: 0x000d, 0x649: 0x000d, 0x64a: 0x000d, 0x64b: 0x000d, 0x64c: 0x000d, 0x64d: 0x000d, 0x64e: 0x000d, 0x64f: 0x000d, 0x650: 0x000d, 0x651: 0x000d, 0x652: 0x000d, 0x653: 0x000c, 0x654: 0x000c, 0x655: 0x000c, 0x656: 0x000c, 0x657: 0x000c, 0x658: 0x000c, 0x659: 0x000c, 0x65a: 0x000c, 0x65b: 0x000c, 0x65c: 0x000c, 0x65d: 0x000c, 0x65e: 0x000c, 0x65f: 0x000c, 0x660: 0x000c, 0x661: 0x000c, 0x662: 0x0005, 0x663: 0x000c, 0x664: 0x000c, 0x665: 0x000c, 0x666: 0x000c, 0x667: 0x000c, 0x668: 0x000c, 0x669: 0x000c, 0x66a: 0x000c, 0x66b: 0x000c, 0x66c: 0x000c, 0x66d: 0x000c, 0x66e: 0x000c, 0x66f: 0x000c, 0x670: 0x000c, 0x671: 0x000c, 0x672: 0x000c, 0x673: 0x000c, 0x674: 0x000c, 0x675: 0x000c, 0x676: 0x000c, 0x677: 0x000c, 0x678: 0x000c, 0x679: 0x000c, 0x67a: 0x000c, 0x67b: 0x000c, 0x67c: 0x000c, 0x67d: 0x000c, 0x67e: 0x000c, 0x67f: 0x000c, // Block 0x1a, offset 0x680 0x680: 0x000c, 0x681: 0x000c, 0x682: 0x000c, 0x6ba: 0x000c, 0x6bc: 0x000c, // Block 0x1b, offset 0x6c0 0x6c1: 0x000c, 0x6c2: 0x000c, 0x6c3: 0x000c, 0x6c4: 0x000c, 0x6c5: 0x000c, 0x6c6: 0x000c, 0x6c7: 0x000c, 0x6c8: 0x000c, 0x6cd: 0x000c, 0x6d1: 0x000c, 0x6d2: 0x000c, 0x6d3: 0x000c, 0x6d4: 0x000c, 0x6d5: 0x000c, 0x6d6: 0x000c, 0x6d7: 0x000c, 0x6e2: 0x000c, 0x6e3: 0x000c, // Block 0x1c, offset 0x700 0x701: 0x000c, 0x73c: 0x000c, // Block 0x1d, offset 0x740 0x741: 0x000c, 0x742: 0x000c, 0x743: 0x000c, 0x744: 0x000c, 0x74d: 0x000c, 0x762: 0x000c, 0x763: 0x000c, 0x772: 0x0004, 0x773: 0x0004, 0x77b: 0x0004, 0x77e: 0x000c, // Block 0x1e, offset 0x780 0x781: 0x000c, 0x782: 0x000c, 0x7bc: 0x000c, // Block 0x1f, offset 0x7c0 0x7c1: 0x000c, 0x7c2: 0x000c, 0x7c7: 0x000c, 0x7c8: 0x000c, 0x7cb: 0x000c, 0x7cc: 0x000c, 0x7cd: 0x000c, 0x7d1: 0x000c, 0x7f0: 0x000c, 0x7f1: 0x000c, 0x7f5: 0x000c, // Block 0x20, offset 0x800 0x801: 0x000c, 0x802: 0x000c, 0x803: 0x000c, 0x804: 0x000c, 0x805: 0x000c, 0x807: 0x000c, 0x808: 0x000c, 0x80d: 0x000c, 0x822: 0x000c, 0x823: 0x000c, 0x831: 0x0004, 0x83a: 0x000c, 0x83b: 0x000c, 0x83c: 0x000c, 0x83d: 0x000c, 0x83e: 0x000c, 0x83f: 0x000c, // Block 0x21, offset 0x840 0x841: 0x000c, 0x87c: 0x000c, 0x87f: 0x000c, // Block 0x22, offset 0x880 0x881: 0x000c, 0x882: 0x000c, 0x883: 0x000c, 0x884: 0x000c, 0x88d: 0x000c, 0x895: 0x000c, 0x896: 0x000c, 0x8a2: 0x000c, 0x8a3: 0x000c, // Block 0x23, offset 0x8c0 0x8c2: 0x000c, // Block 0x24, offset 0x900 0x900: 0x000c, 0x90d: 0x000c, 0x933: 0x000a, 0x934: 0x000a, 0x935: 0x000a, 0x936: 0x000a, 0x937: 0x000a, 0x938: 0x000a, 0x939: 0x0004, 0x93a: 0x000a, // Block 0x25, offset 0x940 0x940: 0x000c, 0x944: 0x000c, 0x97e: 0x000c, 0x97f: 0x000c, // Block 0x26, offset 0x980 0x980: 0x000c, 0x986: 0x000c, 0x987: 0x000c, 0x988: 0x000c, 0x98a: 0x000c, 0x98b: 0x000c, 0x98c: 0x000c, 0x98d: 0x000c, 0x995: 0x000c, 0x996: 0x000c, 0x9a2: 0x000c, 0x9a3: 0x000c, 0x9b8: 0x000a, 0x9b9: 0x000a, 0x9ba: 0x000a, 0x9bb: 0x000a, 0x9bc: 0x000a, 0x9bd: 0x000a, 0x9be: 0x000a, // Block 0x27, offset 0x9c0 0x9cc: 0x000c, 0x9cd: 0x000c, 0x9e2: 0x000c, 0x9e3: 0x000c, // Block 0x28, offset 0xa00 0xa00: 0x000c, 0xa01: 0x000c, 0xa3b: 0x000c, 0xa3c: 0x000c, // Block 0x29, offset 0xa40 0xa41: 0x000c, 0xa42: 0x000c, 0xa43: 0x000c, 0xa44: 0x000c, 0xa4d: 0x000c, 0xa62: 0x000c, 0xa63: 0x000c, // Block 0x2a, offset 0xa80 0xa81: 0x000c, // Block 0x2b, offset 0xac0 0xaca: 0x000c, 0xad2: 0x000c, 0xad3: 0x000c, 0xad4: 0x000c, 0xad6: 0x000c, // Block 0x2c, offset 0xb00 0xb31: 0x000c, 0xb34: 0x000c, 0xb35: 0x000c, 0xb36: 0x000c, 0xb37: 0x000c, 0xb38: 0x000c, 0xb39: 0x000c, 0xb3a: 0x000c, 0xb3f: 0x0004, // Block 0x2d, offset 0xb40 0xb47: 0x000c, 0xb48: 0x000c, 0xb49: 0x000c, 0xb4a: 0x000c, 0xb4b: 0x000c, 0xb4c: 0x000c, 0xb4d: 0x000c, 0xb4e: 0x000c, // Block 0x2e, offset 0xb80 0xbb1: 0x000c, 0xbb4: 0x000c, 0xbb5: 0x000c, 0xbb6: 0x000c, 0xbb7: 0x000c, 0xbb8: 0x000c, 0xbb9: 0x000c, 0xbba: 0x000c, 0xbbb: 0x000c, 0xbbc: 0x000c, // Block 0x2f, offset 0xbc0 0xbc8: 0x000c, 0xbc9: 0x000c, 0xbca: 0x000c, 0xbcb: 0x000c, 0xbcc: 0x000c, 0xbcd: 0x000c, // Block 0x30, offset 0xc00 0xc18: 0x000c, 0xc19: 0x000c, 0xc35: 0x000c, 0xc37: 0x000c, 0xc39: 0x000c, 0xc3a: 0x003a, 0xc3b: 0x002a, 0xc3c: 0x003a, 0xc3d: 0x002a, // Block 0x31, offset 0xc40 0xc71: 0x000c, 0xc72: 0x000c, 0xc73: 0x000c, 0xc74: 0x000c, 0xc75: 0x000c, 0xc76: 0x000c, 0xc77: 0x000c, 0xc78: 0x000c, 0xc79: 0x000c, 0xc7a: 0x000c, 0xc7b: 0x000c, 0xc7c: 0x000c, 0xc7d: 0x000c, 0xc7e: 0x000c, // Block 0x32, offset 0xc80 0xc80: 0x000c, 0xc81: 0x000c, 0xc82: 0x000c, 0xc83: 0x000c, 0xc84: 0x000c, 0xc86: 0x000c, 0xc87: 0x000c, 0xc8d: 0x000c, 0xc8e: 0x000c, 0xc8f: 0x000c, 0xc90: 0x000c, 0xc91: 0x000c, 0xc92: 0x000c, 0xc93: 0x000c, 0xc94: 0x000c, 0xc95: 0x000c, 0xc96: 0x000c, 0xc97: 0x000c, 0xc99: 0x000c, 0xc9a: 0x000c, 0xc9b: 0x000c, 0xc9c: 0x000c, 0xc9d: 0x000c, 0xc9e: 0x000c, 0xc9f: 0x000c, 0xca0: 0x000c, 0xca1: 0x000c, 0xca2: 0x000c, 0xca3: 0x000c, 0xca4: 0x000c, 0xca5: 0x000c, 0xca6: 0x000c, 0xca7: 0x000c, 0xca8: 0x000c, 0xca9: 0x000c, 0xcaa: 0x000c, 0xcab: 0x000c, 0xcac: 0x000c, 0xcad: 0x000c, 0xcae: 0x000c, 0xcaf: 0x000c, 0xcb0: 0x000c, 0xcb1: 0x000c, 0xcb2: 0x000c, 0xcb3: 0x000c, 0xcb4: 0x000c, 0xcb5: 0x000c, 0xcb6: 0x000c, 0xcb7: 0x000c, 0xcb8: 0x000c, 0xcb9: 0x000c, 0xcba: 0x000c, 0xcbb: 0x000c, 0xcbc: 0x000c, // Block 0x33, offset 0xcc0 0xcc6: 0x000c, // Block 0x34, offset 0xd00 0xd2d: 0x000c, 0xd2e: 0x000c, 0xd2f: 0x000c, 0xd30: 0x000c, 0xd32: 0x000c, 0xd33: 0x000c, 0xd34: 0x000c, 0xd35: 0x000c, 0xd36: 0x000c, 0xd37: 0x000c, 0xd39: 0x000c, 0xd3a: 0x000c, 0xd3d: 0x000c, 0xd3e: 0x000c, // Block 0x35, offset 0xd40 0xd58: 0x000c, 0xd59: 0x000c, 0xd5e: 0x000c, 0xd5f: 0x000c, 0xd60: 0x000c, 0xd71: 0x000c, 0xd72: 0x000c, 0xd73: 0x000c, 0xd74: 0x000c, // Block 0x36, offset 0xd80 0xd82: 0x000c, 0xd85: 0x000c, 0xd86: 0x000c, 0xd8d: 0x000c, 0xd9d: 0x000c, // Block 0x37, offset 0xdc0 0xddd: 0x000c, 0xdde: 0x000c, 0xddf: 0x000c, // Block 0x38, offset 0xe00 0xe10: 0x000a, 0xe11: 0x000a, 0xe12: 0x000a, 0xe13: 0x000a, 0xe14: 0x000a, 0xe15: 0x000a, 0xe16: 0x000a, 0xe17: 0x000a, 0xe18: 0x000a, 0xe19: 0x000a, // Block 0x39, offset 0xe40 0xe40: 0x000a, // Block 0x3a, offset 0xe80 0xe80: 0x0009, 0xe9b: 0x007a, 0xe9c: 0x006a, // Block 0x3b, offset 0xec0 0xed2: 0x000c, 0xed3: 0x000c, 0xed4: 0x000c, 0xef2: 0x000c, 0xef3: 0x000c, 0xef4: 0x000c, // Block 0x3c, offset 0xf00 0xf12: 0x000c, 0xf13: 0x000c, 0xf32: 0x000c, 0xf33: 0x000c, // Block 0x3d, offset 0xf40 0xf74: 0x000c, 0xf75: 0x000c, 0xf77: 0x000c, 0xf78: 0x000c, 0xf79: 0x000c, 0xf7a: 0x000c, 0xf7b: 0x000c, 0xf7c: 0x000c, 0xf7d: 0x000c, // Block 0x3e, offset 0xf80 0xf86: 0x000c, 0xf89: 0x000c, 0xf8a: 0x000c, 0xf8b: 0x000c, 0xf8c: 0x000c, 0xf8d: 0x000c, 0xf8e: 0x000c, 0xf8f: 0x000c, 0xf90: 0x000c, 0xf91: 0x000c, 0xf92: 0x000c, 0xf93: 0x000c, 0xf9b: 0x0004, 0xf9d: 0x000c, 0xfb0: 0x000a, 0xfb1: 0x000a, 0xfb2: 0x000a, 0xfb3: 0x000a, 0xfb4: 0x000a, 0xfb5: 0x000a, 0xfb6: 0x000a, 0xfb7: 0x000a, 0xfb8: 0x000a, 0xfb9: 0x000a, // Block 0x3f, offset 0xfc0 0xfc0: 0x000a, 0xfc1: 0x000a, 0xfc2: 0x000a, 0xfc3: 0x000a, 0xfc4: 0x000a, 0xfc5: 0x000a, 0xfc6: 0x000a, 0xfc7: 0x000a, 0xfc8: 0x000a, 0xfc9: 0x000a, 0xfca: 0x000a, 0xfcb: 0x000c, 0xfcc: 0x000c, 0xfcd: 0x000c, 0xfce: 0x000b, // Block 0x40, offset 0x1000 0x1005: 0x000c, 0x1006: 0x000c, 0x1029: 0x000c, // Block 0x41, offset 0x1040 0x1060: 0x000c, 0x1061: 0x000c, 0x1062: 0x000c, 0x1067: 0x000c, 0x1068: 0x000c, 0x1072: 0x000c, 0x1079: 0x000c, 0x107a: 0x000c, 0x107b: 0x000c, // Block 0x42, offset 0x1080 0x1080: 0x000a, 0x1084: 0x000a, 0x1085: 0x000a, // Block 0x43, offset 0x10c0 0x10de: 0x000a, 0x10df: 0x000a, 0x10e0: 0x000a, 0x10e1: 0x000a, 0x10e2: 0x000a, 0x10e3: 0x000a, 0x10e4: 0x000a, 0x10e5: 0x000a, 0x10e6: 0x000a, 0x10e7: 0x000a, 0x10e8: 0x000a, 0x10e9: 0x000a, 0x10ea: 0x000a, 0x10eb: 0x000a, 0x10ec: 0x000a, 0x10ed: 0x000a, 0x10ee: 0x000a, 0x10ef: 0x000a, 0x10f0: 0x000a, 0x10f1: 0x000a, 0x10f2: 0x000a, 0x10f3: 0x000a, 0x10f4: 0x000a, 0x10f5: 0x000a, 0x10f6: 0x000a, 0x10f7: 0x000a, 0x10f8: 0x000a, 0x10f9: 0x000a, 0x10fa: 0x000a, 0x10fb: 0x000a, 0x10fc: 0x000a, 0x10fd: 0x000a, 0x10fe: 0x000a, 0x10ff: 0x000a, // Block 0x44, offset 0x1100 0x1117: 0x000c, 0x1118: 0x000c, 0x111b: 0x000c, // Block 0x45, offset 0x1140 0x1156: 0x000c, 0x1158: 0x000c, 0x1159: 0x000c, 0x115a: 0x000c, 0x115b: 0x000c, 0x115c: 0x000c, 0x115d: 0x000c, 0x115e: 0x000c, 0x1160: 0x000c, 0x1162: 0x000c, 0x1165: 0x000c, 0x1166: 0x000c, 0x1167: 0x000c, 0x1168: 0x000c, 0x1169: 0x000c, 0x116a: 0x000c, 0x116b: 0x000c, 0x116c: 0x000c, 0x1173: 0x000c, 0x1174: 0x000c, 0x1175: 0x000c, 0x1176: 0x000c, 0x1177: 0x000c, 0x1178: 0x000c, 0x1179: 0x000c, 0x117a: 0x000c, 0x117b: 0x000c, 0x117c: 0x000c, 0x117f: 0x000c, // Block 0x46, offset 0x1180 0x11b0: 0x000c, 0x11b1: 0x000c, 0x11b2: 0x000c, 0x11b3: 0x000c, 0x11b4: 0x000c, 0x11b5: 0x000c, 0x11b6: 0x000c, 0x11b7: 0x000c, 0x11b8: 0x000c, 0x11b9: 0x000c, 0x11ba: 0x000c, 0x11bb: 0x000c, 0x11bc: 0x000c, 0x11bd: 0x000c, 0x11be: 0x000c, 0x11bf: 0x000c, // Block 0x47, offset 0x11c0 0x11c0: 0x000c, // Block 0x48, offset 0x1200 0x1200: 0x000c, 0x1201: 0x000c, 0x1202: 0x000c, 0x1203: 0x000c, 0x1234: 0x000c, 0x1236: 0x000c, 0x1237: 0x000c, 0x1238: 0x000c, 0x1239: 0x000c, 0x123a: 0x000c, 0x123c: 0x000c, // Block 0x49, offset 0x1240 0x1242: 0x000c, 0x126b: 0x000c, 0x126c: 0x000c, 0x126d: 0x000c, 0x126e: 0x000c, 0x126f: 0x000c, 0x1270: 0x000c, 0x1271: 0x000c, 0x1272: 0x000c, 0x1273: 0x000c, // Block 0x4a, offset 0x1280 0x1280: 0x000c, 0x1281: 0x000c, 0x12a2: 0x000c, 0x12a3: 0x000c, 0x12a4: 0x000c, 0x12a5: 0x000c, 0x12a8: 0x000c, 0x12a9: 0x000c, 0x12ab: 0x000c, 0x12ac: 0x000c, 0x12ad: 0x000c, // Block 0x4b, offset 0x12c0 0x12e6: 0x000c, 0x12e8: 0x000c, 0x12e9: 0x000c, 0x12ed: 0x000c, 0x12ef: 0x000c, 0x12f0: 0x000c, 0x12f1: 0x000c, // Block 0x4c, offset 0x1300 0x132c: 0x000c, 0x132d: 0x000c, 0x132e: 0x000c, 0x132f: 0x000c, 0x1330: 0x000c, 0x1331: 0x000c, 0x1332: 0x000c, 0x1333: 0x000c, 0x1336: 0x000c, 0x1337: 0x000c, // Block 0x4d, offset 0x1340 0x1350: 0x000c, 0x1351: 0x000c, 0x1352: 0x000c, 0x1354: 0x000c, 0x1355: 0x000c, 0x1356: 0x000c, 0x1357: 0x000c, 0x1358: 0x000c, 0x1359: 0x000c, 0x135a: 0x000c, 0x135b: 0x000c, 0x135c: 0x000c, 0x135d: 0x000c, 0x135e: 0x000c, 0x135f: 0x000c, 0x1360: 0x000c, 0x1362: 0x000c, 0x1363: 0x000c, 0x1364: 0x000c, 0x1365: 0x000c, 0x1366: 0x000c, 0x1367: 0x000c, 0x1368: 0x000c, 0x136d: 0x000c, 0x1374: 0x000c, 0x1378: 0x000c, 0x1379: 0x000c, // Block 0x4e, offset 0x1380 0x1380: 0x000c, 0x1381: 0x000c, 0x1382: 0x000c, 0x1383: 0x000c, 0x1384: 0x000c, 0x1385: 0x000c, 0x1386: 0x000c, 0x1387: 0x000c, 0x1388: 0x000c, 0x1389: 0x000c, 0x138a: 0x000c, 0x138b: 0x000c, 0x138c: 0x000c, 0x138d: 0x000c, 0x138e: 0x000c, 0x138f: 0x000c, 0x1390: 0x000c, 0x1391: 0x000c, 0x1392: 0x000c, 0x1393: 0x000c, 0x1394: 0x000c, 0x1395: 0x000c, 0x1396: 0x000c, 0x1397: 0x000c, 0x1398: 0x000c, 0x1399: 0x000c, 0x139a: 0x000c, 0x139b: 0x000c, 0x139c: 0x000c, 0x139d: 0x000c, 0x139e: 0x000c, 0x139f: 0x000c, 0x13a0: 0x000c, 0x13a1: 0x000c, 0x13a2: 0x000c, 0x13a3: 0x000c, 0x13a4: 0x000c, 0x13a5: 0x000c, 0x13a6: 0x000c, 0x13a7: 0x000c, 0x13a8: 0x000c, 0x13a9: 0x000c, 0x13aa: 0x000c, 0x13ab: 0x000c, 0x13ac: 0x000c, 0x13ad: 0x000c, 0x13ae: 0x000c, 0x13af: 0x000c, 0x13b0: 0x000c, 0x13b1: 0x000c, 0x13b2: 0x000c, 0x13b3: 0x000c, 0x13b4: 0x000c, 0x13b5: 0x000c, 0x13b6: 0x000c, 0x13b7: 0x000c, 0x13b8: 0x000c, 0x13b9: 0x000c, 0x13bb: 0x000c, 0x13bc: 0x000c, 0x13bd: 0x000c, 0x13be: 0x000c, 0x13bf: 0x000c, // Block 0x4f, offset 0x13c0 0x13fd: 0x000a, 0x13ff: 0x000a, // Block 0x50, offset 0x1400 0x1400: 0x000a, 0x1401: 0x000a, 0x140d: 0x000a, 0x140e: 0x000a, 0x140f: 0x000a, 0x141d: 0x000a, 0x141e: 0x000a, 0x141f: 0x000a, 0x142d: 0x000a, 0x142e: 0x000a, 0x142f: 0x000a, 0x143d: 0x000a, 0x143e: 0x000a, // Block 0x51, offset 0x1440 0x1440: 0x0009, 0x1441: 0x0009, 0x1442: 0x0009, 0x1443: 0x0009, 0x1444: 0x0009, 0x1445: 0x0009, 0x1446: 0x0009, 0x1447: 0x0009, 0x1448: 0x0009, 0x1449: 0x0009, 0x144a: 0x0009, 0x144b: 0x000b, 0x144c: 0x000b, 0x144d: 0x000b, 0x144f: 0x0001, 0x1450: 0x000a, 0x1451: 0x000a, 0x1452: 0x000a, 0x1453: 0x000a, 0x1454: 0x000a, 0x1455: 0x000a, 0x1456: 0x000a, 0x1457: 0x000a, 0x1458: 0x000a, 0x1459: 0x000a, 0x145a: 0x000a, 0x145b: 0x000a, 0x145c: 0x000a, 0x145d: 0x000a, 0x145e: 0x000a, 0x145f: 0x000a, 0x1460: 0x000a, 0x1461: 0x000a, 0x1462: 0x000a, 0x1463: 0x000a, 0x1464: 0x000a, 0x1465: 0x000a, 0x1466: 0x000a, 0x1467: 0x000a, 0x1468: 0x0009, 0x1469: 0x0007, 0x146a: 0x000e, 0x146b: 0x000e, 0x146c: 0x000e, 0x146d: 0x000e, 0x146e: 0x000e, 0x146f: 0x0006, 0x1470: 0x0004, 0x1471: 0x0004, 0x1472: 0x0004, 0x1473: 0x0004, 0x1474: 0x0004, 0x1475: 0x000a, 0x1476: 0x000a, 0x1477: 0x000a, 0x1478: 0x000a, 0x1479: 0x000a, 0x147a: 0x000a, 0x147b: 0x000a, 0x147c: 0x000a, 0x147d: 0x000a, 0x147e: 0x000a, 0x147f: 0x000a, // Block 0x52, offset 0x1480 0x1480: 0x000a, 0x1481: 0x000a, 0x1482: 0x000a, 0x1483: 0x000a, 0x1484: 0x0006, 0x1485: 0x009a, 0x1486: 0x008a, 0x1487: 0x000a, 0x1488: 0x000a, 0x1489: 0x000a, 0x148a: 0x000a, 0x148b: 0x000a, 0x148c: 0x000a, 0x148d: 0x000a, 0x148e: 0x000a, 0x148f: 0x000a, 0x1490: 0x000a, 0x1491: 0x000a, 0x1492: 0x000a, 0x1493: 0x000a, 0x1494: 0x000a, 0x1495: 0x000a, 0x1496: 0x000a, 0x1497: 0x000a, 0x1498: 0x000a, 0x1499: 0x000a, 0x149a: 0x000a, 0x149b: 0x000a, 0x149c: 0x000a, 0x149d: 0x000a, 0x149e: 0x000a, 0x149f: 0x0009, 0x14a0: 0x000b, 0x14a1: 0x000b, 0x14a2: 0x000b, 0x14a3: 0x000b, 0x14a4: 0x000b, 0x14a5: 0x000b, 0x14a6: 0x000e, 0x14a7: 0x000e, 0x14a8: 0x000e, 0x14a9: 0x000e, 0x14aa: 0x000b, 0x14ab: 0x000b, 0x14ac: 0x000b, 0x14ad: 0x000b, 0x14ae: 0x000b, 0x14af: 0x000b, 0x14b0: 0x0002, 0x14b4: 0x0002, 0x14b5: 0x0002, 0x14b6: 0x0002, 0x14b7: 0x0002, 0x14b8: 0x0002, 0x14b9: 0x0002, 0x14ba: 0x0003, 0x14bb: 0x0003, 0x14bc: 0x000a, 0x14bd: 0x009a, 0x14be: 0x008a, // Block 0x53, offset 0x14c0 0x14c0: 0x0002, 0x14c1: 0x0002, 0x14c2: 0x0002, 0x14c3: 0x0002, 0x14c4: 0x0002, 0x14c5: 0x0002, 0x14c6: 0x0002, 0x14c7: 0x0002, 0x14c8: 0x0002, 0x14c9: 0x0002, 0x14ca: 0x0003, 0x14cb: 0x0003, 0x14cc: 0x000a, 0x14cd: 0x009a, 0x14ce: 0x008a, 0x14e0: 0x0004, 0x14e1: 0x0004, 0x14e2: 0x0004, 0x14e3: 0x0004, 0x14e4: 0x0004, 0x14e5: 0x0004, 0x14e6: 0x0004, 0x14e7: 0x0004, 0x14e8: 0x0004, 0x14e9: 0x0004, 0x14ea: 0x0004, 0x14eb: 0x0004, 0x14ec: 0x0004, 0x14ed: 0x0004, 0x14ee: 0x0004, 0x14ef: 0x0004, 0x14f0: 0x0004, 0x14f1: 0x0004, 0x14f2: 0x0004, 0x14f3: 0x0004, 0x14f4: 0x0004, 0x14f5: 0x0004, 0x14f6: 0x0004, 0x14f7: 0x0004, 0x14f8: 0x0004, 0x14f9: 0x0004, 0x14fa: 0x0004, 0x14fb: 0x0004, 0x14fc: 0x0004, 0x14fd: 0x0004, 0x14fe: 0x0004, 0x14ff: 0x0004, // Block 0x54, offset 0x1500 0x1500: 0x0004, 0x1501: 0x0004, 0x1502: 0x0004, 0x1503: 0x0004, 0x1504: 0x0004, 0x1505: 0x0004, 0x1506: 0x0004, 0x1507: 0x0004, 0x1508: 0x0004, 0x1509: 0x0004, 0x150a: 0x0004, 0x150b: 0x0004, 0x150c: 0x0004, 0x150d: 0x0004, 0x150e: 0x0004, 0x150f: 0x0004, 0x1510: 0x000c, 0x1511: 0x000c, 0x1512: 0x000c, 0x1513: 0x000c, 0x1514: 0x000c, 0x1515: 0x000c, 0x1516: 0x000c, 0x1517: 0x000c, 0x1518: 0x000c, 0x1519: 0x000c, 0x151a: 0x000c, 0x151b: 0x000c, 0x151c: 0x000c, 0x151d: 0x000c, 0x151e: 0x000c, 0x151f: 0x000c, 0x1520: 0x000c, 0x1521: 0x000c, 0x1522: 0x000c, 0x1523: 0x000c, 0x1524: 0x000c, 0x1525: 0x000c, 0x1526: 0x000c, 0x1527: 0x000c, 0x1528: 0x000c, 0x1529: 0x000c, 0x152a: 0x000c, 0x152b: 0x000c, 0x152c: 0x000c, 0x152d: 0x000c, 0x152e: 0x000c, 0x152f: 0x000c, 0x1530: 0x000c, // Block 0x55, offset 0x1540 0x1540: 0x000a, 0x1541: 0x000a, 0x1543: 0x000a, 0x1544: 0x000a, 0x1545: 0x000a, 0x1546: 0x000a, 0x1548: 0x000a, 0x1549: 0x000a, 0x1554: 0x000a, 0x1556: 0x000a, 0x1557: 0x000a, 0x1558: 0x000a, 0x155e: 0x000a, 0x155f: 0x000a, 0x1560: 0x000a, 0x1561: 0x000a, 0x1562: 0x000a, 0x1563: 0x000a, 0x1565: 0x000a, 0x1567: 0x000a, 0x1569: 0x000a, 0x156e: 0x0004, 0x157a: 0x000a, 0x157b: 0x000a, // Block 0x56, offset 0x1580 0x1580: 0x000a, 0x1581: 0x000a, 0x1582: 0x000a, 0x1583: 0x000a, 0x1584: 0x000a, 0x158a: 0x000a, 0x158b: 0x000a, 0x158c: 0x000a, 0x158d: 0x000a, 0x1590: 0x000a, 0x1591: 0x000a, 0x1592: 0x000a, 0x1593: 0x000a, 0x1594: 0x000a, 0x1595: 0x000a, 0x1596: 0x000a, 0x1597: 0x000a, 0x1598: 0x000a, 0x1599: 0x000a, 0x159a: 0x000a, 0x159b: 0x000a, 0x159c: 0x000a, 0x159d: 0x000a, 0x159e: 0x000a, 0x159f: 0x000a, // Block 0x57, offset 0x15c0 0x15c9: 0x000a, 0x15ca: 0x000a, 0x15cb: 0x000a, 0x15d0: 0x000a, 0x15d1: 0x000a, 0x15d2: 0x000a, 0x15d3: 0x000a, 0x15d4: 0x000a, 0x15d5: 0x000a, 0x15d6: 0x000a, 0x15d7: 0x000a, 0x15d8: 0x000a, 0x15d9: 0x000a, 0x15da: 0x000a, 0x15db: 0x000a, 0x15dc: 0x000a, 0x15dd: 0x000a, 0x15de: 0x000a, 0x15df: 0x000a, 0x15e0: 0x000a, 0x15e1: 0x000a, 0x15e2: 0x000a, 0x15e3: 0x000a, 0x15e4: 0x000a, 0x15e5: 0x000a, 0x15e6: 0x000a, 0x15e7: 0x000a, 0x15e8: 0x000a, 0x15e9: 0x000a, 0x15ea: 0x000a, 0x15eb: 0x000a, 0x15ec: 0x000a, 0x15ed: 0x000a, 0x15ee: 0x000a, 0x15ef: 0x000a, 0x15f0: 0x000a, 0x15f1: 0x000a, 0x15f2: 0x000a, 0x15f3: 0x000a, 0x15f4: 0x000a, 0x15f5: 0x000a, 0x15f6: 0x000a, 0x15f7: 0x000a, 0x15f8: 0x000a, 0x15f9: 0x000a, 0x15fa: 0x000a, 0x15fb: 0x000a, 0x15fc: 0x000a, 0x15fd: 0x000a, 0x15fe: 0x000a, 0x15ff: 0x000a, // Block 0x58, offset 0x1600 0x1600: 0x000a, 0x1601: 0x000a, 0x1602: 0x000a, 0x1603: 0x000a, 0x1604: 0x000a, 0x1605: 0x000a, 0x1606: 0x000a, 0x1607: 0x000a, 0x1608: 0x000a, 0x1609: 0x000a, 0x160a: 0x000a, 0x160b: 0x000a, 0x160c: 0x000a, 0x160d: 0x000a, 0x160e: 0x000a, 0x160f: 0x000a, 0x1610: 0x000a, 0x1611: 0x000a, 0x1612: 0x000a, 0x1613: 0x000a, 0x1614: 0x000a, 0x1615: 0x000a, 0x1616: 0x000a, 0x1617: 0x000a, 0x1618: 0x000a, 0x1619: 0x000a, 0x161a: 0x000a, 0x161b: 0x000a, 0x161c: 0x000a, 0x161d: 0x000a, 0x161e: 0x000a, 0x161f: 0x000a, 0x1620: 0x000a, 0x1621: 0x000a, 0x1622: 0x000a, 0x1623: 0x000a, 0x1624: 0x000a, 0x1625: 0x000a, 0x1626: 0x000a, 0x1627: 0x000a, 0x1628: 0x000a, 0x1629: 0x000a, 0x162a: 0x000a, 0x162b: 0x000a, 0x162c: 0x000a, 0x162d: 0x000a, 0x162e: 0x000a, 0x162f: 0x000a, 0x1630: 0x000a, 0x1631: 0x000a, 0x1632: 0x000a, 0x1633: 0x000a, 0x1634: 0x000a, 0x1635: 0x000a, 0x1636: 0x000a, 0x1637: 0x000a, 0x1638: 0x000a, 0x1639: 0x000a, 0x163a: 0x000a, 0x163b: 0x000a, 0x163c: 0x000a, 0x163d: 0x000a, 0x163e: 0x000a, 0x163f: 0x000a, // Block 0x59, offset 0x1640 0x1640: 0x000a, 0x1641: 0x000a, 0x1642: 0x000a, 0x1643: 0x000a, 0x1644: 0x000a, 0x1645: 0x000a, 0x1646: 0x000a, 0x1647: 0x000a, 0x1648: 0x000a, 0x1649: 0x000a, 0x164a: 0x000a, 0x164b: 0x000a, 0x164c: 0x000a, 0x164d: 0x000a, 0x164e: 0x000a, 0x164f: 0x000a, 0x1650: 0x000a, 0x1651: 0x000a, 0x1652: 0x0003, 0x1653: 0x0004, 0x1654: 0x000a, 0x1655: 0x000a, 0x1656: 0x000a, 0x1657: 0x000a, 0x1658: 0x000a, 0x1659: 0x000a, 0x165a: 0x000a, 0x165b: 0x000a, 0x165c: 0x000a, 0x165d: 0x000a, 0x165e: 0x000a, 0x165f: 0x000a, 0x1660: 0x000a, 0x1661: 0x000a, 0x1662: 0x000a, 0x1663: 0x000a, 0x1664: 0x000a, 0x1665: 0x000a, 0x1666: 0x000a, 0x1667: 0x000a, 0x1668: 0x000a, 0x1669: 0x000a, 0x166a: 0x000a, 0x166b: 0x000a, 0x166c: 0x000a, 0x166d: 0x000a, 0x166e: 0x000a, 0x166f: 0x000a, 0x1670: 0x000a, 0x1671: 0x000a, 0x1672: 0x000a, 0x1673: 0x000a, 0x1674: 0x000a, 0x1675: 0x000a, 0x1676: 0x000a, 0x1677: 0x000a, 0x1678: 0x000a, 0x1679: 0x000a, 0x167a: 0x000a, 0x167b: 0x000a, 0x167c: 0x000a, 0x167d: 0x000a, 0x167e: 0x000a, 0x167f: 0x000a, // Block 0x5a, offset 0x1680 0x1680: 0x000a, 0x1681: 0x000a, 0x1682: 0x000a, 0x1683: 0x000a, 0x1684: 0x000a, 0x1685: 0x000a, 0x1686: 0x000a, 0x1687: 0x000a, 0x1688: 0x003a, 0x1689: 0x002a, 0x168a: 0x003a, 0x168b: 0x002a, 0x168c: 0x000a, 0x168d: 0x000a, 0x168e: 0x000a, 0x168f: 0x000a, 0x1690: 0x000a, 0x1691: 0x000a, 0x1692: 0x000a, 0x1693: 0x000a, 0x1694: 0x000a, 0x1695: 0x000a, 0x1696: 0x000a, 0x1697: 0x000a, 0x1698: 0x000a, 0x1699: 0x000a, 0x169a: 0x000a, 0x169b: 0x000a, 0x169c: 0x000a, 0x169d: 0x000a, 0x169e: 0x000a, 0x169f: 0x000a, 0x16a0: 0x000a, 0x16a1: 0x000a, 0x16a2: 0x000a, 0x16a3: 0x000a, 0x16a4: 0x000a, 0x16a5: 0x000a, 0x16a6: 0x000a, 0x16a7: 0x000a, 0x16a8: 0x000a, 0x16a9: 0x009a, 0x16aa: 0x008a, 0x16ab: 0x000a, 0x16ac: 0x000a, 0x16ad: 0x000a, 0x16ae: 0x000a, 0x16af: 0x000a, 0x16b0: 0x000a, 0x16b1: 0x000a, 0x16b2: 0x000a, 0x16b3: 0x000a, 0x16b4: 0x000a, 0x16b5: 0x000a, // Block 0x5b, offset 0x16c0 0x16fb: 0x000a, 0x16fc: 0x000a, 0x16fd: 0x000a, 0x16fe: 0x000a, 0x16ff: 0x000a, // Block 0x5c, offset 0x1700 0x1700: 0x000a, 0x1701: 0x000a, 0x1702: 0x000a, 0x1703: 0x000a, 0x1704: 0x000a, 0x1705: 0x000a, 0x1706: 0x000a, 0x1707: 0x000a, 0x1708: 0x000a, 0x1709: 0x000a, 0x170a: 0x000a, 0x170b: 0x000a, 0x170c: 0x000a, 0x170d: 0x000a, 0x170e: 0x000a, 0x170f: 0x000a, 0x1710: 0x000a, 0x1711: 0x000a, 0x1712: 0x000a, 0x1713: 0x000a, 0x1714: 0x000a, 0x1716: 0x000a, 0x1717: 0x000a, 0x1718: 0x000a, 0x1719: 0x000a, 0x171a: 0x000a, 0x171b: 0x000a, 0x171c: 0x000a, 0x171d: 0x000a, 0x171e: 0x000a, 0x171f: 0x000a, 0x1720: 0x000a, 0x1721: 0x000a, 0x1722: 0x000a, 0x1723: 0x000a, 0x1724: 0x000a, 0x1725: 0x000a, 0x1726: 0x000a, 0x1727: 0x000a, 0x1728: 0x000a, 0x1729: 0x000a, 0x172a: 0x000a, 0x172b: 0x000a, 0x172c: 0x000a, 0x172d: 0x000a, 0x172e: 0x000a, 0x172f: 0x000a, 0x1730: 0x000a, 0x1731: 0x000a, 0x1732: 0x000a, 0x1733: 0x000a, 0x1734: 0x000a, 0x1735: 0x000a, 0x1736: 0x000a, 0x1737: 0x000a, 0x1738: 0x000a, 0x1739: 0x000a, 0x173a: 0x000a, 0x173b: 0x000a, 0x173c: 0x000a, 0x173d: 0x000a, 0x173e: 0x000a, 0x173f: 0x000a, // Block 0x5d, offset 0x1740 0x1740: 0x000a, 0x1741: 0x000a, 0x1742: 0x000a, 0x1743: 0x000a, 0x1744: 0x000a, 0x1745: 0x000a, 0x1746: 0x000a, 0x1747: 0x000a, 0x1748: 0x000a, 0x1749: 0x000a, 0x174a: 0x000a, 0x174b: 0x000a, 0x174c: 0x000a, 0x174d: 0x000a, 0x174e: 0x000a, 0x174f: 0x000a, 0x1750: 0x000a, 0x1751: 0x000a, 0x1752: 0x000a, 0x1753: 0x000a, 0x1754: 0x000a, 0x1755: 0x000a, 0x1756: 0x000a, 0x1757: 0x000a, 0x1758: 0x000a, 0x1759: 0x000a, 0x175a: 0x000a, 0x175b: 0x000a, 0x175c: 0x000a, 0x175d: 0x000a, 0x175e: 0x000a, 0x175f: 0x000a, 0x1760: 0x000a, 0x1761: 0x000a, 0x1762: 0x000a, 0x1763: 0x000a, 0x1764: 0x000a, 0x1765: 0x000a, 0x1766: 0x000a, // Block 0x5e, offset 0x1780 0x1780: 0x000a, 0x1781: 0x000a, 0x1782: 0x000a, 0x1783: 0x000a, 0x1784: 0x000a, 0x1785: 0x000a, 0x1786: 0x000a, 0x1787: 0x000a, 0x1788: 0x000a, 0x1789: 0x000a, 0x178a: 0x000a, 0x17a0: 0x000a, 0x17a1: 0x000a, 0x17a2: 0x000a, 0x17a3: 0x000a, 0x17a4: 0x000a, 0x17a5: 0x000a, 0x17a6: 0x000a, 0x17a7: 0x000a, 0x17a8: 0x000a, 0x17a9: 0x000a, 0x17aa: 0x000a, 0x17ab: 0x000a, 0x17ac: 0x000a, 0x17ad: 0x000a, 0x17ae: 0x000a, 0x17af: 0x000a, 0x17b0: 0x000a, 0x17b1: 0x000a, 0x17b2: 0x000a, 0x17b3: 0x000a, 0x17b4: 0x000a, 0x17b5: 0x000a, 0x17b6: 0x000a, 0x17b7: 0x000a, 0x17b8: 0x000a, 0x17b9: 0x000a, 0x17ba: 0x000a, 0x17bb: 0x000a, 0x17bc: 0x000a, 0x17bd: 0x000a, 0x17be: 0x000a, 0x17bf: 0x000a, // Block 0x5f, offset 0x17c0 0x17c0: 0x000a, 0x17c1: 0x000a, 0x17c2: 0x000a, 0x17c3: 0x000a, 0x17c4: 0x000a, 0x17c5: 0x000a, 0x17c6: 0x000a, 0x17c7: 0x000a, 0x17c8: 0x0002, 0x17c9: 0x0002, 0x17ca: 0x0002, 0x17cb: 0x0002, 0x17cc: 0x0002, 0x17cd: 0x0002, 0x17ce: 0x0002, 0x17cf: 0x0002, 0x17d0: 0x0002, 0x17d1: 0x0002, 0x17d2: 0x0002, 0x17d3: 0x0002, 0x17d4: 0x0002, 0x17d5: 0x0002, 0x17d6: 0x0002, 0x17d7: 0x0002, 0x17d8: 0x0002, 0x17d9: 0x0002, 0x17da: 0x0002, 0x17db: 0x0002, // Block 0x60, offset 0x1800 0x182a: 0x000a, 0x182b: 0x000a, 0x182c: 0x000a, 0x182d: 0x000a, 0x182e: 0x000a, 0x182f: 0x000a, 0x1830: 0x000a, 0x1831: 0x000a, 0x1832: 0x000a, 0x1833: 0x000a, 0x1834: 0x000a, 0x1835: 0x000a, 0x1836: 0x000a, 0x1837: 0x000a, 0x1838: 0x000a, 0x1839: 0x000a, 0x183a: 0x000a, 0x183b: 0x000a, 0x183c: 0x000a, 0x183d: 0x000a, 0x183e: 0x000a, 0x183f: 0x000a, // Block 0x61, offset 0x1840 0x1840: 0x000a, 0x1841: 0x000a, 0x1842: 0x000a, 0x1843: 0x000a, 0x1844: 0x000a, 0x1845: 0x000a, 0x1846: 0x000a, 0x1847: 0x000a, 0x1848: 0x000a, 0x1849: 0x000a, 0x184a: 0x000a, 0x184b: 0x000a, 0x184c: 0x000a, 0x184d: 0x000a, 0x184e: 0x000a, 0x184f: 0x000a, 0x1850: 0x000a, 0x1851: 0x000a, 0x1852: 0x000a, 0x1853: 0x000a, 0x1854: 0x000a, 0x1855: 0x000a, 0x1856: 0x000a, 0x1857: 0x000a, 0x1858: 0x000a, 0x1859: 0x000a, 0x185a: 0x000a, 0x185b: 0x000a, 0x185c: 0x000a, 0x185d: 0x000a, 0x185e: 0x000a, 0x185f: 0x000a, 0x1860: 0x000a, 0x1861: 0x000a, 0x1862: 0x000a, 0x1863: 0x000a, 0x1864: 0x000a, 0x1865: 0x000a, 0x1866: 0x000a, 0x1867: 0x000a, 0x1868: 0x000a, 0x1869: 0x000a, 0x186a: 0x000a, 0x186b: 0x000a, 0x186d: 0x000a, 0x186e: 0x000a, 0x186f: 0x000a, 0x1870: 0x000a, 0x1871: 0x000a, 0x1872: 0x000a, 0x1873: 0x000a, 0x1874: 0x000a, 0x1875: 0x000a, 0x1876: 0x000a, 0x1877: 0x000a, 0x1878: 0x000a, 0x1879: 0x000a, 0x187a: 0x000a, 0x187b: 0x000a, 0x187c: 0x000a, 0x187d: 0x000a, 0x187e: 0x000a, 0x187f: 0x000a, // Block 0x62, offset 0x1880 0x1880: 0x000a, 0x1881: 0x000a, 0x1882: 0x000a, 0x1883: 0x000a, 0x1884: 0x000a, 0x1885: 0x000a, 0x1886: 0x000a, 0x1887: 0x000a, 0x1888: 0x000a, 0x1889: 0x000a, 0x188a: 0x000a, 0x188b: 0x000a, 0x188c: 0x000a, 0x188d: 0x000a, 0x188e: 0x000a, 0x188f: 0x000a, 0x1890: 0x000a, 0x1891: 0x000a, 0x1892: 0x000a, 0x1893: 0x000a, 0x1894: 0x000a, 0x1895: 0x000a, 0x1896: 0x000a, 0x1897: 0x000a, 0x1898: 0x000a, 0x1899: 0x000a, 0x189a: 0x000a, 0x189b: 0x000a, 0x189c: 0x000a, 0x189d: 0x000a, 0x189e: 0x000a, 0x189f: 0x000a, 0x18a0: 0x000a, 0x18a1: 0x000a, 0x18a2: 0x000a, 0x18a3: 0x000a, 0x18a4: 0x000a, 0x18a5: 0x000a, 0x18a6: 0x000a, 0x18a7: 0x000a, 0x18a8: 0x003a, 0x18a9: 0x002a, 0x18aa: 0x003a, 0x18ab: 0x002a, 0x18ac: 0x003a, 0x18ad: 0x002a, 0x18ae: 0x003a, 0x18af: 0x002a, 0x18b0: 0x003a, 0x18b1: 0x002a, 0x18b2: 0x003a, 0x18b3: 0x002a, 0x18b4: 0x003a, 0x18b5: 0x002a, 0x18b6: 0x000a, 0x18b7: 0x000a, 0x18b8: 0x000a, 0x18b9: 0x000a, 0x18ba: 0x000a, 0x18bb: 0x000a, 0x18bc: 0x000a, 0x18bd: 0x000a, 0x18be: 0x000a, 0x18bf: 0x000a, // Block 0x63, offset 0x18c0 0x18c0: 0x000a, 0x18c1: 0x000a, 0x18c2: 0x000a, 0x18c3: 0x000a, 0x18c4: 0x000a, 0x18c5: 0x009a, 0x18c6: 0x008a, 0x18c7: 0x000a, 0x18c8: 0x000a, 0x18c9: 0x000a, 0x18ca: 0x000a, 0x18cb: 0x000a, 0x18cc: 0x000a, 0x18cd: 0x000a, 0x18ce: 0x000a, 0x18cf: 0x000a, 0x18d0: 0x000a, 0x18d1: 0x000a, 0x18d2: 0x000a, 0x18d3: 0x000a, 0x18d4: 0x000a, 0x18d5: 0x000a, 0x18d6: 0x000a, 0x18d7: 0x000a, 0x18d8: 0x000a, 0x18d9: 0x000a, 0x18da: 0x000a, 0x18db: 0x000a, 0x18dc: 0x000a, 0x18dd: 0x000a, 0x18de: 0x000a, 0x18df: 0x000a, 0x18e0: 0x000a, 0x18e1: 0x000a, 0x18e2: 0x000a, 0x18e3: 0x000a, 0x18e4: 0x000a, 0x18e5: 0x000a, 0x18e6: 0x003a, 0x18e7: 0x002a, 0x18e8: 0x003a, 0x18e9: 0x002a, 0x18ea: 0x003a, 0x18eb: 0x002a, 0x18ec: 0x003a, 0x18ed: 0x002a, 0x18ee: 0x003a, 0x18ef: 0x002a, 0x18f0: 0x000a, 0x18f1: 0x000a, 0x18f2: 0x000a, 0x18f3: 0x000a, 0x18f4: 0x000a, 0x18f5: 0x000a, 0x18f6: 0x000a, 0x18f7: 0x000a, 0x18f8: 0x000a, 0x18f9: 0x000a, 0x18fa: 0x000a, 0x18fb: 0x000a, 0x18fc: 0x000a, 0x18fd: 0x000a, 0x18fe: 0x000a, 0x18ff: 0x000a, // Block 0x64, offset 0x1900 0x1900: 0x000a, 0x1901: 0x000a, 0x1902: 0x000a, 0x1903: 0x007a, 0x1904: 0x006a, 0x1905: 0x009a, 0x1906: 0x008a, 0x1907: 0x00ba, 0x1908: 0x00aa, 0x1909: 0x009a, 0x190a: 0x008a, 0x190b: 0x007a, 0x190c: 0x006a, 0x190d: 0x00da, 0x190e: 0x002a, 0x190f: 0x003a, 0x1910: 0x00ca, 0x1911: 0x009a, 0x1912: 0x008a, 0x1913: 0x007a, 0x1914: 0x006a, 0x1915: 0x009a, 0x1916: 0x008a, 0x1917: 0x00ba, 0x1918: 0x00aa, 0x1919: 0x000a, 0x191a: 0x000a, 0x191b: 0x000a, 0x191c: 0x000a, 0x191d: 0x000a, 0x191e: 0x000a, 0x191f: 0x000a, 0x1920: 0x000a, 0x1921: 0x000a, 0x1922: 0x000a, 0x1923: 0x000a, 0x1924: 0x000a, 0x1925: 0x000a, 0x1926: 0x000a, 0x1927: 0x000a, 0x1928: 0x000a, 0x1929: 0x000a, 0x192a: 0x000a, 0x192b: 0x000a, 0x192c: 0x000a, 0x192d: 0x000a, 0x192e: 0x000a, 0x192f: 0x000a, 0x1930: 0x000a, 0x1931: 0x000a, 0x1932: 0x000a, 0x1933: 0x000a, 0x1934: 0x000a, 0x1935: 0x000a, 0x1936: 0x000a, 0x1937: 0x000a, 0x1938: 0x000a, 0x1939: 0x000a, 0x193a: 0x000a, 0x193b: 0x000a, 0x193c: 0x000a, 0x193d: 0x000a, 0x193e: 0x000a, 0x193f: 0x000a, // Block 0x65, offset 0x1940 0x1940: 0x000a, 0x1941: 0x000a, 0x1942: 0x000a, 0x1943: 0x000a, 0x1944: 0x000a, 0x1945: 0x000a, 0x1946: 0x000a, 0x1947: 0x000a, 0x1948: 0x000a, 0x1949: 0x000a, 0x194a: 0x000a, 0x194b: 0x000a, 0x194c: 0x000a, 0x194d: 0x000a, 0x194e: 0x000a, 0x194f: 0x000a, 0x1950: 0x000a, 0x1951: 0x000a, 0x1952: 0x000a, 0x1953: 0x000a, 0x1954: 0x000a, 0x1955: 0x000a, 0x1956: 0x000a, 0x1957: 0x000a, 0x1958: 0x003a, 0x1959: 0x002a, 0x195a: 0x003a, 0x195b: 0x002a, 0x195c: 0x000a, 0x195d: 0x000a, 0x195e: 0x000a, 0x195f: 0x000a, 0x1960: 0x000a, 0x1961: 0x000a, 0x1962: 0x000a, 0x1963: 0x000a, 0x1964: 0x000a, 0x1965: 0x000a, 0x1966: 0x000a, 0x1967: 0x000a, 0x1968: 0x000a, 0x1969: 0x000a, 0x196a: 0x000a, 0x196b: 0x000a, 0x196c: 0x000a, 0x196d: 0x000a, 0x196e: 0x000a, 0x196f: 0x000a, 0x1970: 0x000a, 0x1971: 0x000a, 0x1972: 0x000a, 0x1973: 0x000a, 0x1974: 0x000a, 0x1975: 0x000a, 0x1976: 0x000a, 0x1977: 0x000a, 0x1978: 0x000a, 0x1979: 0x000a, 0x197a: 0x000a, 0x197b: 0x000a, 0x197c: 0x003a, 0x197d: 0x002a, 0x197e: 0x000a, 0x197f: 0x000a, // Block 0x66, offset 0x1980 0x1980: 0x000a, 0x1981: 0x000a, 0x1982: 0x000a, 0x1983: 0x000a, 0x1984: 0x000a, 0x1985: 0x000a, 0x1986: 0x000a, 0x1987: 0x000a, 0x1988: 0x000a, 0x1989: 0x000a, 0x198a: 0x000a, 0x198b: 0x000a, 0x198c: 0x000a, 0x198d: 0x000a, 0x198e: 0x000a, 0x198f: 0x000a, 0x1990: 0x000a, 0x1991: 0x000a, 0x1992: 0x000a, 0x1993: 0x000a, 0x1994: 0x000a, 0x1995: 0x000a, 0x1996: 0x000a, 0x1997: 0x000a, 0x1998: 0x000a, 0x1999: 0x000a, 0x199a: 0x000a, 0x199b: 0x000a, 0x199c: 0x000a, 0x199d: 0x000a, 0x199e: 0x000a, 0x199f: 0x000a, 0x19a0: 0x000a, 0x19a1: 0x000a, 0x19a2: 0x000a, 0x19a3: 0x000a, 0x19a4: 0x000a, 0x19a5: 0x000a, 0x19a6: 0x000a, 0x19a7: 0x000a, 0x19a8: 0x000a, 0x19a9: 0x000a, 0x19aa: 0x000a, 0x19ab: 0x000a, 0x19ac: 0x000a, 0x19ad: 0x000a, 0x19ae: 0x000a, 0x19af: 0x000a, 0x19b0: 0x000a, 0x19b1: 0x000a, 0x19b2: 0x000a, 0x19b3: 0x000a, 0x19b6: 0x000a, 0x19b7: 0x000a, 0x19b8: 0x000a, 0x19b9: 0x000a, 0x19ba: 0x000a, 0x19bb: 0x000a, 0x19bc: 0x000a, 0x19bd: 0x000a, 0x19be: 0x000a, 0x19bf: 0x000a, // Block 0x67, offset 0x19c0 0x19c0: 0x000a, 0x19c1: 0x000a, 0x19c2: 0x000a, 0x19c3: 0x000a, 0x19c4: 0x000a, 0x19c5: 0x000a, 0x19c6: 0x000a, 0x19c7: 0x000a, 0x19c8: 0x000a, 0x19c9: 0x000a, 0x19ca: 0x000a, 0x19cb: 0x000a, 0x19cc: 0x000a, 0x19cd: 0x000a, 0x19ce: 0x000a, 0x19cf: 0x000a, 0x19d0: 0x000a, 0x19d1: 0x000a, 0x19d2: 0x000a, 0x19d3: 0x000a, 0x19d4: 0x000a, 0x19d5: 0x000a, 0x19d7: 0x000a, 0x19d8: 0x000a, 0x19d9: 0x000a, 0x19da: 0x000a, 0x19db: 0x000a, 0x19dc: 0x000a, 0x19dd: 0x000a, 0x19de: 0x000a, 0x19df: 0x000a, 0x19e0: 0x000a, 0x19e1: 0x000a, 0x19e2: 0x000a, 0x19e3: 0x000a, 0x19e4: 0x000a, 0x19e5: 0x000a, 0x19e6: 0x000a, 0x19e7: 0x000a, 0x19e8: 0x000a, 0x19e9: 0x000a, 0x19ea: 0x000a, 0x19eb: 0x000a, 0x19ec: 0x000a, 0x19ed: 0x000a, 0x19ee: 0x000a, 0x19ef: 0x000a, 0x19f0: 0x000a, 0x19f1: 0x000a, 0x19f2: 0x000a, 0x19f3: 0x000a, 0x19f4: 0x000a, 0x19f5: 0x000a, 0x19f6: 0x000a, 0x19f7: 0x000a, 0x19f8: 0x000a, 0x19f9: 0x000a, 0x19fa: 0x000a, 0x19fb: 0x000a, 0x19fc: 0x000a, 0x19fd: 0x000a, 0x19fe: 0x000a, 0x19ff: 0x000a, // Block 0x68, offset 0x1a00 0x1a25: 0x000a, 0x1a26: 0x000a, 0x1a27: 0x000a, 0x1a28: 0x000a, 0x1a29: 0x000a, 0x1a2a: 0x000a, 0x1a2f: 0x000c, 0x1a30: 0x000c, 0x1a31: 0x000c, 0x1a39: 0x000a, 0x1a3a: 0x000a, 0x1a3b: 0x000a, 0x1a3c: 0x000a, 0x1a3d: 0x000a, 0x1a3e: 0x000a, 0x1a3f: 0x000a, // Block 0x69, offset 0x1a40 0x1a7f: 0x000c, // Block 0x6a, offset 0x1a80 0x1aa0: 0x000c, 0x1aa1: 0x000c, 0x1aa2: 0x000c, 0x1aa3: 0x000c, 0x1aa4: 0x000c, 0x1aa5: 0x000c, 0x1aa6: 0x000c, 0x1aa7: 0x000c, 0x1aa8: 0x000c, 0x1aa9: 0x000c, 0x1aaa: 0x000c, 0x1aab: 0x000c, 0x1aac: 0x000c, 0x1aad: 0x000c, 0x1aae: 0x000c, 0x1aaf: 0x000c, 0x1ab0: 0x000c, 0x1ab1: 0x000c, 0x1ab2: 0x000c, 0x1ab3: 0x000c, 0x1ab4: 0x000c, 0x1ab5: 0x000c, 0x1ab6: 0x000c, 0x1ab7: 0x000c, 0x1ab8: 0x000c, 0x1ab9: 0x000c, 0x1aba: 0x000c, 0x1abb: 0x000c, 0x1abc: 0x000c, 0x1abd: 0x000c, 0x1abe: 0x000c, 0x1abf: 0x000c, // Block 0x6b, offset 0x1ac0 0x1ac0: 0x000a, 0x1ac1: 0x000a, 0x1ac2: 0x000a, 0x1ac3: 0x000a, 0x1ac4: 0x000a, 0x1ac5: 0x000a, 0x1ac6: 0x000a, 0x1ac7: 0x000a, 0x1ac8: 0x000a, 0x1ac9: 0x000a, 0x1aca: 0x000a, 0x1acb: 0x000a, 0x1acc: 0x000a, 0x1acd: 0x000a, 0x1ace: 0x000a, 0x1acf: 0x000a, 0x1ad0: 0x000a, 0x1ad1: 0x000a, 0x1ad2: 0x000a, 0x1ad3: 0x000a, 0x1ad4: 0x000a, 0x1ad5: 0x000a, 0x1ad6: 0x000a, 0x1ad7: 0x000a, 0x1ad8: 0x000a, 0x1ad9: 0x000a, 0x1ada: 0x000a, 0x1adb: 0x000a, 0x1adc: 0x000a, 0x1add: 0x000a, 0x1ade: 0x000a, 0x1adf: 0x000a, 0x1ae0: 0x000a, 0x1ae1: 0x000a, 0x1ae2: 0x003a, 0x1ae3: 0x002a, 0x1ae4: 0x003a, 0x1ae5: 0x002a, 0x1ae6: 0x003a, 0x1ae7: 0x002a, 0x1ae8: 0x003a, 0x1ae9: 0x002a, 0x1aea: 0x000a, 0x1aeb: 0x000a, 0x1aec: 0x000a, 0x1aed: 0x000a, 0x1aee: 0x000a, 0x1aef: 0x000a, 0x1af0: 0x000a, 0x1af1: 0x000a, 0x1af2: 0x000a, 0x1af3: 0x000a, 0x1af4: 0x000a, 0x1af5: 0x000a, 0x1af6: 0x000a, 0x1af7: 0x000a, 0x1af8: 0x000a, 0x1af9: 0x000a, 0x1afa: 0x000a, 0x1afb: 0x000a, 0x1afc: 0x000a, 0x1afd: 0x000a, 0x1afe: 0x000a, 0x1aff: 0x000a, // Block 0x6c, offset 0x1b00 0x1b00: 0x000a, 0x1b01: 0x000a, 0x1b02: 0x000a, 0x1b03: 0x000a, 0x1b04: 0x000a, 0x1b05: 0x000a, 0x1b06: 0x000a, 0x1b07: 0x000a, 0x1b08: 0x000a, 0x1b09: 0x000a, 0x1b0a: 0x000a, 0x1b0b: 0x000a, 0x1b0c: 0x000a, 0x1b0d: 0x000a, 0x1b0e: 0x000a, 0x1b0f: 0x000a, 0x1b10: 0x000a, 0x1b11: 0x000a, 0x1b12: 0x000a, // Block 0x6d, offset 0x1b40 0x1b40: 0x000a, 0x1b41: 0x000a, 0x1b42: 0x000a, 0x1b43: 0x000a, 0x1b44: 0x000a, 0x1b45: 0x000a, 0x1b46: 0x000a, 0x1b47: 0x000a, 0x1b48: 0x000a, 0x1b49: 0x000a, 0x1b4a: 0x000a, 0x1b4b: 0x000a, 0x1b4c: 0x000a, 0x1b4d: 0x000a, 0x1b4e: 0x000a, 0x1b4f: 0x000a, 0x1b50: 0x000a, 0x1b51: 0x000a, 0x1b52: 0x000a, 0x1b53: 0x000a, 0x1b54: 0x000a, 0x1b55: 0x000a, 0x1b56: 0x000a, 0x1b57: 0x000a, 0x1b58: 0x000a, 0x1b59: 0x000a, 0x1b5b: 0x000a, 0x1b5c: 0x000a, 0x1b5d: 0x000a, 0x1b5e: 0x000a, 0x1b5f: 0x000a, 0x1b60: 0x000a, 0x1b61: 0x000a, 0x1b62: 0x000a, 0x1b63: 0x000a, 0x1b64: 0x000a, 0x1b65: 0x000a, 0x1b66: 0x000a, 0x1b67: 0x000a, 0x1b68: 0x000a, 0x1b69: 0x000a, 0x1b6a: 0x000a, 0x1b6b: 0x000a, 0x1b6c: 0x000a, 0x1b6d: 0x000a, 0x1b6e: 0x000a, 0x1b6f: 0x000a, 0x1b70: 0x000a, 0x1b71: 0x000a, 0x1b72: 0x000a, 0x1b73: 0x000a, 0x1b74: 0x000a, 0x1b75: 0x000a, 0x1b76: 0x000a, 0x1b77: 0x000a, 0x1b78: 0x000a, 0x1b79: 0x000a, 0x1b7a: 0x000a, 0x1b7b: 0x000a, 0x1b7c: 0x000a, 0x1b7d: 0x000a, 0x1b7e: 0x000a, 0x1b7f: 0x000a, // Block 0x6e, offset 0x1b80 0x1b80: 0x000a, 0x1b81: 0x000a, 0x1b82: 0x000a, 0x1b83: 0x000a, 0x1b84: 0x000a, 0x1b85: 0x000a, 0x1b86: 0x000a, 0x1b87: 0x000a, 0x1b88: 0x000a, 0x1b89: 0x000a, 0x1b8a: 0x000a, 0x1b8b: 0x000a, 0x1b8c: 0x000a, 0x1b8d: 0x000a, 0x1b8e: 0x000a, 0x1b8f: 0x000a, 0x1b90: 0x000a, 0x1b91: 0x000a, 0x1b92: 0x000a, 0x1b93: 0x000a, 0x1b94: 0x000a, 0x1b95: 0x000a, 0x1b96: 0x000a, 0x1b97: 0x000a, 0x1b98: 0x000a, 0x1b99: 0x000a, 0x1b9a: 0x000a, 0x1b9b: 0x000a, 0x1b9c: 0x000a, 0x1b9d: 0x000a, 0x1b9e: 0x000a, 0x1b9f: 0x000a, 0x1ba0: 0x000a, 0x1ba1: 0x000a, 0x1ba2: 0x000a, 0x1ba3: 0x000a, 0x1ba4: 0x000a, 0x1ba5: 0x000a, 0x1ba6: 0x000a, 0x1ba7: 0x000a, 0x1ba8: 0x000a, 0x1ba9: 0x000a, 0x1baa: 0x000a, 0x1bab: 0x000a, 0x1bac: 0x000a, 0x1bad: 0x000a, 0x1bae: 0x000a, 0x1baf: 0x000a, 0x1bb0: 0x000a, 0x1bb1: 0x000a, 0x1bb2: 0x000a, 0x1bb3: 0x000a, // Block 0x6f, offset 0x1bc0 0x1bc0: 0x000a, 0x1bc1: 0x000a, 0x1bc2: 0x000a, 0x1bc3: 0x000a, 0x1bc4: 0x000a, 0x1bc5: 0x000a, 0x1bc6: 0x000a, 0x1bc7: 0x000a, 0x1bc8: 0x000a, 0x1bc9: 0x000a, 0x1bca: 0x000a, 0x1bcb: 0x000a, 0x1bcc: 0x000a, 0x1bcd: 0x000a, 0x1bce: 0x000a, 0x1bcf: 0x000a, 0x1bd0: 0x000a, 0x1bd1: 0x000a, 0x1bd2: 0x000a, 0x1bd3: 0x000a, 0x1bd4: 0x000a, 0x1bd5: 0x000a, 0x1bf0: 0x000a, 0x1bf1: 0x000a, 0x1bf2: 0x000a, 0x1bf3: 0x000a, 0x1bf4: 0x000a, 0x1bf5: 0x000a, 0x1bf6: 0x000a, 0x1bf7: 0x000a, 0x1bf8: 0x000a, 0x1bf9: 0x000a, 0x1bfa: 0x000a, 0x1bfb: 0x000a, // Block 0x70, offset 0x1c00 0x1c00: 0x0009, 0x1c01: 0x000a, 0x1c02: 0x000a, 0x1c03: 0x000a, 0x1c04: 0x000a, 0x1c08: 0x003a, 0x1c09: 0x002a, 0x1c0a: 0x003a, 0x1c0b: 0x002a, 0x1c0c: 0x003a, 0x1c0d: 0x002a, 0x1c0e: 0x003a, 0x1c0f: 0x002a, 0x1c10: 0x003a, 0x1c11: 0x002a, 0x1c12: 0x000a, 0x1c13: 0x000a, 0x1c14: 0x003a, 0x1c15: 0x002a, 0x1c16: 0x003a, 0x1c17: 0x002a, 0x1c18: 0x003a, 0x1c19: 0x002a, 0x1c1a: 0x003a, 0x1c1b: 0x002a, 0x1c1c: 0x000a, 0x1c1d: 0x000a, 0x1c1e: 0x000a, 0x1c1f: 0x000a, 0x1c20: 0x000a, 0x1c2a: 0x000c, 0x1c2b: 0x000c, 0x1c2c: 0x000c, 0x1c2d: 0x000c, 0x1c30: 0x000a, 0x1c36: 0x000a, 0x1c37: 0x000a, 0x1c3d: 0x000a, 0x1c3e: 0x000a, 0x1c3f: 0x000a, // Block 0x71, offset 0x1c40 0x1c59: 0x000c, 0x1c5a: 0x000c, 0x1c5b: 0x000a, 0x1c5c: 0x000a, 0x1c60: 0x000a, // Block 0x72, offset 0x1c80 0x1cbb: 0x000a, // Block 0x73, offset 0x1cc0 0x1cc0: 0x000a, 0x1cc1: 0x000a, 0x1cc2: 0x000a, 0x1cc3: 0x000a, 0x1cc4: 0x000a, 0x1cc5: 0x000a, 0x1cc6: 0x000a, 0x1cc7: 0x000a, 0x1cc8: 0x000a, 0x1cc9: 0x000a, 0x1cca: 0x000a, 0x1ccb: 0x000a, 0x1ccc: 0x000a, 0x1ccd: 0x000a, 0x1cce: 0x000a, 0x1ccf: 0x000a, 0x1cd0: 0x000a, 0x1cd1: 0x000a, 0x1cd2: 0x000a, 0x1cd3: 0x000a, 0x1cd4: 0x000a, 0x1cd5: 0x000a, 0x1cd6: 0x000a, 0x1cd7: 0x000a, 0x1cd8: 0x000a, 0x1cd9: 0x000a, 0x1cda: 0x000a, 0x1cdb: 0x000a, 0x1cdc: 0x000a, 0x1cdd: 0x000a, 0x1cde: 0x000a, 0x1cdf: 0x000a, 0x1ce0: 0x000a, 0x1ce1: 0x000a, 0x1ce2: 0x000a, 0x1ce3: 0x000a, // Block 0x74, offset 0x1d00 0x1d1d: 0x000a, 0x1d1e: 0x000a, // Block 0x75, offset 0x1d40 0x1d50: 0x000a, 0x1d51: 0x000a, 0x1d52: 0x000a, 0x1d53: 0x000a, 0x1d54: 0x000a, 0x1d55: 0x000a, 0x1d56: 0x000a, 0x1d57: 0x000a, 0x1d58: 0x000a, 0x1d59: 0x000a, 0x1d5a: 0x000a, 0x1d5b: 0x000a, 0x1d5c: 0x000a, 0x1d5d: 0x000a, 0x1d5e: 0x000a, 0x1d5f: 0x000a, 0x1d7c: 0x000a, 0x1d7d: 0x000a, 0x1d7e: 0x000a, // Block 0x76, offset 0x1d80 0x1db1: 0x000a, 0x1db2: 0x000a, 0x1db3: 0x000a, 0x1db4: 0x000a, 0x1db5: 0x000a, 0x1db6: 0x000a, 0x1db7: 0x000a, 0x1db8: 0x000a, 0x1db9: 0x000a, 0x1dba: 0x000a, 0x1dbb: 0x000a, 0x1dbc: 0x000a, 0x1dbd: 0x000a, 0x1dbe: 0x000a, 0x1dbf: 0x000a, // Block 0x77, offset 0x1dc0 0x1dcc: 0x000a, 0x1dcd: 0x000a, 0x1dce: 0x000a, 0x1dcf: 0x000a, // Block 0x78, offset 0x1e00 0x1e37: 0x000a, 0x1e38: 0x000a, 0x1e39: 0x000a, 0x1e3a: 0x000a, // Block 0x79, offset 0x1e40 0x1e5e: 0x000a, 0x1e5f: 0x000a, 0x1e7f: 0x000a, // Block 0x7a, offset 0x1e80 0x1e90: 0x000a, 0x1e91: 0x000a, 0x1e92: 0x000a, 0x1e93: 0x000a, 0x1e94: 0x000a, 0x1e95: 0x000a, 0x1e96: 0x000a, 0x1e97: 0x000a, 0x1e98: 0x000a, 0x1e99: 0x000a, 0x1e9a: 0x000a, 0x1e9b: 0x000a, 0x1e9c: 0x000a, 0x1e9d: 0x000a, 0x1e9e: 0x000a, 0x1e9f: 0x000a, 0x1ea0: 0x000a, 0x1ea1: 0x000a, 0x1ea2: 0x000a, 0x1ea3: 0x000a, 0x1ea4: 0x000a, 0x1ea5: 0x000a, 0x1ea6: 0x000a, 0x1ea7: 0x000a, 0x1ea8: 0x000a, 0x1ea9: 0x000a, 0x1eaa: 0x000a, 0x1eab: 0x000a, 0x1eac: 0x000a, 0x1ead: 0x000a, 0x1eae: 0x000a, 0x1eaf: 0x000a, 0x1eb0: 0x000a, 0x1eb1: 0x000a, 0x1eb2: 0x000a, 0x1eb3: 0x000a, 0x1eb4: 0x000a, 0x1eb5: 0x000a, 0x1eb6: 0x000a, 0x1eb7: 0x000a, 0x1eb8: 0x000a, 0x1eb9: 0x000a, 0x1eba: 0x000a, 0x1ebb: 0x000a, 0x1ebc: 0x000a, 0x1ebd: 0x000a, 0x1ebe: 0x000a, 0x1ebf: 0x000a, // Block 0x7b, offset 0x1ec0 0x1ec0: 0x000a, 0x1ec1: 0x000a, 0x1ec2: 0x000a, 0x1ec3: 0x000a, 0x1ec4: 0x000a, 0x1ec5: 0x000a, 0x1ec6: 0x000a, // Block 0x7c, offset 0x1f00 0x1f0d: 0x000a, 0x1f0e: 0x000a, 0x1f0f: 0x000a, // Block 0x7d, offset 0x1f40 0x1f6f: 0x000c, 0x1f70: 0x000c, 0x1f71: 0x000c, 0x1f72: 0x000c, 0x1f73: 0x000a, 0x1f74: 0x000c, 0x1f75: 0x000c, 0x1f76: 0x000c, 0x1f77: 0x000c, 0x1f78: 0x000c, 0x1f79: 0x000c, 0x1f7a: 0x000c, 0x1f7b: 0x000c, 0x1f7c: 0x000c, 0x1f7d: 0x000c, 0x1f7e: 0x000a, 0x1f7f: 0x000a, // Block 0x7e, offset 0x1f80 0x1f9e: 0x000c, 0x1f9f: 0x000c, // Block 0x7f, offset 0x1fc0 0x1ff0: 0x000c, 0x1ff1: 0x000c, // Block 0x80, offset 0x2000 0x2000: 0x000a, 0x2001: 0x000a, 0x2002: 0x000a, 0x2003: 0x000a, 0x2004: 0x000a, 0x2005: 0x000a, 0x2006: 0x000a, 0x2007: 0x000a, 0x2008: 0x000a, 0x2009: 0x000a, 0x200a: 0x000a, 0x200b: 0x000a, 0x200c: 0x000a, 0x200d: 0x000a, 0x200e: 0x000a, 0x200f: 0x000a, 0x2010: 0x000a, 0x2011: 0x000a, 0x2012: 0x000a, 0x2013: 0x000a, 0x2014: 0x000a, 0x2015: 0x000a, 0x2016: 0x000a, 0x2017: 0x000a, 0x2018: 0x000a, 0x2019: 0x000a, 0x201a: 0x000a, 0x201b: 0x000a, 0x201c: 0x000a, 0x201d: 0x000a, 0x201e: 0x000a, 0x201f: 0x000a, 0x2020: 0x000a, 0x2021: 0x000a, // Block 0x81, offset 0x2040 0x2048: 0x000a, // Block 0x82, offset 0x2080 0x2082: 0x000c, 0x2086: 0x000c, 0x208b: 0x000c, 0x20a5: 0x000c, 0x20a6: 0x000c, 0x20a8: 0x000a, 0x20a9: 0x000a, 0x20aa: 0x000a, 0x20ab: 0x000a, 0x20ac: 0x000c, 0x20b8: 0x0004, 0x20b9: 0x0004, // Block 0x83, offset 0x20c0 0x20f4: 0x000a, 0x20f5: 0x000a, 0x20f6: 0x000a, 0x20f7: 0x000a, // Block 0x84, offset 0x2100 0x2104: 0x000c, 0x2105: 0x000c, 0x2120: 0x000c, 0x2121: 0x000c, 0x2122: 0x000c, 0x2123: 0x000c, 0x2124: 0x000c, 0x2125: 0x000c, 0x2126: 0x000c, 0x2127: 0x000c, 0x2128: 0x000c, 0x2129: 0x000c, 0x212a: 0x000c, 0x212b: 0x000c, 0x212c: 0x000c, 0x212d: 0x000c, 0x212e: 0x000c, 0x212f: 0x000c, 0x2130: 0x000c, 0x2131: 0x000c, 0x213f: 0x000c, // Block 0x85, offset 0x2140 0x2166: 0x000c, 0x2167: 0x000c, 0x2168: 0x000c, 0x2169: 0x000c, 0x216a: 0x000c, 0x216b: 0x000c, 0x216c: 0x000c, 0x216d: 0x000c, // Block 0x86, offset 0x2180 0x2187: 0x000c, 0x2188: 0x000c, 0x2189: 0x000c, 0x218a: 0x000c, 0x218b: 0x000c, 0x218c: 0x000c, 0x218d: 0x000c, 0x218e: 0x000c, 0x218f: 0x000c, 0x2190: 0x000c, 0x2191: 0x000c, // Block 0x87, offset 0x21c0 0x21c0: 0x000c, 0x21c1: 0x000c, 0x21c2: 0x000c, 0x21f3: 0x000c, 0x21f6: 0x000c, 0x21f7: 0x000c, 0x21f8: 0x000c, 0x21f9: 0x000c, 0x21fc: 0x000c, 0x21fd: 0x000c, // Block 0x88, offset 0x2200 0x2225: 0x000c, // Block 0x89, offset 0x2240 0x2269: 0x000c, 0x226a: 0x000c, 0x226b: 0x000c, 0x226c: 0x000c, 0x226d: 0x000c, 0x226e: 0x000c, 0x2271: 0x000c, 0x2272: 0x000c, 0x2275: 0x000c, 0x2276: 0x000c, // Block 0x8a, offset 0x2280 0x2283: 0x000c, 0x228c: 0x000c, 0x22bc: 0x000c, // Block 0x8b, offset 0x22c0 0x22f0: 0x000c, 0x22f2: 0x000c, 0x22f3: 0x000c, 0x22f4: 0x000c, 0x22f7: 0x000c, 0x22f8: 0x000c, 0x22fe: 0x000c, 0x22ff: 0x000c, // Block 0x8c, offset 0x2300 0x2301: 0x000c, 0x232c: 0x000c, 0x232d: 0x000c, 0x2336: 0x000c, // Block 0x8d, offset 0x2340 0x236a: 0x000a, 0x236b: 0x000a, // Block 0x8e, offset 0x2380 0x23a5: 0x000c, 0x23a8: 0x000c, 0x23ad: 0x000c, // Block 0x8f, offset 0x23c0 0x23dd: 0x0001, 0x23de: 0x000c, 0x23df: 0x0001, 0x23e0: 0x0001, 0x23e1: 0x0001, 0x23e2: 0x0001, 0x23e3: 0x0001, 0x23e4: 0x0001, 0x23e5: 0x0001, 0x23e6: 0x0001, 0x23e7: 0x0001, 0x23e8: 0x0001, 0x23e9: 0x0003, 0x23ea: 0x0001, 0x23eb: 0x0001, 0x23ec: 0x0001, 0x23ed: 0x0001, 0x23ee: 0x0001, 0x23ef: 0x0001, 0x23f0: 0x0001, 0x23f1: 0x0001, 0x23f2: 0x0001, 0x23f3: 0x0001, 0x23f4: 0x0001, 0x23f5: 0x0001, 0x23f6: 0x0001, 0x23f7: 0x0001, 0x23f8: 0x0001, 0x23f9: 0x0001, 0x23fa: 0x0001, 0x23fb: 0x0001, 0x23fc: 0x0001, 0x23fd: 0x0001, 0x23fe: 0x0001, 0x23ff: 0x0001, // Block 0x90, offset 0x2400 0x2400: 0x0001, 0x2401: 0x0001, 0x2402: 0x0001, 0x2403: 0x0001, 0x2404: 0x0001, 0x2405: 0x0001, 0x2406: 0x0001, 0x2407: 0x0001, 0x2408: 0x0001, 0x2409: 0x0001, 0x240a: 0x0001, 0x240b: 0x0001, 0x240c: 0x0001, 0x240d: 0x0001, 0x240e: 0x0001, 0x240f: 0x0001, 0x2410: 0x000d, 0x2411: 0x000d, 0x2412: 0x000d, 0x2413: 0x000d, 0x2414: 0x000d, 0x2415: 0x000d, 0x2416: 0x000d, 0x2417: 0x000d, 0x2418: 0x000d, 0x2419: 0x000d, 0x241a: 0x000d, 0x241b: 0x000d, 0x241c: 0x000d, 0x241d: 0x000d, 0x241e: 0x000d, 0x241f: 0x000d, 0x2420: 0x000d, 0x2421: 0x000d, 0x2422: 0x000d, 0x2423: 0x000d, 0x2424: 0x000d, 0x2425: 0x000d, 0x2426: 0x000d, 0x2427: 0x000d, 0x2428: 0x000d, 0x2429: 0x000d, 0x242a: 0x000d, 0x242b: 0x000d, 0x242c: 0x000d, 0x242d: 0x000d, 0x242e: 0x000d, 0x242f: 0x000d, 0x2430: 0x000d, 0x2431: 0x000d, 0x2432: 0x000d, 0x2433: 0x000d, 0x2434: 0x000d, 0x2435: 0x000d, 0x2436: 0x000d, 0x2437: 0x000d, 0x2438: 0x000d, 0x2439: 0x000d, 0x243a: 0x000d, 0x243b: 0x000d, 0x243c: 0x000d, 0x243d: 0x000d, 0x243e: 0x000d, 0x243f: 0x000d, // Block 0x91, offset 0x2440 0x2440: 0x000d, 0x2441: 0x000d, 0x2442: 0x000d, 0x2443: 0x000d, 0x2444: 0x000d, 0x2445: 0x000d, 0x2446: 0x000d, 0x2447: 0x000d, 0x2448: 0x000d, 0x2449: 0x000d, 0x244a: 0x000d, 0x244b: 0x000d, 0x244c: 0x000d, 0x244d: 0x000d, 0x244e: 0x000d, 0x244f: 0x000d, 0x2450: 0x000d, 0x2451: 0x000d, 0x2452: 0x000d, 0x2453: 0x000d, 0x2454: 0x000d, 0x2455: 0x000d, 0x2456: 0x000d, 0x2457: 0x000d, 0x2458: 0x000d, 0x2459: 0x000d, 0x245a: 0x000d, 0x245b: 0x000d, 0x245c: 0x000d, 0x245d: 0x000d, 0x245e: 0x000d, 0x245f: 0x000d, 0x2460: 0x000d, 0x2461: 0x000d, 0x2462: 0x000d, 0x2463: 0x000d, 0x2464: 0x000d, 0x2465: 0x000d, 0x2466: 0x000d, 0x2467: 0x000d, 0x2468: 0x000d, 0x2469: 0x000d, 0x246a: 0x000d, 0x246b: 0x000d, 0x246c: 0x000d, 0x246d: 0x000d, 0x246e: 0x000d, 0x246f: 0x000d, 0x2470: 0x000d, 0x2471: 0x000d, 0x2472: 0x000d, 0x2473: 0x000d, 0x2474: 0x000d, 0x2475: 0x000d, 0x2476: 0x000d, 0x2477: 0x000d, 0x2478: 0x000d, 0x2479: 0x000d, 0x247a: 0x000d, 0x247b: 0x000d, 0x247c: 0x000d, 0x247d: 0x000d, 0x247e: 0x000a, 0x247f: 0x000a, // Block 0x92, offset 0x2480 0x2480: 0x000d, 0x2481: 0x000d, 0x2482: 0x000d, 0x2483: 0x000d, 0x2484: 0x000d, 0x2485: 0x000d, 0x2486: 0x000d, 0x2487: 0x000d, 0x2488: 0x000d, 0x2489: 0x000d, 0x248a: 0x000d, 0x248b: 0x000d, 0x248c: 0x000d, 0x248d: 0x000d, 0x248e: 0x000d, 0x248f: 0x000d, 0x2490: 0x000b, 0x2491: 0x000b, 0x2492: 0x000b, 0x2493: 0x000b, 0x2494: 0x000b, 0x2495: 0x000b, 0x2496: 0x000b, 0x2497: 0x000b, 0x2498: 0x000b, 0x2499: 0x000b, 0x249a: 0x000b, 0x249b: 0x000b, 0x249c: 0x000b, 0x249d: 0x000b, 0x249e: 0x000b, 0x249f: 0x000b, 0x24a0: 0x000b, 0x24a1: 0x000b, 0x24a2: 0x000b, 0x24a3: 0x000b, 0x24a4: 0x000b, 0x24a5: 0x000b, 0x24a6: 0x000b, 0x24a7: 0x000b, 0x24a8: 0x000b, 0x24a9: 0x000b, 0x24aa: 0x000b, 0x24ab: 0x000b, 0x24ac: 0x000b, 0x24ad: 0x000b, 0x24ae: 0x000b, 0x24af: 0x000b, 0x24b0: 0x000d, 0x24b1: 0x000d, 0x24b2: 0x000d, 0x24b3: 0x000d, 0x24b4: 0x000d, 0x24b5: 0x000d, 0x24b6: 0x000d, 0x24b7: 0x000d, 0x24b8: 0x000d, 0x24b9: 0x000d, 0x24ba: 0x000d, 0x24bb: 0x000d, 0x24bc: 0x000d, 0x24bd: 0x000a, 0x24be: 0x000d, 0x24bf: 0x000d, // Block 0x93, offset 0x24c0 0x24c0: 0x000c, 0x24c1: 0x000c, 0x24c2: 0x000c, 0x24c3: 0x000c, 0x24c4: 0x000c, 0x24c5: 0x000c, 0x24c6: 0x000c, 0x24c7: 0x000c, 0x24c8: 0x000c, 0x24c9: 0x000c, 0x24ca: 0x000c, 0x24cb: 0x000c, 0x24cc: 0x000c, 0x24cd: 0x000c, 0x24ce: 0x000c, 0x24cf: 0x000c, 0x24d0: 0x000a, 0x24d1: 0x000a, 0x24d2: 0x000a, 0x24d3: 0x000a, 0x24d4: 0x000a, 0x24d5: 0x000a, 0x24d6: 0x000a, 0x24d7: 0x000a, 0x24d8: 0x000a, 0x24d9: 0x000a, 0x24e0: 0x000c, 0x24e1: 0x000c, 0x24e2: 0x000c, 0x24e3: 0x000c, 0x24e4: 0x000c, 0x24e5: 0x000c, 0x24e6: 0x000c, 0x24e7: 0x000c, 0x24e8: 0x000c, 0x24e9: 0x000c, 0x24ea: 0x000c, 0x24eb: 0x000c, 0x24ec: 0x000c, 0x24ed: 0x000c, 0x24ee: 0x000c, 0x24ef: 0x000c, 0x24f0: 0x000a, 0x24f1: 0x000a, 0x24f2: 0x000a, 0x24f3: 0x000a, 0x24f4: 0x000a, 0x24f5: 0x000a, 0x24f6: 0x000a, 0x24f7: 0x000a, 0x24f8: 0x000a, 0x24f9: 0x000a, 0x24fa: 0x000a, 0x24fb: 0x000a, 0x24fc: 0x000a, 0x24fd: 0x000a, 0x24fe: 0x000a, 0x24ff: 0x000a, // Block 0x94, offset 0x2500 0x2500: 0x000a, 0x2501: 0x000a, 0x2502: 0x000a, 0x2503: 0x000a, 0x2504: 0x000a, 0x2505: 0x000a, 0x2506: 0x000a, 0x2507: 0x000a, 0x2508: 0x000a, 0x2509: 0x000a, 0x250a: 0x000a, 0x250b: 0x000a, 0x250c: 0x000a, 0x250d: 0x000a, 0x250e: 0x000a, 0x250f: 0x000a, 0x2510: 0x0006, 0x2511: 0x000a, 0x2512: 0x0006, 0x2514: 0x000a, 0x2515: 0x0006, 0x2516: 0x000a, 0x2517: 0x000a, 0x2518: 0x000a, 0x2519: 0x009a, 0x251a: 0x008a, 0x251b: 0x007a, 0x251c: 0x006a, 0x251d: 0x009a, 0x251e: 0x008a, 0x251f: 0x0004, 0x2520: 0x000a, 0x2521: 0x000a, 0x2522: 0x0003, 0x2523: 0x0003, 0x2524: 0x000a, 0x2525: 0x000a, 0x2526: 0x000a, 0x2528: 0x000a, 0x2529: 0x0004, 0x252a: 0x0004, 0x252b: 0x000a, 0x2530: 0x000d, 0x2531: 0x000d, 0x2532: 0x000d, 0x2533: 0x000d, 0x2534: 0x000d, 0x2535: 0x000d, 0x2536: 0x000d, 0x2537: 0x000d, 0x2538: 0x000d, 0x2539: 0x000d, 0x253a: 0x000d, 0x253b: 0x000d, 0x253c: 0x000d, 0x253d: 0x000d, 0x253e: 0x000d, 0x253f: 0x000d, // Block 0x95, offset 0x2540 0x2540: 0x000d, 0x2541: 0x000d, 0x2542: 0x000d, 0x2543: 0x000d, 0x2544: 0x000d, 0x2545: 0x000d, 0x2546: 0x000d, 0x2547: 0x000d, 0x2548: 0x000d, 0x2549: 0x000d, 0x254a: 0x000d, 0x254b: 0x000d, 0x254c: 0x000d, 0x254d: 0x000d, 0x254e: 0x000d, 0x254f: 0x000d, 0x2550: 0x000d, 0x2551: 0x000d, 0x2552: 0x000d, 0x2553: 0x000d, 0x2554: 0x000d, 0x2555: 0x000d, 0x2556: 0x000d, 0x2557: 0x000d, 0x2558: 0x000d, 0x2559: 0x000d, 0x255a: 0x000d, 0x255b: 0x000d, 0x255c: 0x000d, 0x255d: 0x000d, 0x255e: 0x000d, 0x255f: 0x000d, 0x2560: 0x000d, 0x2561: 0x000d, 0x2562: 0x000d, 0x2563: 0x000d, 0x2564: 0x000d, 0x2565: 0x000d, 0x2566: 0x000d, 0x2567: 0x000d, 0x2568: 0x000d, 0x2569: 0x000d, 0x256a: 0x000d, 0x256b: 0x000d, 0x256c: 0x000d, 0x256d: 0x000d, 0x256e: 0x000d, 0x256f: 0x000d, 0x2570: 0x000d, 0x2571: 0x000d, 0x2572: 0x000d, 0x2573: 0x000d, 0x2574: 0x000d, 0x2575: 0x000d, 0x2576: 0x000d, 0x2577: 0x000d, 0x2578: 0x000d, 0x2579: 0x000d, 0x257a: 0x000d, 0x257b: 0x000d, 0x257c: 0x000d, 0x257d: 0x000d, 0x257e: 0x000d, 0x257f: 0x000b, // Block 0x96, offset 0x2580 0x2581: 0x000a, 0x2582: 0x000a, 0x2583: 0x0004, 0x2584: 0x0004, 0x2585: 0x0004, 0x2586: 0x000a, 0x2587: 0x000a, 0x2588: 0x003a, 0x2589: 0x002a, 0x258a: 0x000a, 0x258b: 0x0003, 0x258c: 0x0006, 0x258d: 0x0003, 0x258e: 0x0006, 0x258f: 0x0006, 0x2590: 0x0002, 0x2591: 0x0002, 0x2592: 0x0002, 0x2593: 0x0002, 0x2594: 0x0002, 0x2595: 0x0002, 0x2596: 0x0002, 0x2597: 0x0002, 0x2598: 0x0002, 0x2599: 0x0002, 0x259a: 0x0006, 0x259b: 0x000a, 0x259c: 0x000a, 0x259d: 0x000a, 0x259e: 0x000a, 0x259f: 0x000a, 0x25a0: 0x000a, 0x25bb: 0x005a, 0x25bc: 0x000a, 0x25bd: 0x004a, 0x25be: 0x000a, 0x25bf: 0x000a, // Block 0x97, offset 0x25c0 0x25c0: 0x000a, 0x25db: 0x005a, 0x25dc: 0x000a, 0x25dd: 0x004a, 0x25de: 0x000a, 0x25df: 0x00fa, 0x25e0: 0x00ea, 0x25e1: 0x000a, 0x25e2: 0x003a, 0x25e3: 0x002a, 0x25e4: 0x000a, 0x25e5: 0x000a, // Block 0x98, offset 0x2600 0x2620: 0x0004, 0x2621: 0x0004, 0x2622: 0x000a, 0x2623: 0x000a, 0x2624: 0x000a, 0x2625: 0x0004, 0x2626: 0x0004, 0x2628: 0x000a, 0x2629: 0x000a, 0x262a: 0x000a, 0x262b: 0x000a, 0x262c: 0x000a, 0x262d: 0x000a, 0x262e: 0x000a, 0x2630: 0x000b, 0x2631: 0x000b, 0x2632: 0x000b, 0x2633: 0x000b, 0x2634: 0x000b, 0x2635: 0x000b, 0x2636: 0x000b, 0x2637: 0x000b, 0x2638: 0x000b, 0x2639: 0x000a, 0x263a: 0x000a, 0x263b: 0x000a, 0x263c: 0x000a, 0x263d: 0x000a, 0x263e: 0x000b, 0x263f: 0x000b, // Block 0x99, offset 0x2640 0x2641: 0x000a, // Block 0x9a, offset 0x2680 0x2680: 0x000a, 0x2681: 0x000a, 0x2682: 0x000a, 0x2683: 0x000a, 0x2684: 0x000a, 0x2685: 0x000a, 0x2686: 0x000a, 0x2687: 0x000a, 0x2688: 0x000a, 0x2689: 0x000a, 0x268a: 0x000a, 0x268b: 0x000a, 0x268c: 0x000a, 0x2690: 0x000a, 0x2691: 0x000a, 0x2692: 0x000a, 0x2693: 0x000a, 0x2694: 0x000a, 0x2695: 0x000a, 0x2696: 0x000a, 0x2697: 0x000a, 0x2698: 0x000a, 0x2699: 0x000a, 0x269a: 0x000a, 0x269b: 0x000a, 0x269c: 0x000a, 0x26a0: 0x000a, // Block 0x9b, offset 0x26c0 0x26fd: 0x000c, // Block 0x9c, offset 0x2700 0x2720: 0x000c, 0x2721: 0x0002, 0x2722: 0x0002, 0x2723: 0x0002, 0x2724: 0x0002, 0x2725: 0x0002, 0x2726: 0x0002, 0x2727: 0x0002, 0x2728: 0x0002, 0x2729: 0x0002, 0x272a: 0x0002, 0x272b: 0x0002, 0x272c: 0x0002, 0x272d: 0x0002, 0x272e: 0x0002, 0x272f: 0x0002, 0x2730: 0x0002, 0x2731: 0x0002, 0x2732: 0x0002, 0x2733: 0x0002, 0x2734: 0x0002, 0x2735: 0x0002, 0x2736: 0x0002, 0x2737: 0x0002, 0x2738: 0x0002, 0x2739: 0x0002, 0x273a: 0x0002, 0x273b: 0x0002, // Block 0x9d, offset 0x2740 0x2776: 0x000c, 0x2777: 0x000c, 0x2778: 0x000c, 0x2779: 0x000c, 0x277a: 0x000c, // Block 0x9e, offset 0x2780 0x2780: 0x0001, 0x2781: 0x0001, 0x2782: 0x0001, 0x2783: 0x0001, 0x2784: 0x0001, 0x2785: 0x0001, 0x2786: 0x0001, 0x2787: 0x0001, 0x2788: 0x0001, 0x2789: 0x0001, 0x278a: 0x0001, 0x278b: 0x0001, 0x278c: 0x0001, 0x278d: 0x0001, 0x278e: 0x0001, 0x278f: 0x0001, 0x2790: 0x0001, 0x2791: 0x0001, 0x2792: 0x0001, 0x2793: 0x0001, 0x2794: 0x0001, 0x2795: 0x0001, 0x2796: 0x0001, 0x2797: 0x0001, 0x2798: 0x0001, 0x2799: 0x0001, 0x279a: 0x0001, 0x279b: 0x0001, 0x279c: 0x0001, 0x279d: 0x0001, 0x279e: 0x0001, 0x279f: 0x0001, 0x27a0: 0x0001, 0x27a1: 0x0001, 0x27a2: 0x0001, 0x27a3: 0x0001, 0x27a4: 0x0001, 0x27a5: 0x0001, 0x27a6: 0x0001, 0x27a7: 0x0001, 0x27a8: 0x0001, 0x27a9: 0x0001, 0x27aa: 0x0001, 0x27ab: 0x0001, 0x27ac: 0x0001, 0x27ad: 0x0001, 0x27ae: 0x0001, 0x27af: 0x0001, 0x27b0: 0x0001, 0x27b1: 0x0001, 0x27b2: 0x0001, 0x27b3: 0x0001, 0x27b4: 0x0001, 0x27b5: 0x0001, 0x27b6: 0x0001, 0x27b7: 0x0001, 0x27b8: 0x0001, 0x27b9: 0x0001, 0x27ba: 0x0001, 0x27bb: 0x0001, 0x27bc: 0x0001, 0x27bd: 0x0001, 0x27be: 0x0001, 0x27bf: 0x0001, // Block 0x9f, offset 0x27c0 0x27c0: 0x0001, 0x27c1: 0x0001, 0x27c2: 0x0001, 0x27c3: 0x0001, 0x27c4: 0x0001, 0x27c5: 0x0001, 0x27c6: 0x0001, 0x27c7: 0x0001, 0x27c8: 0x0001, 0x27c9: 0x0001, 0x27ca: 0x0001, 0x27cb: 0x0001, 0x27cc: 0x0001, 0x27cd: 0x0001, 0x27ce: 0x0001, 0x27cf: 0x0001, 0x27d0: 0x0001, 0x27d1: 0x0001, 0x27d2: 0x0001, 0x27d3: 0x0001, 0x27d4: 0x0001, 0x27d5: 0x0001, 0x27d6: 0x0001, 0x27d7: 0x0001, 0x27d8: 0x0001, 0x27d9: 0x0001, 0x27da: 0x0001, 0x27db: 0x0001, 0x27dc: 0x0001, 0x27dd: 0x0001, 0x27de: 0x0001, 0x27df: 0x000a, 0x27e0: 0x0001, 0x27e1: 0x0001, 0x27e2: 0x0001, 0x27e3: 0x0001, 0x27e4: 0x0001, 0x27e5: 0x0001, 0x27e6: 0x0001, 0x27e7: 0x0001, 0x27e8: 0x0001, 0x27e9: 0x0001, 0x27ea: 0x0001, 0x27eb: 0x0001, 0x27ec: 0x0001, 0x27ed: 0x0001, 0x27ee: 0x0001, 0x27ef: 0x0001, 0x27f0: 0x0001, 0x27f1: 0x0001, 0x27f2: 0x0001, 0x27f3: 0x0001, 0x27f4: 0x0001, 0x27f5: 0x0001, 0x27f6: 0x0001, 0x27f7: 0x0001, 0x27f8: 0x0001, 0x27f9: 0x0001, 0x27fa: 0x0001, 0x27fb: 0x0001, 0x27fc: 0x0001, 0x27fd: 0x0001, 0x27fe: 0x0001, 0x27ff: 0x0001, // Block 0xa0, offset 0x2800 0x2800: 0x0001, 0x2801: 0x000c, 0x2802: 0x000c, 0x2803: 0x000c, 0x2804: 0x0001, 0x2805: 0x000c, 0x2806: 0x000c, 0x2807: 0x0001, 0x2808: 0x0001, 0x2809: 0x0001, 0x280a: 0x0001, 0x280b: 0x0001, 0x280c: 0x000c, 0x280d: 0x000c, 0x280e: 0x000c, 0x280f: 0x000c, 0x2810: 0x0001, 0x2811: 0x0001, 0x2812: 0x0001, 0x2813: 0x0001, 0x2814: 0x0001, 0x2815: 0x0001, 0x2816: 0x0001, 0x2817: 0x0001, 0x2818: 0x0001, 0x2819: 0x0001, 0x281a: 0x0001, 0x281b: 0x0001, 0x281c: 0x0001, 0x281d: 0x0001, 0x281e: 0x0001, 0x281f: 0x0001, 0x2820: 0x0001, 0x2821: 0x0001, 0x2822: 0x0001, 0x2823: 0x0001, 0x2824: 0x0001, 0x2825: 0x0001, 0x2826: 0x0001, 0x2827: 0x0001, 0x2828: 0x0001, 0x2829: 0x0001, 0x282a: 0x0001, 0x282b: 0x0001, 0x282c: 0x0001, 0x282d: 0x0001, 0x282e: 0x0001, 0x282f: 0x0001, 0x2830: 0x0001, 0x2831: 0x0001, 0x2832: 0x0001, 0x2833: 0x0001, 0x2834: 0x0001, 0x2835: 0x0001, 0x2836: 0x0001, 0x2837: 0x0001, 0x2838: 0x000c, 0x2839: 0x000c, 0x283a: 0x000c, 0x283b: 0x0001, 0x283c: 0x0001, 0x283d: 0x0001, 0x283e: 0x0001, 0x283f: 0x000c, // Block 0xa1, offset 0x2840 0x2840: 0x0001, 0x2841: 0x0001, 0x2842: 0x0001, 0x2843: 0x0001, 0x2844: 0x0001, 0x2845: 0x0001, 0x2846: 0x0001, 0x2847: 0x0001, 0x2848: 0x0001, 0x2849: 0x0001, 0x284a: 0x0001, 0x284b: 0x0001, 0x284c: 0x0001, 0x284d: 0x0001, 0x284e: 0x0001, 0x284f: 0x0001, 0x2850: 0x0001, 0x2851: 0x0001, 0x2852: 0x0001, 0x2853: 0x0001, 0x2854: 0x0001, 0x2855: 0x0001, 0x2856: 0x0001, 0x2857: 0x0001, 0x2858: 0x0001, 0x2859: 0x0001, 0x285a: 0x0001, 0x285b: 0x0001, 0x285c: 0x0001, 0x285d: 0x0001, 0x285e: 0x0001, 0x285f: 0x0001, 0x2860: 0x0001, 0x2861: 0x0001, 0x2862: 0x0001, 0x2863: 0x0001, 0x2864: 0x0001, 0x2865: 0x000c, 0x2866: 0x000c, 0x2867: 0x0001, 0x2868: 0x0001, 0x2869: 0x0001, 0x286a: 0x0001, 0x286b: 0x0001, 0x286c: 0x0001, 0x286d: 0x0001, 0x286e: 0x0001, 0x286f: 0x0001, 0x2870: 0x0001, 0x2871: 0x0001, 0x2872: 0x0001, 0x2873: 0x0001, 0x2874: 0x0001, 0x2875: 0x0001, 0x2876: 0x0001, 0x2877: 0x0001, 0x2878: 0x0001, 0x2879: 0x0001, 0x287a: 0x0001, 0x287b: 0x0001, 0x287c: 0x0001, 0x287d: 0x0001, 0x287e: 0x0001, 0x287f: 0x0001, // Block 0xa2, offset 0x2880 0x2880: 0x0001, 0x2881: 0x0001, 0x2882: 0x0001, 0x2883: 0x0001, 0x2884: 0x0001, 0x2885: 0x0001, 0x2886: 0x0001, 0x2887: 0x0001, 0x2888: 0x0001, 0x2889: 0x0001, 0x288a: 0x0001, 0x288b: 0x0001, 0x288c: 0x0001, 0x288d: 0x0001, 0x288e: 0x0001, 0x288f: 0x0001, 0x2890: 0x0001, 0x2891: 0x0001, 0x2892: 0x0001, 0x2893: 0x0001, 0x2894: 0x0001, 0x2895: 0x0001, 0x2896: 0x0001, 0x2897: 0x0001, 0x2898: 0x0001, 0x2899: 0x0001, 0x289a: 0x0001, 0x289b: 0x0001, 0x289c: 0x0001, 0x289d: 0x0001, 0x289e: 0x0001, 0x289f: 0x0001, 0x28a0: 0x0001, 0x28a1: 0x0001, 0x28a2: 0x0001, 0x28a3: 0x0001, 0x28a4: 0x0001, 0x28a5: 0x0001, 0x28a6: 0x0001, 0x28a7: 0x0001, 0x28a8: 0x0001, 0x28a9: 0x0001, 0x28aa: 0x0001, 0x28ab: 0x0001, 0x28ac: 0x0001, 0x28ad: 0x0001, 0x28ae: 0x0001, 0x28af: 0x0001, 0x28b0: 0x0001, 0x28b1: 0x0001, 0x28b2: 0x0001, 0x28b3: 0x0001, 0x28b4: 0x0001, 0x28b5: 0x0001, 0x28b6: 0x0001, 0x28b7: 0x0001, 0x28b8: 0x0001, 0x28b9: 0x000a, 0x28ba: 0x000a, 0x28bb: 0x000a, 0x28bc: 0x000a, 0x28bd: 0x000a, 0x28be: 0x000a, 0x28bf: 0x000a, // Block 0xa3, offset 0x28c0 0x28c0: 0x000d, 0x28c1: 0x000d, 0x28c2: 0x000d, 0x28c3: 0x000d, 0x28c4: 0x000d, 0x28c5: 0x000d, 0x28c6: 0x000d, 0x28c7: 0x000d, 0x28c8: 0x000d, 0x28c9: 0x000d, 0x28ca: 0x000d, 0x28cb: 0x000d, 0x28cc: 0x000d, 0x28cd: 0x000d, 0x28ce: 0x000d, 0x28cf: 0x000d, 0x28d0: 0x000d, 0x28d1: 0x000d, 0x28d2: 0x000d, 0x28d3: 0x000d, 0x28d4: 0x000d, 0x28d5: 0x000d, 0x28d6: 0x000d, 0x28d7: 0x000d, 0x28d8: 0x000d, 0x28d9: 0x000d, 0x28da: 0x000d, 0x28db: 0x000d, 0x28dc: 0x000d, 0x28dd: 0x000d, 0x28de: 0x000d, 0x28df: 0x000d, 0x28e0: 0x000d, 0x28e1: 0x000d, 0x28e2: 0x000d, 0x28e3: 0x000d, 0x28e4: 0x000c, 0x28e5: 0x000c, 0x28e6: 0x000c, 0x28e7: 0x000c, 0x28e8: 0x000d, 0x28e9: 0x000d, 0x28ea: 0x000d, 0x28eb: 0x000d, 0x28ec: 0x000d, 0x28ed: 0x000d, 0x28ee: 0x000d, 0x28ef: 0x000d, 0x28f0: 0x0005, 0x28f1: 0x0005, 0x28f2: 0x0005, 0x28f3: 0x0005, 0x28f4: 0x0005, 0x28f5: 0x0005, 0x28f6: 0x0005, 0x28f7: 0x0005, 0x28f8: 0x0005, 0x28f9: 0x0005, 0x28fa: 0x000d, 0x28fb: 0x000d, 0x28fc: 0x000d, 0x28fd: 0x000d, 0x28fe: 0x000d, 0x28ff: 0x000d, // Block 0xa4, offset 0x2900 0x2900: 0x0001, 0x2901: 0x0001, 0x2902: 0x0001, 0x2903: 0x0001, 0x2904: 0x0001, 0x2905: 0x0001, 0x2906: 0x0001, 0x2907: 0x0001, 0x2908: 0x0001, 0x2909: 0x0001, 0x290a: 0x0001, 0x290b: 0x0001, 0x290c: 0x0001, 0x290d: 0x0001, 0x290e: 0x0001, 0x290f: 0x0001, 0x2910: 0x0001, 0x2911: 0x0001, 0x2912: 0x0001, 0x2913: 0x0001, 0x2914: 0x0001, 0x2915: 0x0001, 0x2916: 0x0001, 0x2917: 0x0001, 0x2918: 0x0001, 0x2919: 0x0001, 0x291a: 0x0001, 0x291b: 0x0001, 0x291c: 0x0001, 0x291d: 0x0001, 0x291e: 0x0001, 0x291f: 0x0001, 0x2920: 0x0005, 0x2921: 0x0005, 0x2922: 0x0005, 0x2923: 0x0005, 0x2924: 0x0005, 0x2925: 0x0005, 0x2926: 0x0005, 0x2927: 0x0005, 0x2928: 0x0005, 0x2929: 0x0005, 0x292a: 0x0005, 0x292b: 0x0005, 0x292c: 0x0005, 0x292d: 0x0005, 0x292e: 0x0005, 0x292f: 0x0005, 0x2930: 0x0005, 0x2931: 0x0005, 0x2932: 0x0005, 0x2933: 0x0005, 0x2934: 0x0005, 0x2935: 0x0005, 0x2936: 0x0005, 0x2937: 0x0005, 0x2938: 0x0005, 0x2939: 0x0005, 0x293a: 0x0005, 0x293b: 0x0005, 0x293c: 0x0005, 0x293d: 0x0005, 0x293e: 0x0005, 0x293f: 0x0001, // Block 0xa5, offset 0x2940 0x2940: 0x0001, 0x2941: 0x0001, 0x2942: 0x0001, 0x2943: 0x0001, 0x2944: 0x0001, 0x2945: 0x0001, 0x2946: 0x0001, 0x2947: 0x0001, 0x2948: 0x0001, 0x2949: 0x0001, 0x294a: 0x0001, 0x294b: 0x0001, 0x294c: 0x0001, 0x294d: 0x0001, 0x294e: 0x0001, 0x294f: 0x0001, 0x2950: 0x0001, 0x2951: 0x0001, 0x2952: 0x0001, 0x2953: 0x0001, 0x2954: 0x0001, 0x2955: 0x0001, 0x2956: 0x0001, 0x2957: 0x0001, 0x2958: 0x0001, 0x2959: 0x0001, 0x295a: 0x0001, 0x295b: 0x0001, 0x295c: 0x0001, 0x295d: 0x0001, 0x295e: 0x0001, 0x295f: 0x0001, 0x2960: 0x0001, 0x2961: 0x0001, 0x2962: 0x0001, 0x2963: 0x0001, 0x2964: 0x0001, 0x2965: 0x0001, 0x2966: 0x0001, 0x2967: 0x0001, 0x2968: 0x0001, 0x2969: 0x0001, 0x296a: 0x0001, 0x296b: 0x000c, 0x296c: 0x000c, 0x296d: 0x0001, 0x296e: 0x0001, 0x296f: 0x0001, 0x2970: 0x0001, 0x2971: 0x0001, 0x2972: 0x0001, 0x2973: 0x0001, 0x2974: 0x0001, 0x2975: 0x0001, 0x2976: 0x0001, 0x2977: 0x0001, 0x2978: 0x0001, 0x2979: 0x0001, 0x297a: 0x0001, 0x297b: 0x0001, 0x297c: 0x0001, 0x297d: 0x0001, 0x297e: 0x0001, 0x297f: 0x0001, // Block 0xa6, offset 0x2980 0x2980: 0x0001, 0x2981: 0x0001, 0x2982: 0x0001, 0x2983: 0x0001, 0x2984: 0x0001, 0x2985: 0x0001, 0x2986: 0x0001, 0x2987: 0x0001, 0x2988: 0x0001, 0x2989: 0x0001, 0x298a: 0x0001, 0x298b: 0x0001, 0x298c: 0x0001, 0x298d: 0x0001, 0x298e: 0x0001, 0x298f: 0x0001, 0x2990: 0x0001, 0x2991: 0x0001, 0x2992: 0x0001, 0x2993: 0x0001, 0x2994: 0x0001, 0x2995: 0x0001, 0x2996: 0x0001, 0x2997: 0x0001, 0x2998: 0x0001, 0x2999: 0x0001, 0x299a: 0x0001, 0x299b: 0x0001, 0x299c: 0x0001, 0x299d: 0x0001, 0x299e: 0x0001, 0x299f: 0x0001, 0x29a0: 0x0001, 0x29a1: 0x0001, 0x29a2: 0x0001, 0x29a3: 0x0001, 0x29a4: 0x0001, 0x29a5: 0x0001, 0x29a6: 0x0001, 0x29a7: 0x0001, 0x29a8: 0x0001, 0x29a9: 0x0001, 0x29aa: 0x0001, 0x29ab: 0x0001, 0x29ac: 0x0001, 0x29ad: 0x0001, 0x29ae: 0x0001, 0x29af: 0x0001, 0x29b0: 0x000d, 0x29b1: 0x000d, 0x29b2: 0x000d, 0x29b3: 0x000d, 0x29b4: 0x000d, 0x29b5: 0x000d, 0x29b6: 0x000d, 0x29b7: 0x000d, 0x29b8: 0x000d, 0x29b9: 0x000d, 0x29ba: 0x000d, 0x29bb: 0x000d, 0x29bc: 0x000d, 0x29bd: 0x000d, 0x29be: 0x000d, 0x29bf: 0x000d, // Block 0xa7, offset 0x29c0 0x29c0: 0x000d, 0x29c1: 0x000d, 0x29c2: 0x000d, 0x29c3: 0x000d, 0x29c4: 0x000d, 0x29c5: 0x000d, 0x29c6: 0x000c, 0x29c7: 0x000c, 0x29c8: 0x000c, 0x29c9: 0x000c, 0x29ca: 0x000c, 0x29cb: 0x000c, 0x29cc: 0x000c, 0x29cd: 0x000c, 0x29ce: 0x000c, 0x29cf: 0x000c, 0x29d0: 0x000c, 0x29d1: 0x000d, 0x29d2: 0x000d, 0x29d3: 0x000d, 0x29d4: 0x000d, 0x29d5: 0x000d, 0x29d6: 0x000d, 0x29d7: 0x000d, 0x29d8: 0x000d, 0x29d9: 0x000d, 0x29da: 0x000d, 0x29db: 0x000d, 0x29dc: 0x000d, 0x29dd: 0x000d, 0x29de: 0x000d, 0x29df: 0x000d, 0x29e0: 0x000d, 0x29e1: 0x000d, 0x29e2: 0x000d, 0x29e3: 0x000d, 0x29e4: 0x000d, 0x29e5: 0x000d, 0x29e6: 0x000d, 0x29e7: 0x000d, 0x29e8: 0x000d, 0x29e9: 0x000d, 0x29ea: 0x000d, 0x29eb: 0x000d, 0x29ec: 0x000d, 0x29ed: 0x000d, 0x29ee: 0x000d, 0x29ef: 0x000d, 0x29f0: 0x0001, 0x29f1: 0x0001, 0x29f2: 0x0001, 0x29f3: 0x0001, 0x29f4: 0x0001, 0x29f5: 0x0001, 0x29f6: 0x0001, 0x29f7: 0x0001, 0x29f8: 0x0001, 0x29f9: 0x0001, 0x29fa: 0x0001, 0x29fb: 0x0001, 0x29fc: 0x0001, 0x29fd: 0x0001, 0x29fe: 0x0001, 0x29ff: 0x0001, // Block 0xa8, offset 0x2a00 0x2a01: 0x000c, 0x2a38: 0x000c, 0x2a39: 0x000c, 0x2a3a: 0x000c, 0x2a3b: 0x000c, 0x2a3c: 0x000c, 0x2a3d: 0x000c, 0x2a3e: 0x000c, 0x2a3f: 0x000c, // Block 0xa9, offset 0x2a40 0x2a40: 0x000c, 0x2a41: 0x000c, 0x2a42: 0x000c, 0x2a43: 0x000c, 0x2a44: 0x000c, 0x2a45: 0x000c, 0x2a46: 0x000c, 0x2a52: 0x000a, 0x2a53: 0x000a, 0x2a54: 0x000a, 0x2a55: 0x000a, 0x2a56: 0x000a, 0x2a57: 0x000a, 0x2a58: 0x000a, 0x2a59: 0x000a, 0x2a5a: 0x000a, 0x2a5b: 0x000a, 0x2a5c: 0x000a, 0x2a5d: 0x000a, 0x2a5e: 0x000a, 0x2a5f: 0x000a, 0x2a60: 0x000a, 0x2a61: 0x000a, 0x2a62: 0x000a, 0x2a63: 0x000a, 0x2a64: 0x000a, 0x2a65: 0x000a, 0x2a7f: 0x000c, // Block 0xaa, offset 0x2a80 0x2a80: 0x000c, 0x2a81: 0x000c, 0x2ab3: 0x000c, 0x2ab4: 0x000c, 0x2ab5: 0x000c, 0x2ab6: 0x000c, 0x2ab9: 0x000c, 0x2aba: 0x000c, // Block 0xab, offset 0x2ac0 0x2ac0: 0x000c, 0x2ac1: 0x000c, 0x2ac2: 0x000c, 0x2ae7: 0x000c, 0x2ae8: 0x000c, 0x2ae9: 0x000c, 0x2aea: 0x000c, 0x2aeb: 0x000c, 0x2aed: 0x000c, 0x2aee: 0x000c, 0x2aef: 0x000c, 0x2af0: 0x000c, 0x2af1: 0x000c, 0x2af2: 0x000c, 0x2af3: 0x000c, 0x2af4: 0x000c, // Block 0xac, offset 0x2b00 0x2b33: 0x000c, // Block 0xad, offset 0x2b40 0x2b40: 0x000c, 0x2b41: 0x000c, 0x2b76: 0x000c, 0x2b77: 0x000c, 0x2b78: 0x000c, 0x2b79: 0x000c, 0x2b7a: 0x000c, 0x2b7b: 0x000c, 0x2b7c: 0x000c, 0x2b7d: 0x000c, 0x2b7e: 0x000c, // Block 0xae, offset 0x2b80 0x2b89: 0x000c, 0x2b8a: 0x000c, 0x2b8b: 0x000c, 0x2b8c: 0x000c, 0x2b8f: 0x000c, // Block 0xaf, offset 0x2bc0 0x2bef: 0x000c, 0x2bf0: 0x000c, 0x2bf1: 0x000c, 0x2bf4: 0x000c, 0x2bf6: 0x000c, 0x2bf7: 0x000c, 0x2bfe: 0x000c, // Block 0xb0, offset 0x2c00 0x2c1f: 0x000c, 0x2c23: 0x000c, 0x2c24: 0x000c, 0x2c25: 0x000c, 0x2c26: 0x000c, 0x2c27: 0x000c, 0x2c28: 0x000c, 0x2c29: 0x000c, 0x2c2a: 0x000c, // Block 0xb1, offset 0x2c40 0x2c40: 0x000c, 0x2c66: 0x000c, 0x2c67: 0x000c, 0x2c68: 0x000c, 0x2c69: 0x000c, 0x2c6a: 0x000c, 0x2c6b: 0x000c, 0x2c6c: 0x000c, 0x2c70: 0x000c, 0x2c71: 0x000c, 0x2c72: 0x000c, 0x2c73: 0x000c, 0x2c74: 0x000c, // Block 0xb2, offset 0x2c80 0x2cb8: 0x000c, 0x2cb9: 0x000c, 0x2cba: 0x000c, 0x2cbb: 0x000c, 0x2cbc: 0x000c, 0x2cbd: 0x000c, 0x2cbe: 0x000c, 0x2cbf: 0x000c, // Block 0xb3, offset 0x2cc0 0x2cc2: 0x000c, 0x2cc3: 0x000c, 0x2cc4: 0x000c, 0x2cc6: 0x000c, 0x2cde: 0x000c, // Block 0xb4, offset 0x2d00 0x2d33: 0x000c, 0x2d34: 0x000c, 0x2d35: 0x000c, 0x2d36: 0x000c, 0x2d37: 0x000c, 0x2d38: 0x000c, 0x2d3a: 0x000c, 0x2d3f: 0x000c, // Block 0xb5, offset 0x2d40 0x2d40: 0x000c, 0x2d42: 0x000c, 0x2d43: 0x000c, // Block 0xb6, offset 0x2d80 0x2db2: 0x000c, 0x2db3: 0x000c, 0x2db4: 0x000c, 0x2db5: 0x000c, 0x2dbc: 0x000c, 0x2dbd: 0x000c, 0x2dbf: 0x000c, // Block 0xb7, offset 0x2dc0 0x2dc0: 0x000c, 0x2ddc: 0x000c, 0x2ddd: 0x000c, // Block 0xb8, offset 0x2e00 0x2e33: 0x000c, 0x2e34: 0x000c, 0x2e35: 0x000c, 0x2e36: 0x000c, 0x2e37: 0x000c, 0x2e38: 0x000c, 0x2e39: 0x000c, 0x2e3a: 0x000c, 0x2e3d: 0x000c, 0x2e3f: 0x000c, // Block 0xb9, offset 0x2e40 0x2e40: 0x000c, 0x2e60: 0x000a, 0x2e61: 0x000a, 0x2e62: 0x000a, 0x2e63: 0x000a, 0x2e64: 0x000a, 0x2e65: 0x000a, 0x2e66: 0x000a, 0x2e67: 0x000a, 0x2e68: 0x000a, 0x2e69: 0x000a, 0x2e6a: 0x000a, 0x2e6b: 0x000a, 0x2e6c: 0x000a, // Block 0xba, offset 0x2e80 0x2eab: 0x000c, 0x2ead: 0x000c, 0x2eb0: 0x000c, 0x2eb1: 0x000c, 0x2eb2: 0x000c, 0x2eb3: 0x000c, 0x2eb4: 0x000c, 0x2eb5: 0x000c, 0x2eb7: 0x000c, // Block 0xbb, offset 0x2ec0 0x2edd: 0x000c, 0x2ede: 0x000c, 0x2edf: 0x000c, 0x2ee2: 0x000c, 0x2ee3: 0x000c, 0x2ee4: 0x000c, 0x2ee5: 0x000c, 0x2ee7: 0x000c, 0x2ee8: 0x000c, 0x2ee9: 0x000c, 0x2eea: 0x000c, 0x2eeb: 0x000c, // Block 0xbc, offset 0x2f00 0x2f2f: 0x000c, 0x2f30: 0x000c, 0x2f31: 0x000c, 0x2f32: 0x000c, 0x2f33: 0x000c, 0x2f34: 0x000c, 0x2f35: 0x000c, 0x2f36: 0x000c, 0x2f37: 0x000c, 0x2f39: 0x000c, 0x2f3a: 0x000c, // Block 0xbd, offset 0x2f40 0x2f7b: 0x000c, 0x2f7c: 0x000c, 0x2f7e: 0x000c, // Block 0xbe, offset 0x2f80 0x2f83: 0x000c, // Block 0xbf, offset 0x2fc0 0x2fd4: 0x000c, 0x2fd5: 0x000c, 0x2fd6: 0x000c, 0x2fd7: 0x000c, 0x2fda: 0x000c, 0x2fdb: 0x000c, 0x2fe0: 0x000c, // Block 0xc0, offset 0x3000 0x3001: 0x000c, 0x3002: 0x000c, 0x3003: 0x000c, 0x3004: 0x000c, 0x3005: 0x000c, 0x3006: 0x000c, 0x3009: 0x000c, 0x300a: 0x000c, 0x3033: 0x000c, 0x3034: 0x000c, 0x3035: 0x000c, 0x3036: 0x000c, 0x3037: 0x000c, 0x3038: 0x000c, 0x303b: 0x000c, 0x303c: 0x000c, 0x303d: 0x000c, 0x303e: 0x000c, // Block 0xc1, offset 0x3040 0x3047: 0x000c, 0x3051: 0x000c, 0x3052: 0x000c, 0x3053: 0x000c, 0x3054: 0x000c, 0x3055: 0x000c, 0x3056: 0x000c, 0x3059: 0x000c, 0x305a: 0x000c, 0x305b: 0x000c, // Block 0xc2, offset 0x3080 0x308a: 0x000c, 0x308b: 0x000c, 0x308c: 0x000c, 0x308d: 0x000c, 0x308e: 0x000c, 0x308f: 0x000c, 0x3090: 0x000c, 0x3091: 0x000c, 0x3092: 0x000c, 0x3093: 0x000c, 0x3094: 0x000c, 0x3095: 0x000c, 0x3096: 0x000c, 0x3098: 0x000c, 0x3099: 0x000c, // Block 0xc3, offset 0x30c0 0x30f0: 0x000c, 0x30f1: 0x000c, 0x30f2: 0x000c, 0x30f3: 0x000c, 0x30f4: 0x000c, 0x30f5: 0x000c, 0x30f6: 0x000c, 0x30f8: 0x000c, 0x30f9: 0x000c, 0x30fa: 0x000c, 0x30fb: 0x000c, 0x30fc: 0x000c, 0x30fd: 0x000c, // Block 0xc4, offset 0x3100 0x3112: 0x000c, 0x3113: 0x000c, 0x3114: 0x000c, 0x3115: 0x000c, 0x3116: 0x000c, 0x3117: 0x000c, 0x3118: 0x000c, 0x3119: 0x000c, 0x311a: 0x000c, 0x311b: 0x000c, 0x311c: 0x000c, 0x311d: 0x000c, 0x311e: 0x000c, 0x311f: 0x000c, 0x3120: 0x000c, 0x3121: 0x000c, 0x3122: 0x000c, 0x3123: 0x000c, 0x3124: 0x000c, 0x3125: 0x000c, 0x3126: 0x000c, 0x3127: 0x000c, 0x312a: 0x000c, 0x312b: 0x000c, 0x312c: 0x000c, 0x312d: 0x000c, 0x312e: 0x000c, 0x312f: 0x000c, 0x3130: 0x000c, 0x3132: 0x000c, 0x3133: 0x000c, 0x3135: 0x000c, 0x3136: 0x000c, // Block 0xc5, offset 0x3140 0x3171: 0x000c, 0x3172: 0x000c, 0x3173: 0x000c, 0x3174: 0x000c, 0x3175: 0x000c, 0x3176: 0x000c, 0x317a: 0x000c, 0x317c: 0x000c, 0x317d: 0x000c, 0x317f: 0x000c, // Block 0xc6, offset 0x3180 0x3180: 0x000c, 0x3181: 0x000c, 0x3182: 0x000c, 0x3183: 0x000c, 0x3184: 0x000c, 0x3185: 0x000c, 0x3187: 0x000c, // Block 0xc7, offset 0x31c0 0x31d0: 0x000c, 0x31d1: 0x000c, 0x31d5: 0x000c, 0x31d7: 0x000c, // Block 0xc8, offset 0x3200 0x3233: 0x000c, 0x3234: 0x000c, // Block 0xc9, offset 0x3240 0x3255: 0x000a, 0x3256: 0x000a, 0x3257: 0x000a, 0x3258: 0x000a, 0x3259: 0x000a, 0x325a: 0x000a, 0x325b: 0x000a, 0x325c: 0x000a, 0x325d: 0x0004, 0x325e: 0x0004, 0x325f: 0x0004, 0x3260: 0x0004, 0x3261: 0x000a, 0x3262: 0x000a, 0x3263: 0x000a, 0x3264: 0x000a, 0x3265: 0x000a, 0x3266: 0x000a, 0x3267: 0x000a, 0x3268: 0x000a, 0x3269: 0x000a, 0x326a: 0x000a, 0x326b: 0x000a, 0x326c: 0x000a, 0x326d: 0x000a, 0x326e: 0x000a, 0x326f: 0x000a, 0x3270: 0x000a, 0x3271: 0x000a, // Block 0xca, offset 0x3280 0x32b0: 0x000c, 0x32b1: 0x000c, 0x32b2: 0x000c, 0x32b3: 0x000c, 0x32b4: 0x000c, // Block 0xcb, offset 0x32c0 0x32f0: 0x000c, 0x32f1: 0x000c, 0x32f2: 0x000c, 0x32f3: 0x000c, 0x32f4: 0x000c, 0x32f5: 0x000c, 0x32f6: 0x000c, // Block 0xcc, offset 0x3300 0x330f: 0x000c, // Block 0xcd, offset 0x3340 0x334f: 0x000c, 0x3350: 0x000c, 0x3351: 0x000c, 0x3352: 0x000c, // Block 0xce, offset 0x3380 0x33a2: 0x000a, 0x33a4: 0x000c, // Block 0xcf, offset 0x33c0 0x33dd: 0x000c, 0x33de: 0x000c, 0x33e0: 0x000b, 0x33e1: 0x000b, 0x33e2: 0x000b, 0x33e3: 0x000b, // Block 0xd0, offset 0x3400 0x3427: 0x000c, 0x3428: 0x000c, 0x3429: 0x000c, 0x3433: 0x000b, 0x3434: 0x000b, 0x3435: 0x000b, 0x3436: 0x000b, 0x3437: 0x000b, 0x3438: 0x000b, 0x3439: 0x000b, 0x343a: 0x000b, 0x343b: 0x000c, 0x343c: 0x000c, 0x343d: 0x000c, 0x343e: 0x000c, 0x343f: 0x000c, // Block 0xd1, offset 0x3440 0x3440: 0x000c, 0x3441: 0x000c, 0x3442: 0x000c, 0x3445: 0x000c, 0x3446: 0x000c, 0x3447: 0x000c, 0x3448: 0x000c, 0x3449: 0x000c, 0x344a: 0x000c, 0x344b: 0x000c, 0x346a: 0x000c, 0x346b: 0x000c, 0x346c: 0x000c, 0x346d: 0x000c, // Block 0xd2, offset 0x3480 0x3480: 0x000a, 0x3481: 0x000a, 0x3482: 0x000c, 0x3483: 0x000c, 0x3484: 0x000c, 0x3485: 0x000a, // Block 0xd3, offset 0x34c0 0x34c0: 0x000a, 0x34c1: 0x000a, 0x34c2: 0x000a, 0x34c3: 0x000a, 0x34c4: 0x000a, 0x34c5: 0x000a, 0x34c6: 0x000a, 0x34c7: 0x000a, 0x34c8: 0x000a, 0x34c9: 0x000a, 0x34ca: 0x000a, 0x34cb: 0x000a, 0x34cc: 0x000a, 0x34cd: 0x000a, 0x34ce: 0x000a, 0x34cf: 0x000a, 0x34d0: 0x000a, 0x34d1: 0x000a, 0x34d2: 0x000a, 0x34d3: 0x000a, 0x34d4: 0x000a, 0x34d5: 0x000a, 0x34d6: 0x000a, // Block 0xd4, offset 0x3500 0x351b: 0x000a, // Block 0xd5, offset 0x3540 0x3555: 0x000a, // Block 0xd6, offset 0x3580 0x358f: 0x000a, // Block 0xd7, offset 0x35c0 0x35c9: 0x000a, // Block 0xd8, offset 0x3600 0x3603: 0x000a, 0x360e: 0x0002, 0x360f: 0x0002, 0x3610: 0x0002, 0x3611: 0x0002, 0x3612: 0x0002, 0x3613: 0x0002, 0x3614: 0x0002, 0x3615: 0x0002, 0x3616: 0x0002, 0x3617: 0x0002, 0x3618: 0x0002, 0x3619: 0x0002, 0x361a: 0x0002, 0x361b: 0x0002, 0x361c: 0x0002, 0x361d: 0x0002, 0x361e: 0x0002, 0x361f: 0x0002, 0x3620: 0x0002, 0x3621: 0x0002, 0x3622: 0x0002, 0x3623: 0x0002, 0x3624: 0x0002, 0x3625: 0x0002, 0x3626: 0x0002, 0x3627: 0x0002, 0x3628: 0x0002, 0x3629: 0x0002, 0x362a: 0x0002, 0x362b: 0x0002, 0x362c: 0x0002, 0x362d: 0x0002, 0x362e: 0x0002, 0x362f: 0x0002, 0x3630: 0x0002, 0x3631: 0x0002, 0x3632: 0x0002, 0x3633: 0x0002, 0x3634: 0x0002, 0x3635: 0x0002, 0x3636: 0x0002, 0x3637: 0x0002, 0x3638: 0x0002, 0x3639: 0x0002, 0x363a: 0x0002, 0x363b: 0x0002, 0x363c: 0x0002, 0x363d: 0x0002, 0x363e: 0x0002, 0x363f: 0x0002, // Block 0xd9, offset 0x3640 0x3640: 0x000c, 0x3641: 0x000c, 0x3642: 0x000c, 0x3643: 0x000c, 0x3644: 0x000c, 0x3645: 0x000c, 0x3646: 0x000c, 0x3647: 0x000c, 0x3648: 0x000c, 0x3649: 0x000c, 0x364a: 0x000c, 0x364b: 0x000c, 0x364c: 0x000c, 0x364d: 0x000c, 0x364e: 0x000c, 0x364f: 0x000c, 0x3650: 0x000c, 0x3651: 0x000c, 0x3652: 0x000c, 0x3653: 0x000c, 0x3654: 0x000c, 0x3655: 0x000c, 0x3656: 0x000c, 0x3657: 0x000c, 0x3658: 0x000c, 0x3659: 0x000c, 0x365a: 0x000c, 0x365b: 0x000c, 0x365c: 0x000c, 0x365d: 0x000c, 0x365e: 0x000c, 0x365f: 0x000c, 0x3660: 0x000c, 0x3661: 0x000c, 0x3662: 0x000c, 0x3663: 0x000c, 0x3664: 0x000c, 0x3665: 0x000c, 0x3666: 0x000c, 0x3667: 0x000c, 0x3668: 0x000c, 0x3669: 0x000c, 0x366a: 0x000c, 0x366b: 0x000c, 0x366c: 0x000c, 0x366d: 0x000c, 0x366e: 0x000c, 0x366f: 0x000c, 0x3670: 0x000c, 0x3671: 0x000c, 0x3672: 0x000c, 0x3673: 0x000c, 0x3674: 0x000c, 0x3675: 0x000c, 0x3676: 0x000c, 0x367b: 0x000c, 0x367c: 0x000c, 0x367d: 0x000c, 0x367e: 0x000c, 0x367f: 0x000c, // Block 0xda, offset 0x3680 0x3680: 0x000c, 0x3681: 0x000c, 0x3682: 0x000c, 0x3683: 0x000c, 0x3684: 0x000c, 0x3685: 0x000c, 0x3686: 0x000c, 0x3687: 0x000c, 0x3688: 0x000c, 0x3689: 0x000c, 0x368a: 0x000c, 0x368b: 0x000c, 0x368c: 0x000c, 0x368d: 0x000c, 0x368e: 0x000c, 0x368f: 0x000c, 0x3690: 0x000c, 0x3691: 0x000c, 0x3692: 0x000c, 0x3693: 0x000c, 0x3694: 0x000c, 0x3695: 0x000c, 0x3696: 0x000c, 0x3697: 0x000c, 0x3698: 0x000c, 0x3699: 0x000c, 0x369a: 0x000c, 0x369b: 0x000c, 0x369c: 0x000c, 0x369d: 0x000c, 0x369e: 0x000c, 0x369f: 0x000c, 0x36a0: 0x000c, 0x36a1: 0x000c, 0x36a2: 0x000c, 0x36a3: 0x000c, 0x36a4: 0x000c, 0x36a5: 0x000c, 0x36a6: 0x000c, 0x36a7: 0x000c, 0x36a8: 0x000c, 0x36a9: 0x000c, 0x36aa: 0x000c, 0x36ab: 0x000c, 0x36ac: 0x000c, 0x36b5: 0x000c, // Block 0xdb, offset 0x36c0 0x36c4: 0x000c, 0x36db: 0x000c, 0x36dc: 0x000c, 0x36dd: 0x000c, 0x36de: 0x000c, 0x36df: 0x000c, 0x36e1: 0x000c, 0x36e2: 0x000c, 0x36e3: 0x000c, 0x36e4: 0x000c, 0x36e5: 0x000c, 0x36e6: 0x000c, 0x36e7: 0x000c, 0x36e8: 0x000c, 0x36e9: 0x000c, 0x36ea: 0x000c, 0x36eb: 0x000c, 0x36ec: 0x000c, 0x36ed: 0x000c, 0x36ee: 0x000c, 0x36ef: 0x000c, // Block 0xdc, offset 0x3700 0x3700: 0x000c, 0x3701: 0x000c, 0x3702: 0x000c, 0x3703: 0x000c, 0x3704: 0x000c, 0x3705: 0x000c, 0x3706: 0x000c, 0x3708: 0x000c, 0x3709: 0x000c, 0x370a: 0x000c, 0x370b: 0x000c, 0x370c: 0x000c, 0x370d: 0x000c, 0x370e: 0x000c, 0x370f: 0x000c, 0x3710: 0x000c, 0x3711: 0x000c, 0x3712: 0x000c, 0x3713: 0x000c, 0x3714: 0x000c, 0x3715: 0x000c, 0x3716: 0x000c, 0x3717: 0x000c, 0x3718: 0x000c, 0x371b: 0x000c, 0x371c: 0x000c, 0x371d: 0x000c, 0x371e: 0x000c, 0x371f: 0x000c, 0x3720: 0x000c, 0x3721: 0x000c, 0x3723: 0x000c, 0x3724: 0x000c, 0x3726: 0x000c, 0x3727: 0x000c, 0x3728: 0x000c, 0x3729: 0x000c, 0x372a: 0x000c, // Block 0xdd, offset 0x3740 0x376c: 0x000c, 0x376d: 0x000c, 0x376e: 0x000c, 0x376f: 0x000c, 0x377f: 0x0004, // Block 0xde, offset 0x3780 0x3780: 0x0001, 0x3781: 0x0001, 0x3782: 0x0001, 0x3783: 0x0001, 0x3784: 0x0001, 0x3785: 0x0001, 0x3786: 0x0001, 0x3787: 0x0001, 0x3788: 0x0001, 0x3789: 0x0001, 0x378a: 0x0001, 0x378b: 0x0001, 0x378c: 0x0001, 0x378d: 0x0001, 0x378e: 0x0001, 0x378f: 0x0001, 0x3790: 0x000c, 0x3791: 0x000c, 0x3792: 0x000c, 0x3793: 0x000c, 0x3794: 0x000c, 0x3795: 0x000c, 0x3796: 0x000c, 0x3797: 0x0001, 0x3798: 0x0001, 0x3799: 0x0001, 0x379a: 0x0001, 0x379b: 0x0001, 0x379c: 0x0001, 0x379d: 0x0001, 0x379e: 0x0001, 0x379f: 0x0001, 0x37a0: 0x0001, 0x37a1: 0x0001, 0x37a2: 0x0001, 0x37a3: 0x0001, 0x37a4: 0x0001, 0x37a5: 0x0001, 0x37a6: 0x0001, 0x37a7: 0x0001, 0x37a8: 0x0001, 0x37a9: 0x0001, 0x37aa: 0x0001, 0x37ab: 0x0001, 0x37ac: 0x0001, 0x37ad: 0x0001, 0x37ae: 0x0001, 0x37af: 0x0001, 0x37b0: 0x0001, 0x37b1: 0x0001, 0x37b2: 0x0001, 0x37b3: 0x0001, 0x37b4: 0x0001, 0x37b5: 0x0001, 0x37b6: 0x0001, 0x37b7: 0x0001, 0x37b8: 0x0001, 0x37b9: 0x0001, 0x37ba: 0x0001, 0x37bb: 0x0001, 0x37bc: 0x0001, 0x37bd: 0x0001, 0x37be: 0x0001, 0x37bf: 0x0001, // Block 0xdf, offset 0x37c0 0x37c0: 0x0001, 0x37c1: 0x0001, 0x37c2: 0x0001, 0x37c3: 0x0001, 0x37c4: 0x000c, 0x37c5: 0x000c, 0x37c6: 0x000c, 0x37c7: 0x000c, 0x37c8: 0x000c, 0x37c9: 0x000c, 0x37ca: 0x000c, 0x37cb: 0x0001, 0x37cc: 0x0001, 0x37cd: 0x0001, 0x37ce: 0x0001, 0x37cf: 0x0001, 0x37d0: 0x0001, 0x37d1: 0x0001, 0x37d2: 0x0001, 0x37d3: 0x0001, 0x37d4: 0x0001, 0x37d5: 0x0001, 0x37d6: 0x0001, 0x37d7: 0x0001, 0x37d8: 0x0001, 0x37d9: 0x0001, 0x37da: 0x0001, 0x37db: 0x0001, 0x37dc: 0x0001, 0x37dd: 0x0001, 0x37de: 0x0001, 0x37df: 0x0001, 0x37e0: 0x0001, 0x37e1: 0x0001, 0x37e2: 0x0001, 0x37e3: 0x0001, 0x37e4: 0x0001, 0x37e5: 0x0001, 0x37e6: 0x0001, 0x37e7: 0x0001, 0x37e8: 0x0001, 0x37e9: 0x0001, 0x37ea: 0x0001, 0x37eb: 0x0001, 0x37ec: 0x0001, 0x37ed: 0x0001, 0x37ee: 0x0001, 0x37ef: 0x0001, 0x37f0: 0x0001, 0x37f1: 0x0001, 0x37f2: 0x0001, 0x37f3: 0x0001, 0x37f4: 0x0001, 0x37f5: 0x0001, 0x37f6: 0x0001, 0x37f7: 0x0001, 0x37f8: 0x0001, 0x37f9: 0x0001, 0x37fa: 0x0001, 0x37fb: 0x0001, 0x37fc: 0x0001, 0x37fd: 0x0001, 0x37fe: 0x0001, 0x37ff: 0x0001, // Block 0xe0, offset 0x3800 0x3800: 0x000d, 0x3801: 0x000d, 0x3802: 0x000d, 0x3803: 0x000d, 0x3804: 0x000d, 0x3805: 0x000d, 0x3806: 0x000d, 0x3807: 0x000d, 0x3808: 0x000d, 0x3809: 0x000d, 0x380a: 0x000d, 0x380b: 0x000d, 0x380c: 0x000d, 0x380d: 0x000d, 0x380e: 0x000d, 0x380f: 0x000d, 0x3810: 0x0001, 0x3811: 0x0001, 0x3812: 0x0001, 0x3813: 0x0001, 0x3814: 0x0001, 0x3815: 0x0001, 0x3816: 0x0001, 0x3817: 0x0001, 0x3818: 0x0001, 0x3819: 0x0001, 0x381a: 0x0001, 0x381b: 0x0001, 0x381c: 0x0001, 0x381d: 0x0001, 0x381e: 0x0001, 0x381f: 0x0001, 0x3820: 0x0001, 0x3821: 0x0001, 0x3822: 0x0001, 0x3823: 0x0001, 0x3824: 0x0001, 0x3825: 0x0001, 0x3826: 0x0001, 0x3827: 0x0001, 0x3828: 0x0001, 0x3829: 0x0001, 0x382a: 0x0001, 0x382b: 0x0001, 0x382c: 0x0001, 0x382d: 0x0001, 0x382e: 0x0001, 0x382f: 0x0001, 0x3830: 0x0001, 0x3831: 0x0001, 0x3832: 0x0001, 0x3833: 0x0001, 0x3834: 0x0001, 0x3835: 0x0001, 0x3836: 0x0001, 0x3837: 0x0001, 0x3838: 0x0001, 0x3839: 0x0001, 0x383a: 0x0001, 0x383b: 0x0001, 0x383c: 0x0001, 0x383d: 0x0001, 0x383e: 0x0001, 0x383f: 0x0001, // Block 0xe1, offset 0x3840 0x3840: 0x000d, 0x3841: 0x000d, 0x3842: 0x000d, 0x3843: 0x000d, 0x3844: 0x000d, 0x3845: 0x000d, 0x3846: 0x000d, 0x3847: 0x000d, 0x3848: 0x000d, 0x3849: 0x000d, 0x384a: 0x000d, 0x384b: 0x000d, 0x384c: 0x000d, 0x384d: 0x000d, 0x384e: 0x000d, 0x384f: 0x000d, 0x3850: 0x000d, 0x3851: 0x000d, 0x3852: 0x000d, 0x3853: 0x000d, 0x3854: 0x000d, 0x3855: 0x000d, 0x3856: 0x000d, 0x3857: 0x000d, 0x3858: 0x000d, 0x3859: 0x000d, 0x385a: 0x000d, 0x385b: 0x000d, 0x385c: 0x000d, 0x385d: 0x000d, 0x385e: 0x000d, 0x385f: 0x000d, 0x3860: 0x000d, 0x3861: 0x000d, 0x3862: 0x000d, 0x3863: 0x000d, 0x3864: 0x000d, 0x3865: 0x000d, 0x3866: 0x000d, 0x3867: 0x000d, 0x3868: 0x000d, 0x3869: 0x000d, 0x386a: 0x000d, 0x386b: 0x000d, 0x386c: 0x000d, 0x386d: 0x000d, 0x386e: 0x000d, 0x386f: 0x000d, 0x3870: 0x000a, 0x3871: 0x000a, 0x3872: 0x000d, 0x3873: 0x000d, 0x3874: 0x000d, 0x3875: 0x000d, 0x3876: 0x000d, 0x3877: 0x000d, 0x3878: 0x000d, 0x3879: 0x000d, 0x387a: 0x000d, 0x387b: 0x000d, 0x387c: 0x000d, 0x387d: 0x000d, 0x387e: 0x000d, 0x387f: 0x000d, // Block 0xe2, offset 0x3880 0x3880: 0x000a, 0x3881: 0x000a, 0x3882: 0x000a, 0x3883: 0x000a, 0x3884: 0x000a, 0x3885: 0x000a, 0x3886: 0x000a, 0x3887: 0x000a, 0x3888: 0x000a, 0x3889: 0x000a, 0x388a: 0x000a, 0x388b: 0x000a, 0x388c: 0x000a, 0x388d: 0x000a, 0x388e: 0x000a, 0x388f: 0x000a, 0x3890: 0x000a, 0x3891: 0x000a, 0x3892: 0x000a, 0x3893: 0x000a, 0x3894: 0x000a, 0x3895: 0x000a, 0x3896: 0x000a, 0x3897: 0x000a, 0x3898: 0x000a, 0x3899: 0x000a, 0x389a: 0x000a, 0x389b: 0x000a, 0x389c: 0x000a, 0x389d: 0x000a, 0x389e: 0x000a, 0x389f: 0x000a, 0x38a0: 0x000a, 0x38a1: 0x000a, 0x38a2: 0x000a, 0x38a3: 0x000a, 0x38a4: 0x000a, 0x38a5: 0x000a, 0x38a6: 0x000a, 0x38a7: 0x000a, 0x38a8: 0x000a, 0x38a9: 0x000a, 0x38aa: 0x000a, 0x38ab: 0x000a, 0x38b0: 0x000a, 0x38b1: 0x000a, 0x38b2: 0x000a, 0x38b3: 0x000a, 0x38b4: 0x000a, 0x38b5: 0x000a, 0x38b6: 0x000a, 0x38b7: 0x000a, 0x38b8: 0x000a, 0x38b9: 0x000a, 0x38ba: 0x000a, 0x38bb: 0x000a, 0x38bc: 0x000a, 0x38bd: 0x000a, 0x38be: 0x000a, 0x38bf: 0x000a, // Block 0xe3, offset 0x38c0 0x38c0: 0x000a, 0x38c1: 0x000a, 0x38c2: 0x000a, 0x38c3: 0x000a, 0x38c4: 0x000a, 0x38c5: 0x000a, 0x38c6: 0x000a, 0x38c7: 0x000a, 0x38c8: 0x000a, 0x38c9: 0x000a, 0x38ca: 0x000a, 0x38cb: 0x000a, 0x38cc: 0x000a, 0x38cd: 0x000a, 0x38ce: 0x000a, 0x38cf: 0x000a, 0x38d0: 0x000a, 0x38d1: 0x000a, 0x38d2: 0x000a, 0x38d3: 0x000a, 0x38e0: 0x000a, 0x38e1: 0x000a, 0x38e2: 0x000a, 0x38e3: 0x000a, 0x38e4: 0x000a, 0x38e5: 0x000a, 0x38e6: 0x000a, 0x38e7: 0x000a, 0x38e8: 0x000a, 0x38e9: 0x000a, 0x38ea: 0x000a, 0x38eb: 0x000a, 0x38ec: 0x000a, 0x38ed: 0x000a, 0x38ee: 0x000a, 0x38f1: 0x000a, 0x38f2: 0x000a, 0x38f3: 0x000a, 0x38f4: 0x000a, 0x38f5: 0x000a, 0x38f6: 0x000a, 0x38f7: 0x000a, 0x38f8: 0x000a, 0x38f9: 0x000a, 0x38fa: 0x000a, 0x38fb: 0x000a, 0x38fc: 0x000a, 0x38fd: 0x000a, 0x38fe: 0x000a, 0x38ff: 0x000a, // Block 0xe4, offset 0x3900 0x3901: 0x000a, 0x3902: 0x000a, 0x3903: 0x000a, 0x3904: 0x000a, 0x3905: 0x000a, 0x3906: 0x000a, 0x3907: 0x000a, 0x3908: 0x000a, 0x3909: 0x000a, 0x390a: 0x000a, 0x390b: 0x000a, 0x390c: 0x000a, 0x390d: 0x000a, 0x390e: 0x000a, 0x390f: 0x000a, 0x3911: 0x000a, 0x3912: 0x000a, 0x3913: 0x000a, 0x3914: 0x000a, 0x3915: 0x000a, 0x3916: 0x000a, 0x3917: 0x000a, 0x3918: 0x000a, 0x3919: 0x000a, 0x391a: 0x000a, 0x391b: 0x000a, 0x391c: 0x000a, 0x391d: 0x000a, 0x391e: 0x000a, 0x391f: 0x000a, 0x3920: 0x000a, 0x3921: 0x000a, 0x3922: 0x000a, 0x3923: 0x000a, 0x3924: 0x000a, 0x3925: 0x000a, 0x3926: 0x000a, 0x3927: 0x000a, 0x3928: 0x000a, 0x3929: 0x000a, 0x392a: 0x000a, 0x392b: 0x000a, 0x392c: 0x000a, 0x392d: 0x000a, 0x392e: 0x000a, 0x392f: 0x000a, 0x3930: 0x000a, 0x3931: 0x000a, 0x3932: 0x000a, 0x3933: 0x000a, 0x3934: 0x000a, 0x3935: 0x000a, // Block 0xe5, offset 0x3940 0x3940: 0x0002, 0x3941: 0x0002, 0x3942: 0x0002, 0x3943: 0x0002, 0x3944: 0x0002, 0x3945: 0x0002, 0x3946: 0x0002, 0x3947: 0x0002, 0x3948: 0x0002, 0x3949: 0x0002, 0x394a: 0x0002, 0x394b: 0x000a, 0x394c: 0x000a, 0x394d: 0x000a, 0x394e: 0x000a, 0x394f: 0x000a, 0x396f: 0x000a, // Block 0xe6, offset 0x3980 0x39aa: 0x000a, 0x39ab: 0x000a, 0x39ac: 0x000a, 0x39ad: 0x000a, 0x39ae: 0x000a, 0x39af: 0x000a, // Block 0xe7, offset 0x39c0 0x39ed: 0x000a, // Block 0xe8, offset 0x3a00 0x3a20: 0x000a, 0x3a21: 0x000a, 0x3a22: 0x000a, 0x3a23: 0x000a, 0x3a24: 0x000a, 0x3a25: 0x000a, // Block 0xe9, offset 0x3a40 0x3a40: 0x000a, 0x3a41: 0x000a, 0x3a42: 0x000a, 0x3a43: 0x000a, 0x3a44: 0x000a, 0x3a45: 0x000a, 0x3a46: 0x000a, 0x3a47: 0x000a, 0x3a48: 0x000a, 0x3a49: 0x000a, 0x3a4a: 0x000a, 0x3a4b: 0x000a, 0x3a4c: 0x000a, 0x3a4d: 0x000a, 0x3a4e: 0x000a, 0x3a4f: 0x000a, 0x3a50: 0x000a, 0x3a51: 0x000a, 0x3a52: 0x000a, 0x3a53: 0x000a, 0x3a54: 0x000a, 0x3a55: 0x000a, 0x3a56: 0x000a, 0x3a57: 0x000a, 0x3a60: 0x000a, 0x3a61: 0x000a, 0x3a62: 0x000a, 0x3a63: 0x000a, 0x3a64: 0x000a, 0x3a65: 0x000a, 0x3a66: 0x000a, 0x3a67: 0x000a, 0x3a68: 0x000a, 0x3a69: 0x000a, 0x3a6a: 0x000a, 0x3a6b: 0x000a, 0x3a6c: 0x000a, 0x3a70: 0x000a, 0x3a71: 0x000a, 0x3a72: 0x000a, 0x3a73: 0x000a, 0x3a74: 0x000a, 0x3a75: 0x000a, 0x3a76: 0x000a, 0x3a77: 0x000a, 0x3a78: 0x000a, 0x3a79: 0x000a, 0x3a7a: 0x000a, 0x3a7b: 0x000a, 0x3a7c: 0x000a, // Block 0xea, offset 0x3a80 0x3a80: 0x000a, 0x3a81: 0x000a, 0x3a82: 0x000a, 0x3a83: 0x000a, 0x3a84: 0x000a, 0x3a85: 0x000a, 0x3a86: 0x000a, 0x3a87: 0x000a, 0x3a88: 0x000a, 0x3a89: 0x000a, 0x3a8a: 0x000a, 0x3a8b: 0x000a, 0x3a8c: 0x000a, 0x3a8d: 0x000a, 0x3a8e: 0x000a, 0x3a8f: 0x000a, 0x3a90: 0x000a, 0x3a91: 0x000a, 0x3a92: 0x000a, 0x3a93: 0x000a, 0x3a94: 0x000a, 0x3a95: 0x000a, 0x3a96: 0x000a, 0x3a97: 0x000a, 0x3a98: 0x000a, 0x3aa0: 0x000a, 0x3aa1: 0x000a, 0x3aa2: 0x000a, 0x3aa3: 0x000a, 0x3aa4: 0x000a, 0x3aa5: 0x000a, 0x3aa6: 0x000a, 0x3aa7: 0x000a, 0x3aa8: 0x000a, 0x3aa9: 0x000a, 0x3aaa: 0x000a, 0x3aab: 0x000a, // Block 0xeb, offset 0x3ac0 0x3ac0: 0x000a, 0x3ac1: 0x000a, 0x3ac2: 0x000a, 0x3ac3: 0x000a, 0x3ac4: 0x000a, 0x3ac5: 0x000a, 0x3ac6: 0x000a, 0x3ac7: 0x000a, 0x3ac8: 0x000a, 0x3ac9: 0x000a, 0x3aca: 0x000a, 0x3acb: 0x000a, 0x3ad0: 0x000a, 0x3ad1: 0x000a, 0x3ad2: 0x000a, 0x3ad3: 0x000a, 0x3ad4: 0x000a, 0x3ad5: 0x000a, 0x3ad6: 0x000a, 0x3ad7: 0x000a, 0x3ad8: 0x000a, 0x3ad9: 0x000a, 0x3ada: 0x000a, 0x3adb: 0x000a, 0x3adc: 0x000a, 0x3add: 0x000a, 0x3ade: 0x000a, 0x3adf: 0x000a, 0x3ae0: 0x000a, 0x3ae1: 0x000a, 0x3ae2: 0x000a, 0x3ae3: 0x000a, 0x3ae4: 0x000a, 0x3ae5: 0x000a, 0x3ae6: 0x000a, 0x3ae7: 0x000a, 0x3ae8: 0x000a, 0x3ae9: 0x000a, 0x3aea: 0x000a, 0x3aeb: 0x000a, 0x3aec: 0x000a, 0x3aed: 0x000a, 0x3aee: 0x000a, 0x3aef: 0x000a, 0x3af0: 0x000a, 0x3af1: 0x000a, 0x3af2: 0x000a, 0x3af3: 0x000a, 0x3af4: 0x000a, 0x3af5: 0x000a, 0x3af6: 0x000a, 0x3af7: 0x000a, 0x3af8: 0x000a, 0x3af9: 0x000a, 0x3afa: 0x000a, 0x3afb: 0x000a, 0x3afc: 0x000a, 0x3afd: 0x000a, 0x3afe: 0x000a, 0x3aff: 0x000a, // Block 0xec, offset 0x3b00 0x3b00: 0x000a, 0x3b01: 0x000a, 0x3b02: 0x000a, 0x3b03: 0x000a, 0x3b04: 0x000a, 0x3b05: 0x000a, 0x3b06: 0x000a, 0x3b07: 0x000a, 0x3b10: 0x000a, 0x3b11: 0x000a, 0x3b12: 0x000a, 0x3b13: 0x000a, 0x3b14: 0x000a, 0x3b15: 0x000a, 0x3b16: 0x000a, 0x3b17: 0x000a, 0x3b18: 0x000a, 0x3b19: 0x000a, 0x3b20: 0x000a, 0x3b21: 0x000a, 0x3b22: 0x000a, 0x3b23: 0x000a, 0x3b24: 0x000a, 0x3b25: 0x000a, 0x3b26: 0x000a, 0x3b27: 0x000a, 0x3b28: 0x000a, 0x3b29: 0x000a, 0x3b2a: 0x000a, 0x3b2b: 0x000a, 0x3b2c: 0x000a, 0x3b2d: 0x000a, 0x3b2e: 0x000a, 0x3b2f: 0x000a, 0x3b30: 0x000a, 0x3b31: 0x000a, 0x3b32: 0x000a, 0x3b33: 0x000a, 0x3b34: 0x000a, 0x3b35: 0x000a, 0x3b36: 0x000a, 0x3b37: 0x000a, 0x3b38: 0x000a, 0x3b39: 0x000a, 0x3b3a: 0x000a, 0x3b3b: 0x000a, 0x3b3c: 0x000a, 0x3b3d: 0x000a, 0x3b3e: 0x000a, 0x3b3f: 0x000a, // Block 0xed, offset 0x3b40 0x3b40: 0x000a, 0x3b41: 0x000a, 0x3b42: 0x000a, 0x3b43: 0x000a, 0x3b44: 0x000a, 0x3b45: 0x000a, 0x3b46: 0x000a, 0x3b47: 0x000a, 0x3b50: 0x000a, 0x3b51: 0x000a, 0x3b52: 0x000a, 0x3b53: 0x000a, 0x3b54: 0x000a, 0x3b55: 0x000a, 0x3b56: 0x000a, 0x3b57: 0x000a, 0x3b58: 0x000a, 0x3b59: 0x000a, 0x3b5a: 0x000a, 0x3b5b: 0x000a, 0x3b5c: 0x000a, 0x3b5d: 0x000a, 0x3b5e: 0x000a, 0x3b5f: 0x000a, 0x3b60: 0x000a, 0x3b61: 0x000a, 0x3b62: 0x000a, 0x3b63: 0x000a, 0x3b64: 0x000a, 0x3b65: 0x000a, 0x3b66: 0x000a, 0x3b67: 0x000a, 0x3b68: 0x000a, 0x3b69: 0x000a, 0x3b6a: 0x000a, 0x3b6b: 0x000a, 0x3b6c: 0x000a, 0x3b6d: 0x000a, 0x3b70: 0x000a, 0x3b71: 0x000a, // Block 0xee, offset 0x3b80 0x3b80: 0x000a, 0x3b81: 0x000a, 0x3b82: 0x000a, 0x3b83: 0x000a, 0x3b84: 0x000a, 0x3b85: 0x000a, 0x3b86: 0x000a, 0x3b87: 0x000a, 0x3b88: 0x000a, 0x3b89: 0x000a, 0x3b8a: 0x000a, 0x3b8b: 0x000a, 0x3b8c: 0x000a, 0x3b8d: 0x000a, 0x3b8e: 0x000a, 0x3b8f: 0x000a, 0x3b90: 0x000a, 0x3b91: 0x000a, 0x3b92: 0x000a, 0x3b93: 0x000a, 0x3b94: 0x000a, 0x3b95: 0x000a, 0x3b96: 0x000a, 0x3b97: 0x000a, 0x3b98: 0x000a, 0x3b99: 0x000a, 0x3b9a: 0x000a, 0x3b9b: 0x000a, 0x3b9c: 0x000a, 0x3b9d: 0x000a, 0x3b9e: 0x000a, 0x3b9f: 0x000a, 0x3ba0: 0x000a, 0x3ba1: 0x000a, 0x3ba2: 0x000a, 0x3ba3: 0x000a, 0x3ba4: 0x000a, 0x3ba5: 0x000a, 0x3ba6: 0x000a, 0x3ba7: 0x000a, 0x3ba8: 0x000a, 0x3ba9: 0x000a, 0x3baa: 0x000a, 0x3bab: 0x000a, 0x3bac: 0x000a, 0x3bad: 0x000a, 0x3bae: 0x000a, 0x3baf: 0x000a, 0x3bb0: 0x000a, 0x3bb1: 0x000a, 0x3bb2: 0x000a, 0x3bb3: 0x000a, 0x3bb4: 0x000a, 0x3bb5: 0x000a, 0x3bb6: 0x000a, 0x3bb7: 0x000a, 0x3bb8: 0x000a, 0x3bba: 0x000a, 0x3bbb: 0x000a, 0x3bbc: 0x000a, 0x3bbd: 0x000a, 0x3bbe: 0x000a, 0x3bbf: 0x000a, // Block 0xef, offset 0x3bc0 0x3bc0: 0x000a, 0x3bc1: 0x000a, 0x3bc2: 0x000a, 0x3bc3: 0x000a, 0x3bc4: 0x000a, 0x3bc5: 0x000a, 0x3bc6: 0x000a, 0x3bc7: 0x000a, 0x3bc8: 0x000a, 0x3bc9: 0x000a, 0x3bca: 0x000a, 0x3bcb: 0x000a, 0x3bcd: 0x000a, 0x3bce: 0x000a, 0x3bcf: 0x000a, 0x3bd0: 0x000a, 0x3bd1: 0x000a, 0x3bd2: 0x000a, 0x3bd3: 0x000a, 0x3bd4: 0x000a, 0x3bd5: 0x000a, 0x3bd6: 0x000a, 0x3bd7: 0x000a, 0x3bd8: 0x000a, 0x3bd9: 0x000a, 0x3bda: 0x000a, 0x3bdb: 0x000a, 0x3bdc: 0x000a, 0x3bdd: 0x000a, 0x3bde: 0x000a, 0x3bdf: 0x000a, 0x3be0: 0x000a, 0x3be1: 0x000a, 0x3be2: 0x000a, 0x3be3: 0x000a, 0x3be4: 0x000a, 0x3be5: 0x000a, 0x3be6: 0x000a, 0x3be7: 0x000a, 0x3be8: 0x000a, 0x3be9: 0x000a, 0x3bea: 0x000a, 0x3beb: 0x000a, 0x3bec: 0x000a, 0x3bed: 0x000a, 0x3bee: 0x000a, 0x3bef: 0x000a, 0x3bf0: 0x000a, 0x3bf1: 0x000a, 0x3bf2: 0x000a, 0x3bf3: 0x000a, 0x3bf4: 0x000a, 0x3bf5: 0x000a, 0x3bf6: 0x000a, 0x3bf7: 0x000a, 0x3bf8: 0x000a, 0x3bf9: 0x000a, 0x3bfa: 0x000a, 0x3bfb: 0x000a, 0x3bfc: 0x000a, 0x3bfd: 0x000a, 0x3bfe: 0x000a, 0x3bff: 0x000a, // Block 0xf0, offset 0x3c00 0x3c00: 0x000a, 0x3c01: 0x000a, 0x3c02: 0x000a, 0x3c03: 0x000a, 0x3c04: 0x000a, 0x3c05: 0x000a, 0x3c06: 0x000a, 0x3c07: 0x000a, 0x3c08: 0x000a, 0x3c09: 0x000a, 0x3c0a: 0x000a, 0x3c0b: 0x000a, 0x3c0c: 0x000a, 0x3c0d: 0x000a, 0x3c0e: 0x000a, 0x3c0f: 0x000a, 0x3c10: 0x000a, 0x3c11: 0x000a, 0x3c12: 0x000a, 0x3c13: 0x000a, 0x3c20: 0x000a, 0x3c21: 0x000a, 0x3c22: 0x000a, 0x3c23: 0x000a, 0x3c24: 0x000a, 0x3c25: 0x000a, 0x3c26: 0x000a, 0x3c27: 0x000a, 0x3c28: 0x000a, 0x3c29: 0x000a, 0x3c2a: 0x000a, 0x3c2b: 0x000a, 0x3c2c: 0x000a, 0x3c2d: 0x000a, 0x3c30: 0x000a, 0x3c31: 0x000a, 0x3c32: 0x000a, 0x3c33: 0x000a, 0x3c34: 0x000a, 0x3c38: 0x000a, 0x3c39: 0x000a, 0x3c3a: 0x000a, // Block 0xf1, offset 0x3c40 0x3c40: 0x000a, 0x3c41: 0x000a, 0x3c42: 0x000a, 0x3c43: 0x000a, 0x3c44: 0x000a, 0x3c45: 0x000a, 0x3c46: 0x000a, 0x3c50: 0x000a, 0x3c51: 0x000a, 0x3c52: 0x000a, 0x3c53: 0x000a, 0x3c54: 0x000a, 0x3c55: 0x000a, 0x3c56: 0x000a, 0x3c57: 0x000a, 0x3c58: 0x000a, 0x3c59: 0x000a, 0x3c5a: 0x000a, 0x3c5b: 0x000a, 0x3c5c: 0x000a, 0x3c5d: 0x000a, 0x3c5e: 0x000a, 0x3c5f: 0x000a, 0x3c60: 0x000a, 0x3c61: 0x000a, 0x3c62: 0x000a, 0x3c63: 0x000a, 0x3c64: 0x000a, 0x3c65: 0x000a, 0x3c66: 0x000a, 0x3c67: 0x000a, 0x3c68: 0x000a, 0x3c70: 0x000a, 0x3c71: 0x000a, 0x3c72: 0x000a, 0x3c73: 0x000a, 0x3c74: 0x000a, 0x3c75: 0x000a, 0x3c76: 0x000a, // Block 0xf2, offset 0x3c80 0x3c80: 0x000a, 0x3c81: 0x000a, 0x3c82: 0x000a, 0x3c90: 0x000a, 0x3c91: 0x000a, 0x3c92: 0x000a, 0x3c93: 0x000a, 0x3c94: 0x000a, 0x3c95: 0x000a, 0x3c96: 0x000a, // Block 0xf3, offset 0x3cc0 0x3cc0: 0x000a, 0x3cc1: 0x000a, 0x3cc2: 0x000a, 0x3cc3: 0x000a, 0x3cc4: 0x000a, 0x3cc5: 0x000a, 0x3cc6: 0x000a, 0x3cc7: 0x000a, 0x3cc8: 0x000a, 0x3cc9: 0x000a, 0x3cca: 0x000a, 0x3ccb: 0x000a, 0x3ccc: 0x000a, 0x3ccd: 0x000a, 0x3cce: 0x000a, 0x3ccf: 0x000a, 0x3cd0: 0x000a, 0x3cd1: 0x000a, 0x3cd2: 0x000a, 0x3cd4: 0x000a, 0x3cd5: 0x000a, 0x3cd6: 0x000a, 0x3cd7: 0x000a, 0x3cd8: 0x000a, 0x3cd9: 0x000a, 0x3cda: 0x000a, 0x3cdb: 0x000a, 0x3cdc: 0x000a, 0x3cdd: 0x000a, 0x3cde: 0x000a, 0x3cdf: 0x000a, 0x3ce0: 0x000a, 0x3ce1: 0x000a, 0x3ce2: 0x000a, 0x3ce3: 0x000a, 0x3ce4: 0x000a, 0x3ce5: 0x000a, 0x3ce6: 0x000a, 0x3ce7: 0x000a, 0x3ce8: 0x000a, 0x3ce9: 0x000a, 0x3cea: 0x000a, 0x3ceb: 0x000a, 0x3cec: 0x000a, 0x3ced: 0x000a, 0x3cee: 0x000a, 0x3cef: 0x000a, 0x3cf0: 0x000a, 0x3cf1: 0x000a, 0x3cf2: 0x000a, 0x3cf3: 0x000a, 0x3cf4: 0x000a, 0x3cf5: 0x000a, 0x3cf6: 0x000a, 0x3cf7: 0x000a, 0x3cf8: 0x000a, 0x3cf9: 0x000a, 0x3cfa: 0x000a, 0x3cfb: 0x000a, 0x3cfc: 0x000a, 0x3cfd: 0x000a, 0x3cfe: 0x000a, 0x3cff: 0x000a, // Block 0xf4, offset 0x3d00 0x3d00: 0x000a, 0x3d01: 0x000a, 0x3d02: 0x000a, 0x3d03: 0x000a, 0x3d04: 0x000a, 0x3d05: 0x000a, 0x3d06: 0x000a, 0x3d07: 0x000a, 0x3d08: 0x000a, 0x3d09: 0x000a, 0x3d0a: 0x000a, 0x3d30: 0x0002, 0x3d31: 0x0002, 0x3d32: 0x0002, 0x3d33: 0x0002, 0x3d34: 0x0002, 0x3d35: 0x0002, 0x3d36: 0x0002, 0x3d37: 0x0002, 0x3d38: 0x0002, 0x3d39: 0x0002, // Block 0xf5, offset 0x3d40 0x3d7e: 0x000b, 0x3d7f: 0x000b, // Block 0xf6, offset 0x3d80 0x3d80: 0x000b, 0x3d81: 0x000b, 0x3d82: 0x000b, 0x3d83: 0x000b, 0x3d84: 0x000b, 0x3d85: 0x000b, 0x3d86: 0x000b, 0x3d87: 0x000b, 0x3d88: 0x000b, 0x3d89: 0x000b, 0x3d8a: 0x000b, 0x3d8b: 0x000b, 0x3d8c: 0x000b, 0x3d8d: 0x000b, 0x3d8e: 0x000b, 0x3d8f: 0x000b, 0x3d90: 0x000b, 0x3d91: 0x000b, 0x3d92: 0x000b, 0x3d93: 0x000b, 0x3d94: 0x000b, 0x3d95: 0x000b, 0x3d96: 0x000b, 0x3d97: 0x000b, 0x3d98: 0x000b, 0x3d99: 0x000b, 0x3d9a: 0x000b, 0x3d9b: 0x000b, 0x3d9c: 0x000b, 0x3d9d: 0x000b, 0x3d9e: 0x000b, 0x3d9f: 0x000b, 0x3da0: 0x000b, 0x3da1: 0x000b, 0x3da2: 0x000b, 0x3da3: 0x000b, 0x3da4: 0x000b, 0x3da5: 0x000b, 0x3da6: 0x000b, 0x3da7: 0x000b, 0x3da8: 0x000b, 0x3da9: 0x000b, 0x3daa: 0x000b, 0x3dab: 0x000b, 0x3dac: 0x000b, 0x3dad: 0x000b, 0x3dae: 0x000b, 0x3daf: 0x000b, 0x3db0: 0x000b, 0x3db1: 0x000b, 0x3db2: 0x000b, 0x3db3: 0x000b, 0x3db4: 0x000b, 0x3db5: 0x000b, 0x3db6: 0x000b, 0x3db7: 0x000b, 0x3db8: 0x000b, 0x3db9: 0x000b, 0x3dba: 0x000b, 0x3dbb: 0x000b, 0x3dbc: 0x000b, 0x3dbd: 0x000b, 0x3dbe: 0x000b, 0x3dbf: 0x000b, // Block 0xf7, offset 0x3dc0 0x3dc0: 0x000c, 0x3dc1: 0x000c, 0x3dc2: 0x000c, 0x3dc3: 0x000c, 0x3dc4: 0x000c, 0x3dc5: 0x000c, 0x3dc6: 0x000c, 0x3dc7: 0x000c, 0x3dc8: 0x000c, 0x3dc9: 0x000c, 0x3dca: 0x000c, 0x3dcb: 0x000c, 0x3dcc: 0x000c, 0x3dcd: 0x000c, 0x3dce: 0x000c, 0x3dcf: 0x000c, 0x3dd0: 0x000c, 0x3dd1: 0x000c, 0x3dd2: 0x000c, 0x3dd3: 0x000c, 0x3dd4: 0x000c, 0x3dd5: 0x000c, 0x3dd6: 0x000c, 0x3dd7: 0x000c, 0x3dd8: 0x000c, 0x3dd9: 0x000c, 0x3dda: 0x000c, 0x3ddb: 0x000c, 0x3ddc: 0x000c, 0x3ddd: 0x000c, 0x3dde: 0x000c, 0x3ddf: 0x000c, 0x3de0: 0x000c, 0x3de1: 0x000c, 0x3de2: 0x000c, 0x3de3: 0x000c, 0x3de4: 0x000c, 0x3de5: 0x000c, 0x3de6: 0x000c, 0x3de7: 0x000c, 0x3de8: 0x000c, 0x3de9: 0x000c, 0x3dea: 0x000c, 0x3deb: 0x000c, 0x3dec: 0x000c, 0x3ded: 0x000c, 0x3dee: 0x000c, 0x3def: 0x000c, 0x3df0: 0x000b, 0x3df1: 0x000b, 0x3df2: 0x000b, 0x3df3: 0x000b, 0x3df4: 0x000b, 0x3df5: 0x000b, 0x3df6: 0x000b, 0x3df7: 0x000b, 0x3df8: 0x000b, 0x3df9: 0x000b, 0x3dfa: 0x000b, 0x3dfb: 0x000b, 0x3dfc: 0x000b, 0x3dfd: 0x000b, 0x3dfe: 0x000b, 0x3dff: 0x000b, } // bidiIndex: 24 blocks, 1536 entries, 1536 bytes // Block 0 is the zero block. var bidiIndex = [1536]uint8{ // Block 0x0, offset 0x0 // Block 0x1, offset 0x40 // Block 0x2, offset 0x80 // Block 0x3, offset 0xc0 0xc2: 0x01, 0xc3: 0x02, 0xca: 0x03, 0xcb: 0x04, 0xcc: 0x05, 0xcd: 0x06, 0xce: 0x07, 0xcf: 0x08, 0xd2: 0x09, 0xd6: 0x0a, 0xd7: 0x0b, 0xd8: 0x0c, 0xd9: 0x0d, 0xda: 0x0e, 0xdb: 0x0f, 0xdc: 0x10, 0xdd: 0x11, 0xde: 0x12, 0xdf: 0x13, 0xe0: 0x02, 0xe1: 0x03, 0xe2: 0x04, 0xe3: 0x05, 0xe4: 0x06, 0xea: 0x07, 0xef: 0x08, 0xf0: 0x11, 0xf1: 0x12, 0xf2: 0x12, 0xf3: 0x14, 0xf4: 0x15, // Block 0x4, offset 0x100 0x120: 0x14, 0x121: 0x15, 0x122: 0x16, 0x123: 0x17, 0x124: 0x18, 0x125: 0x19, 0x126: 0x1a, 0x127: 0x1b, 0x128: 0x1c, 0x129: 0x1d, 0x12a: 0x1c, 0x12b: 0x1e, 0x12c: 0x1f, 0x12d: 0x20, 0x12e: 0x21, 0x12f: 0x22, 0x130: 0x23, 0x131: 0x24, 0x132: 0x1a, 0x133: 0x25, 0x134: 0x26, 0x135: 0x27, 0x136: 0x28, 0x137: 0x29, 0x138: 0x2a, 0x139: 0x2b, 0x13a: 0x2c, 0x13b: 0x2d, 0x13c: 0x2e, 0x13d: 0x2f, 0x13e: 0x30, 0x13f: 0x31, // Block 0x5, offset 0x140 0x140: 0x32, 0x141: 0x33, 0x142: 0x34, 0x14d: 0x35, 0x14e: 0x36, 0x150: 0x37, 0x15a: 0x38, 0x15c: 0x39, 0x15d: 0x3a, 0x15e: 0x3b, 0x15f: 0x3c, 0x160: 0x3d, 0x162: 0x3e, 0x164: 0x3f, 0x165: 0x40, 0x167: 0x41, 0x168: 0x42, 0x169: 0x43, 0x16a: 0x44, 0x16b: 0x45, 0x16c: 0x46, 0x16d: 0x47, 0x16e: 0x48, 0x16f: 0x49, 0x170: 0x4a, 0x173: 0x4b, 0x177: 0x4c, 0x17e: 0x4d, 0x17f: 0x4e, // Block 0x6, offset 0x180 0x180: 0x4f, 0x181: 0x50, 0x182: 0x51, 0x183: 0x52, 0x184: 0x53, 0x185: 0x54, 0x186: 0x55, 0x187: 0x56, 0x188: 0x57, 0x189: 0x56, 0x18a: 0x56, 0x18b: 0x56, 0x18c: 0x58, 0x18d: 0x59, 0x18e: 0x5a, 0x18f: 0x56, 0x190: 0x5b, 0x191: 0x5c, 0x192: 0x5d, 0x193: 0x5e, 0x194: 0x56, 0x195: 0x56, 0x196: 0x56, 0x197: 0x56, 0x198: 0x56, 0x199: 0x56, 0x19a: 0x5f, 0x19b: 0x56, 0x19c: 0x56, 0x19d: 0x60, 0x19e: 0x56, 0x19f: 0x61, 0x1a4: 0x56, 0x1a5: 0x56, 0x1a6: 0x62, 0x1a7: 0x63, 0x1a8: 0x56, 0x1a9: 0x56, 0x1aa: 0x56, 0x1ab: 0x56, 0x1ac: 0x56, 0x1ad: 0x64, 0x1ae: 0x65, 0x1af: 0x56, 0x1b3: 0x66, 0x1b5: 0x67, 0x1b7: 0x68, 0x1b8: 0x69, 0x1b9: 0x6a, 0x1ba: 0x6b, 0x1bb: 0x6c, 0x1bc: 0x56, 0x1bd: 0x56, 0x1be: 0x56, 0x1bf: 0x6d, // Block 0x7, offset 0x1c0 0x1c0: 0x6e, 0x1c2: 0x6f, 0x1c3: 0x70, 0x1c7: 0x71, 0x1c8: 0x72, 0x1c9: 0x73, 0x1ca: 0x74, 0x1cb: 0x75, 0x1cd: 0x76, 0x1cf: 0x77, // Block 0x8, offset 0x200 0x237: 0x56, // Block 0x9, offset 0x240 0x252: 0x78, 0x253: 0x79, 0x258: 0x7a, 0x259: 0x7b, 0x25a: 0x7c, 0x25b: 0x7d, 0x25c: 0x7e, 0x25e: 0x7f, 0x260: 0x80, 0x261: 0x81, 0x263: 0x82, 0x264: 0x83, 0x265: 0x84, 0x266: 0x85, 0x267: 0x86, 0x268: 0x87, 0x269: 0x88, 0x26a: 0x89, 0x26b: 0x8a, 0x26d: 0x8b, 0x26f: 0x8c, // Block 0xa, offset 0x280 0x2ac: 0x8d, 0x2ad: 0x8e, 0x2ae: 0x0e, 0x2af: 0x0e, 0x2b0: 0x0e, 0x2b1: 0x0e, 0x2b2: 0x0e, 0x2b3: 0x0e, 0x2b4: 0x8f, 0x2b5: 0x0e, 0x2b6: 0x0e, 0x2b7: 0x90, 0x2b8: 0x91, 0x2b9: 0x92, 0x2ba: 0x0e, 0x2bb: 0x93, 0x2bc: 0x94, 0x2bd: 0x95, 0x2bf: 0x96, // Block 0xb, offset 0x2c0 0x2c4: 0x97, 0x2c5: 0x56, 0x2c6: 0x98, 0x2c7: 0x99, 0x2cb: 0x9a, 0x2cd: 0x9b, 0x2e0: 0x9c, 0x2e1: 0x9c, 0x2e2: 0x9c, 0x2e3: 0x9c, 0x2e4: 0x9d, 0x2e5: 0x9c, 0x2e6: 0x9c, 0x2e7: 0x9c, 0x2e8: 0x9e, 0x2e9: 0x9c, 0x2ea: 0x9c, 0x2eb: 0x9f, 0x2ec: 0xa0, 0x2ed: 0x9c, 0x2ee: 0x9c, 0x2ef: 0x9c, 0x2f0: 0x9c, 0x2f1: 0x9c, 0x2f2: 0x9c, 0x2f3: 0x9c, 0x2f4: 0xa1, 0x2f5: 0x9c, 0x2f6: 0x9c, 0x2f7: 0x9c, 0x2f8: 0x9c, 0x2f9: 0xa2, 0x2fa: 0xa3, 0x2fb: 0x9c, 0x2fc: 0xa4, 0x2fd: 0xa5, 0x2fe: 0x9c, 0x2ff: 0x9c, // Block 0xc, offset 0x300 0x300: 0xa6, 0x301: 0xa7, 0x302: 0xa8, 0x304: 0xa9, 0x305: 0xaa, 0x306: 0xab, 0x307: 0xac, 0x308: 0xad, 0x30b: 0xae, 0x30c: 0x26, 0x30d: 0xaf, 0x310: 0xb0, 0x311: 0xb1, 0x312: 0xb2, 0x313: 0xb3, 0x316: 0xb4, 0x317: 0xb5, 0x318: 0xb6, 0x319: 0xb7, 0x31a: 0xb8, 0x31c: 0xb9, 0x320: 0xba, 0x324: 0xbb, 0x325: 0xbc, 0x327: 0xbd, 0x328: 0xbe, 0x329: 0xbf, 0x32a: 0xc0, 0x330: 0xc1, 0x332: 0xc2, 0x334: 0xc3, 0x335: 0xc4, 0x336: 0xc5, 0x33b: 0xc6, 0x33f: 0xc7, // Block 0xd, offset 0x340 0x36b: 0xc8, 0x36c: 0xc9, 0x37d: 0xca, 0x37e: 0xcb, 0x37f: 0xcc, // Block 0xe, offset 0x380 0x3b2: 0xcd, // Block 0xf, offset 0x3c0 0x3c5: 0xce, 0x3c6: 0xcf, 0x3c8: 0x56, 0x3c9: 0xd0, 0x3cc: 0x56, 0x3cd: 0xd1, 0x3db: 0xd2, 0x3dc: 0xd3, 0x3dd: 0xd4, 0x3de: 0xd5, 0x3df: 0xd6, 0x3e8: 0xd7, 0x3e9: 0xd8, 0x3ea: 0xd9, // Block 0x10, offset 0x400 0x400: 0xda, 0x404: 0xc9, 0x40b: 0xdb, 0x420: 0x9c, 0x421: 0x9c, 0x422: 0x9c, 0x423: 0xdc, 0x424: 0x9c, 0x425: 0xdd, 0x426: 0x9c, 0x427: 0x9c, 0x428: 0x9c, 0x429: 0x9c, 0x42a: 0x9c, 0x42b: 0x9c, 0x42c: 0x9c, 0x42d: 0x9c, 0x42e: 0x9c, 0x42f: 0x9c, 0x430: 0x9c, 0x431: 0xa4, 0x432: 0x0e, 0x433: 0x9c, 0x434: 0x0e, 0x435: 0xde, 0x436: 0x9c, 0x437: 0x9c, 0x438: 0x0e, 0x439: 0x0e, 0x43a: 0x0e, 0x43b: 0xdf, 0x43c: 0x9c, 0x43d: 0x9c, 0x43e: 0x9c, 0x43f: 0x9c, // Block 0x11, offset 0x440 0x440: 0xe0, 0x441: 0x56, 0x442: 0xe1, 0x443: 0xe2, 0x444: 0xe3, 0x445: 0xe4, 0x446: 0xe5, 0x449: 0xe6, 0x44c: 0x56, 0x44d: 0x56, 0x44e: 0x56, 0x44f: 0x56, 0x450: 0x56, 0x451: 0x56, 0x452: 0x56, 0x453: 0x56, 0x454: 0x56, 0x455: 0x56, 0x456: 0x56, 0x457: 0x56, 0x458: 0x56, 0x459: 0x56, 0x45a: 0x56, 0x45b: 0xe7, 0x45c: 0x56, 0x45d: 0x6c, 0x45e: 0x56, 0x45f: 0xe8, 0x460: 0xe9, 0x461: 0xea, 0x462: 0xeb, 0x464: 0x56, 0x465: 0xec, 0x466: 0x56, 0x467: 0xed, 0x468: 0x56, 0x469: 0xee, 0x46a: 0xef, 0x46b: 0xf0, 0x46c: 0x56, 0x46d: 0x56, 0x46e: 0xf1, 0x46f: 0xf2, 0x47f: 0xf3, // Block 0x12, offset 0x480 0x4bf: 0xf3, // Block 0x13, offset 0x4c0 0x4d0: 0x09, 0x4d1: 0x0a, 0x4d6: 0x0b, 0x4db: 0x0c, 0x4dd: 0x0d, 0x4de: 0x0e, 0x4df: 0x0f, 0x4ef: 0x10, 0x4ff: 0x10, // Block 0x14, offset 0x500 0x50f: 0x10, 0x51f: 0x10, 0x52f: 0x10, 0x53f: 0x10, // Block 0x15, offset 0x540 0x540: 0xf4, 0x541: 0xf4, 0x542: 0xf4, 0x543: 0xf4, 0x544: 0x05, 0x545: 0x05, 0x546: 0x05, 0x547: 0xf5, 0x548: 0xf4, 0x549: 0xf4, 0x54a: 0xf4, 0x54b: 0xf4, 0x54c: 0xf4, 0x54d: 0xf4, 0x54e: 0xf4, 0x54f: 0xf4, 0x550: 0xf4, 0x551: 0xf4, 0x552: 0xf4, 0x553: 0xf4, 0x554: 0xf4, 0x555: 0xf4, 0x556: 0xf4, 0x557: 0xf4, 0x558: 0xf4, 0x559: 0xf4, 0x55a: 0xf4, 0x55b: 0xf4, 0x55c: 0xf4, 0x55d: 0xf4, 0x55e: 0xf4, 0x55f: 0xf4, 0x560: 0xf4, 0x561: 0xf4, 0x562: 0xf4, 0x563: 0xf4, 0x564: 0xf4, 0x565: 0xf4, 0x566: 0xf4, 0x567: 0xf4, 0x568: 0xf4, 0x569: 0xf4, 0x56a: 0xf4, 0x56b: 0xf4, 0x56c: 0xf4, 0x56d: 0xf4, 0x56e: 0xf4, 0x56f: 0xf4, 0x570: 0xf4, 0x571: 0xf4, 0x572: 0xf4, 0x573: 0xf4, 0x574: 0xf4, 0x575: 0xf4, 0x576: 0xf4, 0x577: 0xf4, 0x578: 0xf4, 0x579: 0xf4, 0x57a: 0xf4, 0x57b: 0xf4, 0x57c: 0xf4, 0x57d: 0xf4, 0x57e: 0xf4, 0x57f: 0xf4, // Block 0x16, offset 0x580 0x58f: 0x10, 0x59f: 0x10, 0x5a0: 0x13, 0x5af: 0x10, 0x5bf: 0x10, // Block 0x17, offset 0x5c0 0x5cf: 0x10, } // Total table size 17464 bytes (17KiB); checksum: F50EF68C
go/src/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go/0
{ "file_path": "go/src/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go", "repo_id": "go", "token_count": 79323 }
454
// run //go:build !wasm // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // wasm is excluded because the compiler chatter about register abi pragma ends up // on stdout, and causes the expected output to not match. package main import "fmt" type Z struct { } type NZ struct { x, y int } //go:noinline func f(x, y int) (Z, NZ, Z) { var z Z return z, NZ{x, y}, z } //go:noinline func g() (Z, NZ, Z) { a, b, c := f(3, 4) return c, b, a } func main() { _, b, _ := g() fmt.Println(b.x + b.y) }
go/test/abi/f_ret_z_not.go/0
{ "file_path": "go/test/abi/f_ret_z_not.go", "repo_id": "go", "token_count": 240 }
455
// run // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type S int type T struct { a int S } //go:noinline func (s *S) M(a int, x [2]int, b float64, y [2]float64) (S, int, [2]int, float64, [2]float64) { return *s, a, x, b, y } var s S = 42 var t = &T{S: s} var fn = (*T).M // force a method wrapper func main() { a := 123 x := [2]int{456, 789} b := 1.2 y := [2]float64{3.4, 5.6} s1, a1, x1, b1, y1 := fn(t, a, x, b, y) if a1 != a || x1 != x || b1 != b || y1 != y || s1 != s { panic("FAIL") } }
go/test/abi/method_wrapper.go/0
{ "file_path": "go/test/abi/method_wrapper.go", "repo_id": "go", "token_count": 291 }
456
// run //go:build !wasm // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // wasm is excluded because the compiler chatter about register abi pragma ends up // on stdout, and causes the expected output to not match. package main import "fmt" type i4 struct { a, b, c, d int } //go:noinline func spills(px *i4) { } //go:registerparams //go:noinline func F(x i4) i4 { ab := x.a + x.b bc := x.b + x.c cd := x.c + x.d ad := x.a + x.d ba := x.a - x.b cb := x.b - x.c dc := x.c - x.d da := x.a - x.d i := i4{ab*bc + da, cd*ad + cb, ba*cb + ad, dc*da + bc} spills(&i) return i } func main() { x := i4{1, 2, 3, 4} y := x z := F(x) if z != (i4{12, 34, 6, 8}) { fmt.Printf("y=%v, z=%v\n", y, z) } }
go/test/abi/spills3.go/0
{ "file_path": "go/test/abi/spills3.go", "repo_id": "go", "token_count": 375 }
457
// run // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that dynamic interface checks treat byte=uint8 // and rune=int or rune=int32. package main func main() { var x interface{} x = byte(1) switch x.(type) { case uint8: // ok default: panic("byte != uint8") } x = uint8(2) switch x.(type) { case byte: // ok default: panic("uint8 != byte") } rune32 := false x = rune(3) switch x.(type) { case int: // ok case int32: // must be new code rune32 = true default: panic("rune != int and rune != int32") } if rune32 { x = int32(4) } else { x = int(5) } switch x.(type) { case rune: // ok default: panic("int (or int32) != rune") } }
go/test/alias1.go/0
{ "file_path": "go/test/alias1.go", "repo_id": "go", "token_count": 325 }
458
// errorcheck // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify assignment rules are enforced by the compiler. // Does not compile. package main type ( A [10]int B []int C chan int F func() int I interface { m() int } M map[int]int P *int S struct { X int } A1 [10]int B1 []int C1 chan int F1 func() int I1 interface { m() int } M1 map[int]int P1 *int S1 struct { X int } ) var ( a0 [10]int b0 []int c0 chan int f0 func() int i0 interface { m() int } m0 map[int]int p0 *int s0 struct { X int } a A b B c C f F i I m M p P s S a1 A1 b1 B1 c1 C1 f1 F1 i1 I1 m1 M1 p1 P1 s1 S1 pa0 *[10]int pb0 *[]int pc0 *chan int pf0 *func() int pi0 *interface { m() int } pm0 *map[int]int pp0 **int ps0 *struct { X int } pa *A pb *B pc *C pf *F pi *I pm *M pp *P ps *S pa1 *A1 pb1 *B1 pc1 *C1 pf1 *F1 pi1 *I1 pm1 *M1 pp1 *P1 ps1 *S1 ) func main() { a0 = a a0 = a1 a = a0 a = a1 // ERROR "cannot use" a1 = a0 a1 = a // ERROR "cannot use" b0 = b b0 = b1 b = b0 b = b1 // ERROR "cannot use" b1 = b0 b1 = b // ERROR "cannot use" c0 = c c0 = c1 c = c0 c = c1 // ERROR "cannot use" c1 = c0 c1 = c // ERROR "cannot use" f0 = f f0 = f1 f = f0 f = f1 // ERROR "cannot use" f1 = f0 f1 = f // ERROR "cannot use" i0 = i i0 = i1 i = i0 i = i1 i1 = i0 i1 = i m0 = m m0 = m1 m = m0 m = m1 // ERROR "cannot use" m1 = m0 m1 = m // ERROR "cannot use" p0 = p p0 = p1 p = p0 p = p1 // ERROR "cannot use" p1 = p0 p1 = p // ERROR "cannot use" s0 = s s0 = s1 s = s0 s = s1 // ERROR "cannot use" s1 = s0 s1 = s // ERROR "cannot use" pa0 = pa // ERROR "cannot use|incompatible" pa0 = pa1 // ERROR "cannot use|incompatible" pa = pa0 // ERROR "cannot use|incompatible" pa = pa1 // ERROR "cannot use|incompatible" pa1 = pa0 // ERROR "cannot use|incompatible" pa1 = pa // ERROR "cannot use|incompatible" pb0 = pb // ERROR "cannot use|incompatible" pb0 = pb1 // ERROR "cannot use|incompatible" pb = pb0 // ERROR "cannot use|incompatible" pb = pb1 // ERROR "cannot use|incompatible" pb1 = pb0 // ERROR "cannot use|incompatible" pb1 = pb // ERROR "cannot use|incompatible" pc0 = pc // ERROR "cannot use|incompatible" pc0 = pc1 // ERROR "cannot use|incompatible" pc = pc0 // ERROR "cannot use|incompatible" pc = pc1 // ERROR "cannot use|incompatible" pc1 = pc0 // ERROR "cannot use|incompatible" pc1 = pc // ERROR "cannot use|incompatible" pf0 = pf // ERROR "cannot use|incompatible" pf0 = pf1 // ERROR "cannot use|incompatible" pf = pf0 // ERROR "cannot use|incompatible" pf = pf1 // ERROR "cannot use|incompatible" pf1 = pf0 // ERROR "cannot use|incompatible" pf1 = pf // ERROR "cannot use|incompatible" pi0 = pi // ERROR "cannot use|incompatible" pi0 = pi1 // ERROR "cannot use|incompatible" pi = pi0 // ERROR "cannot use|incompatible" pi = pi1 // ERROR "cannot use|incompatible" pi1 = pi0 // ERROR "cannot use|incompatible" pi1 = pi // ERROR "cannot use|incompatible" pm0 = pm // ERROR "cannot use|incompatible" pm0 = pm1 // ERROR "cannot use|incompatible" pm = pm0 // ERROR "cannot use|incompatible" pm = pm1 // ERROR "cannot use|incompatible" pm1 = pm0 // ERROR "cannot use|incompatible" pm1 = pm // ERROR "cannot use|incompatible" pp0 = pp // ERROR "cannot use|incompatible" pp0 = pp1 // ERROR "cannot use|incompatible" pp = pp0 // ERROR "cannot use|incompatible" pp = pp1 // ERROR "cannot use|incompatible" pp1 = pp0 // ERROR "cannot use|incompatible" pp1 = pp // ERROR "cannot use|incompatible" ps0 = ps // ERROR "cannot use|incompatible" ps0 = ps1 // ERROR "cannot use|incompatible" ps = ps0 // ERROR "cannot use|incompatible" ps = ps1 // ERROR "cannot use|incompatible" ps1 = ps0 // ERROR "cannot use|incompatible" ps1 = ps // ERROR "cannot use|incompatible" a0 = [10]int(a) a0 = [10]int(a1) a = A(a0) a = A(a1) a1 = A1(a0) a1 = A1(a) b0 = []int(b) b0 = []int(b1) b = B(b0) b = B(b1) b1 = B1(b0) b1 = B1(b) c0 = chan int(c) c0 = chan int(c1) c = C(c0) c = C(c1) c1 = C1(c0) c1 = C1(c) f0 = func() int(f) f0 = func() int(f1) f = F(f0) f = F(f1) f1 = F1(f0) f1 = F1(f) i0 = interface { m() int }(i) i0 = interface { m() int }(i1) i = I(i0) i = I(i1) i1 = I1(i0) i1 = I1(i) m0 = map[int]int(m) m0 = map[int]int(m1) m = M(m0) m = M(m1) m1 = M1(m0) m1 = M1(m) p0 = (*int)(p) p0 = (*int)(p1) p = P(p0) p = P(p1) p1 = P1(p0) p1 = P1(p) s0 = struct { X int }(s) s0 = struct { X int }(s1) s = S(s0) s = S(s1) s1 = S1(s0) s1 = S1(s) pa0 = (*[10]int)(pa) pa0 = (*[10]int)(pa1) pa = (*A)(pa0) pa = (*A)(pa1) pa1 = (*A1)(pa0) pa1 = (*A1)(pa) pb0 = (*[]int)(pb) pb0 = (*[]int)(pb1) pb = (*B)(pb0) pb = (*B)(pb1) pb1 = (*B1)(pb0) pb1 = (*B1)(pb) pc0 = (*chan int)(pc) pc0 = (*chan int)(pc1) pc = (*C)(pc0) pc = (*C)(pc1) pc1 = (*C1)(pc0) pc1 = (*C1)(pc) pf0 = (*func() int)(pf) pf0 = (*func() int)(pf1) pf = (*F)(pf0) pf = (*F)(pf1) pf1 = (*F1)(pf0) pf1 = (*F1)(pf) pi0 = (*interface { m() int })(pi) pi0 = (*interface { m() int })(pi1) pi = (*I)(pi0) pi = (*I)(pi1) pi1 = (*I1)(pi0) pi1 = (*I1)(pi) pm0 = (*map[int]int)(pm) pm0 = (*map[int]int)(pm1) pm = (*M)(pm0) pm = (*M)(pm1) pm1 = (*M1)(pm0) pm1 = (*M1)(pm) pp0 = (**int)(pp) pp0 = (**int)(pp1) pp = (*P)(pp0) pp = (*P)(pp1) pp1 = (*P1)(pp0) pp1 = (*P1)(pp) ps0 = (*struct { X int })(ps) ps0 = (*struct { X int })(ps1) ps = (*S)(ps0) ps = (*S)(ps1) ps1 = (*S1)(ps0) ps1 = (*S1)(ps) }
go/test/assign1.go/0
{ "file_path": "go/test/assign1.go", "repo_id": "go", "token_count": 2904 }
459
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test concurrency primitives: power series. // Like powser1.go but uses channels of interfaces. // Has not been cleaned up as much as powser1.go, to keep // it distinct and therefore a different test. // Power series package // A power series is a channel, along which flow rational // coefficients. A denominator of zero signifies the end. // Original code in Newsqueak by Doug McIlroy. // See Squinting at Power Series by Doug McIlroy, // https://swtch.com/~rsc/thread/squint.pdf package main import "os" type rat struct { num, den int64 // numerator, denominator } type item interface { pr() eq(c item) bool } func (u *rat) pr() { if u.den == 1 { print(u.num) } else { print(u.num, "/", u.den) } print(" ") } func (u *rat) eq(c item) bool { c1 := c.(*rat) return u.num == c1.num && u.den == c1.den } type dch struct { req chan int dat chan item nam int } type dch2 [2]*dch var chnames string var chnameserial int var seqno int func mkdch() *dch { c := chnameserial % len(chnames) chnameserial++ d := new(dch) d.req = make(chan int) d.dat = make(chan item) d.nam = c return d } func mkdch2() *dch2 { d2 := new(dch2) d2[0] = mkdch() d2[1] = mkdch() return d2 } // split reads a single demand channel and replicates its // output onto two, which may be read at different rates. // A process is created at first demand for an item and dies // after the item has been sent to both outputs. // When multiple generations of split exist, the newest // will service requests on one channel, which is // always renamed to be out[0]; the oldest will service // requests on the other channel, out[1]. All generations but the // newest hold queued data that has already been sent to // out[0]. When data has finally been sent to out[1], // a signal on the release-wait channel tells the next newer // generation to begin servicing out[1]. func dosplit(in *dch, out *dch2, wait chan int) { both := false // do not service both channels select { case <-out[0].req: case <-wait: both = true select { case <-out[0].req: case <-out[1].req: out[0], out[1] = out[1], out[0] } } seqno++ in.req <- seqno release := make(chan int) go dosplit(in, out, release) dat := <-in.dat out[0].dat <- dat if !both { <-wait } <-out[1].req out[1].dat <- dat release <- 0 } func split(in *dch, out *dch2) { release := make(chan int) go dosplit(in, out, release) release <- 0 } func put(dat item, out *dch) { <-out.req out.dat <- dat } func get(in *dch) *rat { seqno++ in.req <- seqno return (<-in.dat).(*rat) } // Get one item from each of n demand channels func getn(in []*dch) []item { n := len(in) if n != 2 { panic("bad n in getn") } req := make([]chan int, 2) dat := make([]chan item, 2) out := make([]item, 2) var i int var it item for i = 0; i < n; i++ { req[i] = in[i].req dat[i] = nil } for n = 2 * n; n > 0; n-- { seqno++ select { case req[0] <- seqno: dat[0] = in[0].dat req[0] = nil case req[1] <- seqno: dat[1] = in[1].dat req[1] = nil case it = <-dat[0]: out[0] = it dat[0] = nil case it = <-dat[1]: out[1] = it dat[1] = nil } } return out } // Get one item from each of 2 demand channels func get2(in0 *dch, in1 *dch) []item { return getn([]*dch{in0, in1}) } func copy(in *dch, out *dch) { for { <-out.req out.dat <- get(in) } } func repeat(dat item, out *dch) { for { put(dat, out) } } type PS *dch // power series type PS2 *[2]PS // pair of power series var Ones PS var Twos PS func mkPS() *dch { return mkdch() } func mkPS2() *dch2 { return mkdch2() } // Conventions // Upper-case for power series. // Lower-case for rationals. // Input variables: U,V,... // Output variables: ...,Y,Z // Integer gcd; needed for rational arithmetic func gcd(u, v int64) int64 { if u < 0 { return gcd(-u, v) } if u == 0 { return v } return gcd(v%u, u) } // Make a rational from two ints and from one int func i2tor(u, v int64) *rat { g := gcd(u, v) r := new(rat) if v > 0 { r.num = u / g r.den = v / g } else { r.num = -u / g r.den = -v / g } return r } func itor(u int64) *rat { return i2tor(u, 1) } var zero *rat var one *rat // End mark and end test var finis *rat func end(u *rat) int64 { if u.den == 0 { return 1 } return 0 } // Operations on rationals func add(u, v *rat) *rat { g := gcd(u.den, v.den) return i2tor(u.num*(v.den/g)+v.num*(u.den/g), u.den*(v.den/g)) } func mul(u, v *rat) *rat { g1 := gcd(u.num, v.den) g2 := gcd(u.den, v.num) r := new(rat) r.num = (u.num / g1) * (v.num / g2) r.den = (u.den / g2) * (v.den / g1) return r } func neg(u *rat) *rat { return i2tor(-u.num, u.den) } func sub(u, v *rat) *rat { return add(u, neg(v)) } func inv(u *rat) *rat { // invert a rat if u.num == 0 { panic("zero divide in inv") } return i2tor(u.den, u.num) } // print eval in floating point of PS at x=c to n terms func Evaln(c *rat, U PS, n int) { xn := float64(1) x := float64(c.num) / float64(c.den) val := float64(0) for i := 0; i < n; i++ { u := get(U) if end(u) != 0 { break } val = val + x*float64(u.num)/float64(u.den) xn = xn * x } print(val, "\n") } // Print n terms of a power series func Printn(U PS, n int) { done := false for ; !done && n > 0; n-- { u := get(U) if end(u) != 0 { done = true } else { u.pr() } } print(("\n")) } func Print(U PS) { Printn(U, 1000000000) } // Evaluate n terms of power series U at x=c func eval(c *rat, U PS, n int) *rat { if n == 0 { return zero } y := get(U) if end(y) != 0 { return zero } return add(y, mul(c, eval(c, U, n-1))) } // Power-series constructors return channels on which power // series flow. They start an encapsulated generator that // puts the terms of the series on the channel. // Make a pair of power series identical to a given power series func Split(U PS) *dch2 { UU := mkdch2() go split(U, UU) return UU } // Add two power series func Add(U, V PS) PS { Z := mkPS() go func(U, V, Z PS) { var uv []item for { <-Z.req uv = get2(U, V) switch end(uv[0].(*rat)) + 2*end(uv[1].(*rat)) { case 0: Z.dat <- add(uv[0].(*rat), uv[1].(*rat)) case 1: Z.dat <- uv[1] copy(V, Z) case 2: Z.dat <- uv[0] copy(U, Z) case 3: Z.dat <- finis } } }(U, V, Z) return Z } // Multiply a power series by a constant func Cmul(c *rat, U PS) PS { Z := mkPS() go func(c *rat, U, Z PS) { done := false for !done { <-Z.req u := get(U) if end(u) != 0 { done = true } else { Z.dat <- mul(c, u) } } Z.dat <- finis }(c, U, Z) return Z } // Subtract func Sub(U, V PS) PS { return Add(U, Cmul(neg(one), V)) } // Multiply a power series by the monomial x^n func Monmul(U PS, n int) PS { Z := mkPS() go func(n int, U PS, Z PS) { for ; n > 0; n-- { put(zero, Z) } copy(U, Z) }(n, U, Z) return Z } // Multiply by x func Xmul(U PS) PS { return Monmul(U, 1) } func Rep(c *rat) PS { Z := mkPS() go repeat(c, Z) return Z } // Monomial c*x^n func Mon(c *rat, n int) PS { Z := mkPS() go func(c *rat, n int, Z PS) { if c.num != 0 { for ; n > 0; n = n - 1 { put(zero, Z) } put(c, Z) } put(finis, Z) }(c, n, Z) return Z } func Shift(c *rat, U PS) PS { Z := mkPS() go func(c *rat, U, Z PS) { put(c, Z) copy(U, Z) }(c, U, Z) return Z } // simple pole at 1: 1/(1-x) = 1 1 1 1 1 ... // Convert array of coefficients, constant term first // to a (finite) power series /* func Poly(a [] *rat) PS{ Z:=mkPS() begin func(a [] *rat, Z PS){ j:=0 done:=0 for j=len(a); !done&&j>0; j=j-1) if(a[j-1].num!=0) done=1 i:=0 for(; i<j; i=i+1) put(a[i],Z) put(finis,Z) }() return Z } */ // Multiply. The algorithm is // let U = u + x*UU // let V = v + x*VV // then UV = u*v + x*(u*VV+v*UU) + x*x*UU*VV func Mul(U, V PS) PS { Z := mkPS() go func(U, V, Z PS) { <-Z.req uv := get2(U, V) if end(uv[0].(*rat)) != 0 || end(uv[1].(*rat)) != 0 { Z.dat <- finis } else { Z.dat <- mul(uv[0].(*rat), uv[1].(*rat)) UU := Split(U) VV := Split(V) W := Add(Cmul(uv[0].(*rat), VV[0]), Cmul(uv[1].(*rat), UU[0])) <-Z.req Z.dat <- get(W) copy(Add(W, Mul(UU[1], VV[1])), Z) } }(U, V, Z) return Z } // Differentiate func Diff(U PS) PS { Z := mkPS() go func(U, Z PS) { <-Z.req u := get(U) if end(u) == 0 { done := false for i := 1; !done; i++ { u = get(U) if end(u) != 0 { done = true } else { Z.dat <- mul(itor(int64(i)), u) <-Z.req } } } Z.dat <- finis }(U, Z) return Z } // Integrate, with const of integration func Integ(c *rat, U PS) PS { Z := mkPS() go func(c *rat, U, Z PS) { put(c, Z) done := false for i := 1; !done; i++ { <-Z.req u := get(U) if end(u) != 0 { done = true } Z.dat <- mul(i2tor(1, int64(i)), u) } Z.dat <- finis }(c, U, Z) return Z } // Binomial theorem (1+x)^c func Binom(c *rat) PS { Z := mkPS() go func(c *rat, Z PS) { n := 1 t := itor(1) for c.num != 0 { put(t, Z) t = mul(mul(t, c), i2tor(1, int64(n))) c = sub(c, one) n++ } put(finis, Z) }(c, Z) return Z } // Reciprocal of a power series // let U = u + x*UU // let Z = z + x*ZZ // (u+x*UU)*(z+x*ZZ) = 1 // z = 1/u // u*ZZ + z*UU +x*UU*ZZ = 0 // ZZ = -UU*(z+x*ZZ)/u func Recip(U PS) PS { Z := mkPS() go func(U, Z PS) { ZZ := mkPS2() <-Z.req z := inv(get(U)) Z.dat <- z split(Mul(Cmul(neg(z), U), Shift(z, ZZ[0])), ZZ) copy(ZZ[1], Z) }(U, Z) return Z } // Exponential of a power series with constant term 0 // (nonzero constant term would make nonrational coefficients) // bug: the constant term is simply ignored // Z = exp(U) // DZ = Z*DU // integrate to get Z func Exp(U PS) PS { ZZ := mkPS2() split(Integ(one, Mul(ZZ[0], Diff(U))), ZZ) return ZZ[1] } // Substitute V for x in U, where the leading term of V is zero // let U = u + x*UU // let V = v + x*VV // then S(U,V) = u + VV*S(V,UU) // bug: a nonzero constant term is ignored func Subst(U, V PS) PS { Z := mkPS() go func(U, V, Z PS) { VV := Split(V) <-Z.req u := get(U) Z.dat <- u if end(u) == 0 { if end(get(VV[0])) != 0 { put(finis, Z) } else { copy(Mul(VV[0], Subst(U, VV[1])), Z) } } }(U, V, Z) return Z } // Monomial Substitution: U(c x^n) // Each Ui is multiplied by c^i and followed by n-1 zeros func MonSubst(U PS, c0 *rat, n int) PS { Z := mkPS() go func(U, Z PS, c0 *rat, n int) { c := one for { <-Z.req u := get(U) Z.dat <- mul(u, c) c = mul(c, c0) if end(u) != 0 { Z.dat <- finis break } for i := 1; i < n; i++ { <-Z.req Z.dat <- zero } } }(U, Z, c0, n) return Z } func Init() { chnameserial = -1 seqno = 0 chnames = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" zero = itor(0) one = itor(1) finis = i2tor(1, 0) Ones = Rep(one) Twos = Rep(itor(2)) } func check(U PS, c *rat, count int, str string) { for i := 0; i < count; i++ { r := get(U) if !r.eq(c) { print("got: ") r.pr() print("should get ") c.pr() print("\n") panic(str) } } } const N = 10 func checka(U PS, a []*rat, str string) { for i := 0; i < N; i++ { check(U, a[i], 1, str) } } func main() { Init() if len(os.Args) > 1 { // print print("Ones: ") Printn(Ones, 10) print("Twos: ") Printn(Twos, 10) print("Add: ") Printn(Add(Ones, Twos), 10) print("Diff: ") Printn(Diff(Ones), 10) print("Integ: ") Printn(Integ(zero, Ones), 10) print("CMul: ") Printn(Cmul(neg(one), Ones), 10) print("Sub: ") Printn(Sub(Ones, Twos), 10) print("Mul: ") Printn(Mul(Ones, Ones), 10) print("Exp: ") Printn(Exp(Ones), 15) print("MonSubst: ") Printn(MonSubst(Ones, neg(one), 2), 10) print("ATan: ") Printn(Integ(zero, MonSubst(Ones, neg(one), 2)), 10) } else { // test check(Ones, one, 5, "Ones") check(Add(Ones, Ones), itor(2), 0, "Add Ones Ones") // 1 1 1 1 1 check(Add(Ones, Twos), itor(3), 0, "Add Ones Twos") // 3 3 3 3 3 a := make([]*rat, N) d := Diff(Ones) for i := 0; i < N; i++ { a[i] = itor(int64(i + 1)) } checka(d, a, "Diff") // 1 2 3 4 5 in := Integ(zero, Ones) a[0] = zero // integration constant for i := 1; i < N; i++ { a[i] = i2tor(1, int64(i)) } checka(in, a, "Integ") // 0 1 1/2 1/3 1/4 1/5 check(Cmul(neg(one), Twos), itor(-2), 10, "CMul") // -1 -1 -1 -1 -1 check(Sub(Ones, Twos), itor(-1), 0, "Sub Ones Twos") // -1 -1 -1 -1 -1 m := Mul(Ones, Ones) for i := 0; i < N; i++ { a[i] = itor(int64(i + 1)) } checka(m, a, "Mul") // 1 2 3 4 5 e := Exp(Ones) a[0] = itor(1) a[1] = itor(1) a[2] = i2tor(3, 2) a[3] = i2tor(13, 6) a[4] = i2tor(73, 24) a[5] = i2tor(167, 40) a[6] = i2tor(4051, 720) a[7] = i2tor(37633, 5040) a[8] = i2tor(43817, 4480) a[9] = i2tor(4596553, 362880) checka(e, a, "Exp") // 1 1 3/2 13/6 73/24 at := Integ(zero, MonSubst(Ones, neg(one), 2)) for c, i := 1, 0; i < N; i++ { if i%2 == 0 { a[i] = zero } else { a[i] = i2tor(int64(c), int64(i)) c *= -1 } } checka(at, a, "ATan") // 0 -1 0 -1/3 0 -1/5 /* t := Revert(Integ(zero, MonSubst(Ones, neg(one), 2))) a[0] = zero a[1] = itor(1) a[2] = zero a[3] = i2tor(1,3) a[4] = zero a[5] = i2tor(2,15) a[6] = zero a[7] = i2tor(17,315) a[8] = zero a[9] = i2tor(62,2835) checka(t, a, "Tan") // 0 1 0 1/3 0 2/15 */ } }
go/test/chan/powser2.go/0
{ "file_path": "go/test/chan/powser2.go", "repo_id": "go", "token_count": 6793 }
460
// errorcheck -d=panic // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify that illegal character literals are detected. // Does not compile. package main const ( // check that surrogate pair elements are invalid // (d800-dbff, dc00-dfff). _ = '\ud7ff' // ok _ = '\ud800' // ERROR "Unicode|unicode" _ = "\U0000D999" // ERROR "Unicode|unicode" _ = '\udc01' // ERROR "Unicode|unicode" _ = '\U0000dddd' // ERROR "Unicode|unicode" _ = '\udfff' // ERROR "Unicode|unicode" _ = '\ue000' // ok _ = '\U0010ffff' // ok _ = '\U00110000' // ERROR "Unicode|unicode" _ = "abc\U0010ffffdef" // ok _ = "abc\U00110000def" // ERROR "Unicode|unicode" _ = '\Uffffffff' // ERROR "Unicode|unicode" )
go/test/char_lit1.go/0
{ "file_path": "go/test/char_lit1.go", "repo_id": "go", "token_count": 323 }
461
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test equality and inequality operations. package main import ( "os" "unsafe" ) var global bool func use(b bool) { global = b } func stringptr(s string) uintptr { return *(*uintptr)(unsafe.Pointer(&s)) } func isfalse(b bool) { if b { // stack will explain where panic("wanted false, got true") } } func istrue(b bool) { if !b { // stack will explain where panic("wanted true, got false") } } type T *int type X int func (X) x() {} func main() { var a []int var b map[string]int var c string = "hello" var d string = "hel" // try to get different pointer d = d + "lo" // go.tools/ssa/interp can't handle unsafe.Pointer. if os.Getenv("GOSSAINTERP") == "" { if stringptr(c) == stringptr(d) { panic("compiler too smart -- got same string") } } var e = make(chan int) var ia interface{} = a var ib interface{} = b var ic interface{} = c var id interface{} = d var ie interface{} = e // these comparisons are okay because // string compare is okay and the others // are comparisons where the types differ. isfalse(ia == ib) isfalse(ia == ic) isfalse(ia == id) isfalse(ib == ic) isfalse(ib == id) istrue(ic == id) istrue(ie == ie) istrue(ia != ib) istrue(ia != ic) istrue(ia != id) istrue(ib != ic) istrue(ib != id) isfalse(ic != id) isfalse(ie != ie) // these are not okay, because there is no comparison on slices or maps. //isfalse(a == ib) //isfalse(a == ic) //isfalse(a == id) //isfalse(b == ic) //isfalse(b == id) istrue(c == id) istrue(e == ie) //isfalse(ia == b) isfalse(ia == c) isfalse(ia == d) isfalse(ib == c) isfalse(ib == d) istrue(ic == d) istrue(ie == e) //istrue(a != ib) //istrue(a != ic) //istrue(a != id) //istrue(b != ic) //istrue(b != id) isfalse(c != id) isfalse(e != ie) //istrue(ia != b) istrue(ia != c) istrue(ia != d) istrue(ib != c) istrue(ib != d) isfalse(ic != d) isfalse(ie != e) // gc used to let this go through as true. var g uint64 = 123 var h int64 = 123 var ig interface{} = g var ih interface{} = h isfalse(ig == ih) istrue(ig != ih) // map of interface should use == on interface values, // not memory. var m = make(map[interface{}]int) m[ic] = 1 m[id] = 2 if m[c] != 2 { println("m[c] = ", m[c]) panic("bad m[c]") } // interface comparisons (issue 7207) { type I1 interface { x() } type I2 interface { x() } a1 := I1(X(0)) b1 := I1(X(1)) a2 := I2(X(0)) b2 := I2(X(1)) a3 := I1(a2) a4 := I2(a1) var e interface{} = X(0) a5 := e.(I1) a6 := e.(I2) isfalse(a1 == b1) isfalse(a1 == b2) isfalse(a2 == b1) isfalse(a2 == b2) istrue(a1 == a2) istrue(a1 == a3) istrue(a1 == a4) istrue(a1 == a5) istrue(a1 == a6) istrue(a2 == a3) istrue(a2 == a4) istrue(a2 == a5) istrue(a2 == a6) istrue(a3 == a4) istrue(a3 == a5) istrue(a3 == a6) istrue(a4 == a5) istrue(a4 == a6) istrue(a5 == a6) } // non-interface comparisons { c := make(chan int) c1 := (<-chan int)(c) c2 := (chan<- int)(c) istrue(c == c1) istrue(c == c2) istrue(c1 == c) istrue(c2 == c) isfalse(c != c1) isfalse(c != c2) isfalse(c1 != c) isfalse(c2 != c) d := make(chan int) isfalse(c == d) isfalse(d == c) isfalse(d == c1) isfalse(d == c2) isfalse(c1 == d) isfalse(c2 == d) istrue(c != d) istrue(d != c) istrue(d != c1) istrue(d != c2) istrue(c1 != d) istrue(c2 != d) } // named types vs not { var x = new(int) var y T var z T = x isfalse(x == y) istrue(x == z) isfalse(y == z) isfalse(y == x) istrue(z == x) isfalse(z == y) istrue(x != y) isfalse(x != z) istrue(y != z) istrue(y != x) isfalse(z != x) istrue(z != y) } // structs { var x = struct { x int y string }{1, "hi"} var y = struct { x int y string }{2, "bye"} var z = struct { x int y string }{1, "hi"} isfalse(x == y) isfalse(y == x) isfalse(y == z) isfalse(z == y) istrue(x == z) istrue(z == x) istrue(x != y) istrue(y != x) istrue(y != z) istrue(z != y) isfalse(x != z) isfalse(z != x) var m = make(map[struct { x int y string }]int) m[x] = 10 m[y] = 20 m[z] = 30 istrue(m[x] == 30) istrue(m[y] == 20) istrue(m[z] == 30) istrue(m[x] != 10) isfalse(m[x] != 30) isfalse(m[y] != 20) isfalse(m[z] != 30) isfalse(m[x] == 10) var m1 = make(map[struct { x int y string }]struct { x int y string }) m1[x] = x m1[y] = y m1[z] = z istrue(m1[x] == z) istrue(m1[y] == y) istrue(m1[z] == z) istrue(m1[x] == x) isfalse(m1[x] != z) isfalse(m1[y] != y) isfalse(m1[z] != z) isfalse(m1[x] != x) var ix, iy, iz interface{} = x, y, z isfalse(ix == iy) isfalse(iy == ix) isfalse(iy == iz) isfalse(iz == iy) istrue(ix == iz) istrue(iz == ix) isfalse(x == iy) isfalse(y == ix) isfalse(y == iz) isfalse(z == iy) istrue(x == iz) istrue(z == ix) isfalse(ix == y) isfalse(iy == x) isfalse(iy == z) isfalse(iz == y) istrue(ix == z) istrue(iz == x) istrue(ix != iy) istrue(iy != ix) istrue(iy != iz) istrue(iz != iy) isfalse(ix != iz) isfalse(iz != ix) istrue(x != iy) istrue(y != ix) istrue(y != iz) istrue(z != iy) isfalse(x != iz) isfalse(z != ix) istrue(ix != y) istrue(iy != x) istrue(iy != z) istrue(iz != y) isfalse(ix != z) isfalse(iz != x) } // structs with _ fields { var x = struct { x int _ string y float64 _ float64 z int }{ x: 1, y: 2, z: 3, } var ix interface{} = x istrue(x == x) istrue(x == ix) istrue(ix == x) istrue(ix == ix) } // arrays { var x = [2]string{"1", "hi"} var y = [2]string{"2", "bye"} var z = [2]string{"1", "hi"} isfalse(x == y) isfalse(y == x) isfalse(y == z) isfalse(z == y) istrue(x == z) istrue(z == x) istrue(x != y) istrue(y != x) istrue(y != z) istrue(z != y) isfalse(x != z) isfalse(z != x) var m = make(map[[2]string]int) m[x] = 10 m[y] = 20 m[z] = 30 istrue(m[x] == 30) istrue(m[y] == 20) istrue(m[z] == 30) isfalse(m[x] != 30) isfalse(m[y] != 20) isfalse(m[z] != 30) var ix, iy, iz interface{} = x, y, z isfalse(ix == iy) isfalse(iy == ix) isfalse(iy == iz) isfalse(iz == iy) istrue(ix == iz) istrue(iz == ix) isfalse(x == iy) isfalse(y == ix) isfalse(y == iz) isfalse(z == iy) istrue(x == iz) istrue(z == ix) isfalse(ix == y) isfalse(iy == x) isfalse(iy == z) isfalse(iz == y) istrue(ix == z) istrue(iz == x) istrue(ix != iy) istrue(iy != ix) istrue(iy != iz) istrue(iz != iy) isfalse(ix != iz) isfalse(iz != ix) istrue(x != iy) istrue(y != ix) istrue(y != iz) istrue(z != iy) isfalse(x != iz) isfalse(z != ix) istrue(ix != y) istrue(iy != x) istrue(iy != z) istrue(iz != y) isfalse(ix != z) isfalse(iz != x) } // named booleans { type mybool bool var b mybool type T struct{ data [20]byte } var x, y T b = x == y istrue(x == y) istrue(bool(b)) m := make(map[string][10]interface{}) b = m["x"] == m["y"] istrue(m["x"] == m["y"]) istrue(bool(b)) } shouldPanic(p1) shouldPanic(p2) shouldPanic(p3) shouldPanic(p4) } func p1() { var a []int var ia interface{} = a use(ia == ia) } func p2() { var b []int var ib interface{} = b use(ib == ib) } func p3() { var a []int var ia interface{} = a var m = make(map[interface{}]int) m[ia] = 1 } func p4() { var b []int var ib interface{} = b var m = make(map[interface{}]int) m[ib] = 1 } func shouldPanic(f func()) { defer func() { if recover() == nil { panic("function should panic") } }() f() }
go/test/cmp.go/0
{ "file_path": "go/test/cmp.go", "repo_id": "go", "token_count": 4015 }
462
// asmcheck -gcflags=-clobberdeadreg //go:build amd64 // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type S struct { a, b, c, d, e, f int } func F(a, b, c int, d S) { // -2401018187971961171 is 0xdeaddeaddeaddead // amd64:`MOVQ\t\$-2401018187971961171, AX`, `MOVQ\t\$-2401018187971961171, BX`, `MOVQ\t\$-2401018187971961171, CX` // amd64:`MOVQ\t\$-2401018187971961171, DX`, `MOVQ\t\$-2401018187971961171, SI`, `MOVQ\t\$-2401018187971961171, DI` // amd64:`MOVQ\t\$-2401018187971961171, R8`, `MOVQ\t\$-2401018187971961171, R9`, `MOVQ\t\$-2401018187971961171, R10` // amd64:`MOVQ\t\$-2401018187971961171, R11`, `MOVQ\t\$-2401018187971961171, R12`, `MOVQ\t\$-2401018187971961171, R13` // amd64:-`MOVQ\t\$-2401018187971961171, BP` // frame pointer is not clobbered StackArgsCall([10]int{a, b, c}) // amd64:`MOVQ\t\$-2401018187971961171, R12`, `MOVQ\t\$-2401018187971961171, R13`, `MOVQ\t\$-2401018187971961171, DX` // amd64:-`MOVQ\t\$-2401018187971961171, AX`, -`MOVQ\t\$-2401018187971961171, R11` // register args are not clobbered RegArgsCall(a, b, c, d) } //go:noinline func StackArgsCall([10]int) {} //go:noinline //go:registerparams func RegArgsCall(int, int, int, S) {}
go/test/codegen/clobberdeadreg.go/0
{ "file_path": "go/test/codegen/clobberdeadreg.go", "repo_id": "go", "token_count": 633 }
463
// asmcheck // Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that optimized range memclr works with pointers to arrays. // The clears get inlined, see https://github.com/golang/go/issues/56997 package codegen type T struct { a *[10]int b [10]int } func (t *T) f() { // amd64:-".*runtime.memclrNoHeapPointers" // amd64:"DUFFZERO" for i := range t.a { t.a[i] = 0 } // amd64:-".*runtime.memclrNoHeapPointers" // amd64:"DUFFZERO" for i := range *t.a { t.a[i] = 0 } // amd64:-".*runtime.memclrNoHeapPointers" // amd64:"DUFFZERO" for i := range t.a { (*t.a)[i] = 0 } // amd64:-".*runtime.memclrNoHeapPointers" // amd64:"DUFFZERO" for i := range *t.a { (*t.a)[i] = 0 } }
go/test/codegen/issue52635.go/0
{ "file_path": "go/test/codegen/issue52635.go", "repo_id": "go", "token_count": 348 }
464
// asmcheck // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type big1 struct { w [1<<30 - 1]uint32 } type big2 struct { d [1<<29 - 1]uint64 } func loadLargeOffset(sw *big1, sd *big2) (uint32, uint64) { // ppc64x:`MOVWZ\s+[0-9]+\(R[0-9]+\)`,-`ADD` a3 := sw.w[1<<10] // ppc64le/power10:`MOVWZ\s+[0-9]+\(R[0-9]+\),\sR[0-9]+`,-`ADD` // ppc64x/power9:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` // ppc64x/power8:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` b3 := sw.w[1<<16] // ppc64le/power10:`MOVWZ\s+[0-9]+\(R[0-9]+\),\sR[0-9]+`,-`ADD` // ppc64x/power9:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` // ppc64x/power8:`ADD`,`MOVWZ\s+\(R[0-9]+\),\sR[0-9]+` c3 := sw.w[1<<28] // ppc64x:`MOVWZ\s+\(R[0-9]+\)\(R[0-9]+\),\sR[0-9]+` d3 := sw.w[1<<29] // ppc64x:`MOVD\s+[0-9]+\(R[0-9]+\)`,-`ADD` a4 := sd.d[1<<10] // ppc64le/power10:`MOVD\s+[0-9]+\(R[0-9]+\)`,-`ADD` // ppc64x/power9:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` // ppc64x/power8:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` b4 := sd.d[1<<16] // ppc64le/power10`:`MOVD\s+[0-9]+\(R[0-9]+\)`,-`ADD` // ppc64x/power9:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` // ppc64x/power8:`ADD`,`MOVD\s+\(R[0-9]+\),\sR[0-9]+` c4 := sd.d[1<<27] // ppc64x:`MOVD\s+\(R[0-9]+\)\(R[0-9]+\),\sR[0-9]+` d4 := sd.d[1<<28] return a3 + b3 + c3 + d3, a4 + b4 + c4 + d4 } func storeLargeOffset(sw *big1, sd *big2) { // ppc64x:`MOVW\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` sw.w[1<<10] = uint32(10) // ppc64le/power10:`MOVW\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` // ppc64x/power9:`MOVW\s+R[0-9]+\,\s\(R[0-9]+\)`,`ADD` // ppc64x/power8:`MOVW\s+R[0-9]+\,\s\(R[0-9]+\)`,`ADD` sw.w[1<<16] = uint32(20) // ppc64le/power10:`MOVW\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` // ppc64x/power9:`MOVW\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` // ppc64x/power8:`MOVW\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` sw.w[1<<28] = uint32(30) // ppc64x:`MOVW\s+R[0-9]+,\s\(R[0-9]+\)` sw.w[1<<29] = uint32(40) // ppc64x:`MOVD\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` sd.d[1<<10] = uint64(40) // ppc64le/power10:`MOVD\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` // ppc64x/power9:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` // ppc64x/power8:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` sd.d[1<<16] = uint64(50) // ppc64le/power10`:`MOVD\s+R[0-9]+,\s[0-9]+\(R[0-9]+\)`,-`ADD` // ppc64x/power9:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` // ppc64x/power8:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)`,`ADD` sd.d[1<<27] = uint64(60) // ppc64x:`MOVD\s+R[0-9]+,\s\(R[0-9]+\)` sd.d[1<<28] = uint64(70) }
go/test/codegen/memops_bigoffset.go/0
{ "file_path": "go/test/codegen/memops_bigoffset.go", "repo_id": "go", "token_count": 1708 }
465
// asmcheck // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen func combine2string(p *[2]string, a, b string) { // amd64:`.*runtime[.]gcWriteBarrier4\(SB\)` // arm64:`.*runtime[.]gcWriteBarrier4\(SB\)` p[0] = a // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[1] = b } func combine4string(p *[4]string, a, b, c, d string) { // amd64:`.*runtime[.]gcWriteBarrier8\(SB\)` // arm64:`.*runtime[.]gcWriteBarrier8\(SB\)` p[0] = a // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[1] = b // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[2] = c // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[3] = d } func combine2slice(p *[2][]byte, a, b []byte) { // amd64:`.*runtime[.]gcWriteBarrier4\(SB\)` // arm64:`.*runtime[.]gcWriteBarrier4\(SB\)` p[0] = a // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[1] = b } func combine4slice(p *[4][]byte, a, b, c, d []byte) { // amd64:`.*runtime[.]gcWriteBarrier8\(SB\)` // arm64:`.*runtime[.]gcWriteBarrier8\(SB\)` p[0] = a // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[1] = b // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[2] = c // amd64:-`.*runtime[.]gcWriteBarrier` // arm64:-`.*runtime[.]gcWriteBarrier` p[3] = d }
go/test/codegen/writebarrier.go/0
{ "file_path": "go/test/codegen/writebarrier.go", "repo_id": "go", "token_count": 672 }
466
// errorcheck // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify that illegal conversions involving strings are detected. // Does not compile. package main type Tbyte []byte type Trune []rune type Tint64 []int64 type Tstring string func main() { s := "hello" sb := []byte("hello") sr := []rune("hello") si := []int64{'h', 'e', 'l', 'l', 'o'} ts := Tstring(s) tsb := Tbyte(sb) tsr := Trune(sr) tsi := Tint64(si) _ = string(s) _ = []byte(s) _ = []rune(s) _ = []int64(s) // ERROR "cannot convert.*\[\]int64|invalid type conversion" _ = Tstring(s) _ = Tbyte(s) _ = Trune(s) _ = Tint64(s) // ERROR "cannot convert.*Tint64|invalid type conversion" _ = string(sb) _ = []byte(sb) _ = []rune(sb) // ERROR "cannot convert.*\[\]rune|invalid type conversion" _ = []int64(sb) // ERROR "cannot convert.*\[\]int64|invalid type conversion" _ = Tstring(sb) _ = Tbyte(sb) _ = Trune(sb) // ERROR "cannot convert.*Trune|invalid type conversion" _ = Tint64(sb) // ERROR "cannot convert.*Tint64|invalid type conversion" _ = string(sr) _ = []byte(sr) // ERROR "cannot convert.*\[\]byte|invalid type conversion" _ = []rune(sr) _ = []int64(sr) // ERROR "cannot convert.*\[\]int64|invalid type conversion" _ = Tstring(sr) _ = Tbyte(sr) // ERROR "cannot convert.*Tbyte|invalid type conversion" _ = Trune(sr) _ = Tint64(sr) // ERROR "cannot convert.*Tint64|invalid type conversion" _ = string(si) // ERROR "cannot convert.* string|invalid type conversion" _ = []byte(si) // ERROR "cannot convert.*\[\]byte|invalid type conversion" _ = []rune(si) // ERROR "cannot convert.*\[\]rune|invalid type conversion" _ = []int64(si) _ = Tstring(si) // ERROR "cannot convert.*Tstring|invalid type conversion" _ = Tbyte(si) // ERROR "cannot convert.*Tbyte|invalid type conversion" _ = Trune(si) // ERROR "cannot convert.*Trune|invalid type conversion" _ = Tint64(si) _ = string(ts) _ = []byte(ts) _ = []rune(ts) _ = []int64(ts) // ERROR "cannot convert.*\[\]int64|invalid type conversion" _ = Tstring(ts) _ = Tbyte(ts) _ = Trune(ts) _ = Tint64(ts) // ERROR "cannot convert.*Tint64|invalid type conversion" _ = string(tsb) _ = []byte(tsb) _ = []rune(tsb) // ERROR "cannot convert.*\[\]rune|invalid type conversion" _ = []int64(tsb) // ERROR "cannot convert.*\[\]int64|invalid type conversion" _ = Tstring(tsb) _ = Tbyte(tsb) _ = Trune(tsb) // ERROR "cannot convert.*Trune|invalid type conversion" _ = Tint64(tsb) // ERROR "cannot convert.*Tint64|invalid type conversion" _ = string(tsr) _ = []byte(tsr) // ERROR "cannot convert.*\[\]byte|invalid type conversion" _ = []rune(tsr) _ = []int64(tsr) // ERROR "cannot convert.*\[\]int64|invalid type conversion" _ = Tstring(tsr) _ = Tbyte(tsr) // ERROR "cannot convert.*Tbyte|invalid type conversion" _ = Trune(tsr) _ = Tint64(tsr) // ERROR "cannot convert.*Tint64|invalid type conversion" _ = string(tsi) // ERROR "cannot convert.* string|invalid type conversion" _ = []byte(tsi) // ERROR "cannot convert.*\[\]byte|invalid type conversion" _ = []rune(tsi) // ERROR "cannot convert.*\[\]rune|invalid type conversion" _ = []int64(tsi) _ = Tstring(tsi) // ERROR "cannot convert.*Tstring|invalid type conversion" _ = Tbyte(tsi) // ERROR "cannot convert.*Tbyte|invalid type conversion" _ = Trune(tsi) // ERROR "cannot convert.*Trune|invalid type conversion" _ = Tint64(tsi) }
go/test/convert1.go/0
{ "file_path": "go/test/convert1.go", "repo_id": "go", "token_count": 1356 }
467
// errorcheck // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that incorrect short declarations and redeclarations are detected. // Does not compile. package main func f1() int { return 1 } func f2() (float32, int) { return 1, 2 } func f3() (float32, int, string) { return 1, 2, "3" } func main() { { // simple redeclaration i := f1() i := f1() // ERROR "redeclared|no new" _ = i } { // change of type for f i, f, s := f3() f, g, t := f3() // ERROR "redeclared|cannot assign|incompatible|cannot use" _, _, _, _, _ = i, f, s, g, t } { // change of type for i i, f, s := f3() j, i, t := f3() // ERROR "redeclared|cannot assign|incompatible|cannot use" _, _, _, _, _ = i, f, s, j, t } { // no new variables i, f, s := f3() i, f := f2() // ERROR "redeclared|no new" _, _, _ = i, f, s } { // multiline no new variables i := f1 i := func() int { // ERROR "redeclared|no new|incompatible" return 0 } _ = i } { // single redeclaration i, f, s := f3() i := 1 // ERROR "redeclared|no new|incompatible" _, _, _ = i, f, s } // double redeclaration { i, f, s := f3() i, f := f2() // ERROR "redeclared|no new" _, _, _ = i, f, s } { // triple redeclaration i, f, s := f3() i, f, s := f3() // ERROR "redeclared|no new" _, _, _ = i, f, s } }
go/test/declbad.go/0
{ "file_path": "go/test/declbad.go", "repo_id": "go", "token_count": 668 }
468
// errorcheck -0 -m -l // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test escape analysis for function parameters. // In this test almost everything is BAD except the simplest cases // where input directly flows to output. package foo func f(buf []byte) []byte { // ERROR "leaking param: buf to result ~r0 level=0$" return buf } func g(*byte) string func h(e int) { var x [32]byte // ERROR "moved to heap: x$" g(&f(x[:])[0]) } type Node struct { s string left, right *Node } func walk(np **Node) int { // ERROR "leaking param content: np" n := *np w := len(n.s) if n == nil { return 0 } wl := walk(&n.left) wr := walk(&n.right) if wl < wr { n.left, n.right = n.right, n.left // ERROR "ignoring self-assignment" wl, wr = wr, wl } *np = n return w + wl + wr } // Test for bug where func var f used prototype's escape analysis results. func prototype(xyz []string) {} // ERROR "xyz does not escape" func bar() { var got [][]string f := prototype f = func(ss []string) { got = append(got, ss) } // ERROR "leaking param: ss" "func literal does not escape" s := "string" f([]string{s}) // ERROR "\[\]string{...} escapes to heap" } func strmin(a, b, c string) string { // ERROR "leaking param: a to result ~r0 level=0" "leaking param: b to result ~r0 level=0" "leaking param: c to result ~r0 level=0" return min(a, b, c) } func strmax(a, b, c string) string { // ERROR "leaking param: a to result ~r0 level=0" "leaking param: b to result ~r0 level=0" "leaking param: c to result ~r0 level=0" return max(a, b, c) }
go/test/escape_calls.go/0
{ "file_path": "go/test/escape_calls.go", "repo_id": "go", "token_count": 614 }
469
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type T struct { x, y int } func (t *T) m(a int, b float64) int { return (t.x + a) * (t.y + int(b)) } func main() { var t *T = new(T) t.x = 1 t.y = 2 r10 := t.m(1, 3.0) _ = r10 } /* bug11.go:16: fatal error: walktype: switch 1 unknown op CALLMETH l(16) <int32>INT32 */
go/test/fixedbugs/bug011.go/0
{ "file_path": "go/test/fixedbugs/bug011.go", "repo_id": "go", "token_count": 192 }
470
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func main() { prog := "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxxxxxxxxxxxxx"+ "xxxxxx"+ "xxxxxxxxxxxxxxxxxxxx"+ "xxxxxxxx"+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ; _ = prog; } /* Segmentation fault */
go/test/fixedbugs/bug031.go/0
{ "file_path": "go/test/fixedbugs/bug031.go", "repo_id": "go", "token_count": 208 }
471
// compile // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main const s string = "foo"; func main() { i := len(s); // should be legal to take len() of a constant _ = i; } /* uetli:~/Source/go1/test/bugs gri$ 6g bug087.go bug087.go:6: illegal combination of literals LEN 9 bug087.go:6: illegal combination of literals LEN 9 */
go/test/fixedbugs/bug087.go/0
{ "file_path": "go/test/fixedbugs/bug087.go", "repo_id": "go", "token_count": 154 }
472
// compile // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bug150 type T int func (t T) M() type M interface { M() } func g() (T, T) func f() (a, b M) { a, b = g(); return; } /* bugs/bug150.go:13: reorder2: too many function calls evaluating parameters */
go/test/fixedbugs/bug150.go/0
{ "file_path": "go/test/fixedbugs/bug150.go", "repo_id": "go", "token_count": 133 }
473
// run // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test for golang.org/issue/19403. // F15 should not be clobbered by float-to-int conversion on ARM. // This test requires enough locals that can be put in registers that the compiler can choose to use F15. package main var count float32 = 16 var i0 int var i1 int var i2 int var i3 int var i4 int var i5 int var i6 int var i7 int var i8 int var i9 int var i10 int var i11 int var i12 int var i13 int var i14 int var i15 int var i16 int func main() { var f0 float32 = 0.0 var f1 float32 = 1.0 var f2 float32 = 2.0 var f3 float32 = 3.0 var f4 float32 = 4.0 var f5 float32 = 5.0 var f6 float32 = 6.0 var f7 float32 = 7.0 var f8 float32 = 8.0 var f9 float32 = 9.0 var f10 float32 = 10.0 var f11 float32 = 11.0 var f12 float32 = 12.0 var f13 float32 = 13.0 var f14 float32 = 14.0 var f15 float32 = 15.0 var f16 float32 = 16.0 i0 = int(f0) i1 = int(f1) i2 = int(f2) i3 = int(f3) i4 = int(f4) i5 = int(f5) i6 = int(f6) i7 = int(f7) i8 = int(f8) i9 = int(f9) i10 = int(f10) i11 = int(f11) i12 = int(f12) i13 = int(f13) i14 = int(f14) i15 = int(f15) i16 = int(f16) if f16 != count { panic("fail") } count -= 1 if f15 != count { panic("fail") } count -= 1 if f14 != count { panic("fail") } count -= 1 if f13 != count { panic("fail") } count -= 1 if f12 != count { panic("fail") } count -= 1 if f11 != count { panic("fail") } count -= 1 if f10 != count { panic("fail") } count -= 1 if f9 != count { panic("fail") } count -= 1 if f8 != count { panic("fail") } count -= 1 if f7 != count { panic("fail") } count -= 1 if f6 != count { panic("fail") } count -= 1 if f5 != count { panic("fail") } count -= 1 if f4 != count { panic("fail") } count -= 1 if f3 != count { panic("fail") } count -= 1 if f2 != count { panic("fail") } count -= 1 if f1 != count { panic("fail") } count -= 1 if f0 != count { panic("fail") } count -= 1 }
go/test/fixedbugs/bug19403.go/0
{ "file_path": "go/test/fixedbugs/bug19403.go", "repo_id": "go", "token_count": 955 }
474
// run // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main var ( nf int x, y, z = f(), f(), f() m = map[string]string{"a": "A"} a, aok = m["a"] b, bok = m["b"] ) func look(s string) (string, bool) { x, ok := m[s] return x, ok } func f() int { nf++ return nf } func main() { if nf != 3 || x != 1 || y != 2 || z != 3 { println("nf=", nf, " x=", x, " y=", y) panic("fail") } if a != "A" || aok != true || b != "" || bok != false { println("a=", a, " aok=", aok, " b=", b, " bok=", bok) panic("fail") } }
go/test/fixedbugs/bug227.go/0
{ "file_path": "go/test/fixedbugs/bug227.go", "repo_id": "go", "token_count": 301 }
475
// run // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test order of evaluation in tuple assignments. package main var i byte = 0 var a [30]byte func f() *byte { i++ return &a[i-1] } func gbyte() byte { i++ return 'a' + i - 1 } func gint() byte { i++ return i - 1 } func x() (byte, byte) { i++ return 'a' + i - 1, 'a' + i - 1 } func e1(c chan byte, expected byte) chan byte { if i != expected { println("e1: got", i, "expected", expected) panic("fail") } i++ return c } type Empty interface{} type I interface { Get() byte } type S1 struct { i byte } func (p S1) Get() byte { return p.i } type S2 struct { i byte } func e2(p Empty, expected byte) Empty { if i != expected { println("e2: got", i, "expected", expected) panic("fail") } i++ return p } func e3(p *I, expected byte) *I { if i != expected { println("e3: got", i, "expected", expected) panic("fail") } i++ return p } func main() { for i := range a { a[i] = ' ' } // 0 1 2 3 4 5 *f(), *f(), *f() = gbyte(), gbyte(), gbyte() // 6 7 8 *f(), *f() = x() m := make(map[byte]byte) m[10] = 'A' var p1, p2 bool // 9 10 *f(), p1 = m[gint()] // 11 12 *f(), p2 = m[gint()] a[11] += '0' if !p1 || p2 { println("bad map check", i, p1, p2) panic("fail") } m[13] = 'B' // 13 14 delete(m, gint()) gbyte() if _, present := m[13]; present { println("bad map removal") panic("fail") } c := make(chan byte, 1) c <- 'C' // 15 16 *f(), p1 = <-e1(c, 16) close(c) // 17 18 *f(), p2 = <-e1(c, 18) a[17] += '0' if !p1 || p2 { println("bad chan check", i, p1, p2) panic("fail") } s1 := S1{'D'} s2 := S2{'E'} var iv I // 19 20 *e3(&iv, 19), p1 = e2(s1, 20).(I) // 21 22 *e3(&iv, 21), p2 = e2(s2, 22).(I) if !p1 || p2 { println("bad interface check", i, p1, p2) panic("fail") } s := string(a[0:i]) if s != "def ii A 0 C 0 " { println("bad array results:", s) panic("fail") } }
go/test/fixedbugs/bug242.go/0
{ "file_path": "go/test/fixedbugs/bug242.go", "repo_id": "go", "token_count": 1068 }
476
// run // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // https://golang.org/issue/589 package main func main() { n := int64(100) x := make([]int, n) x[99] = 234; z := x[n-1] if z != 234 { println("BUG") } n |= 1<<32 defer func() { recover() }() z = x[n-1] println("BUG2") }
go/test/fixedbugs/bug272.go/0
{ "file_path": "go/test/fixedbugs/bug272.go", "repo_id": "go", "token_count": 170 }
477
// run // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test case for issue 849. package main type I interface { f() } var callee string var error_ bool type T int func (t *T) f() { callee = "f" } func (i *T) g() { callee = "g" } // test1 and test2 are the same except that in the interface J // the entries are swapped. test2 and test3 are the same except // that in test3 the interface J is declared outside the function. // // Error: test2 calls g instead of f func test1(x I) { type J interface { I g() } x.(J).f() if callee != "f" { println("test1 called", callee) error_ = true } } func test2(x I) { type J interface { g() I } x.(J).f() if callee != "f" { println("test2 called", callee) error_ = true } } type J interface { g() I } func test3(x I) { x.(J).f() if callee != "f" { println("test3 called", callee) error_ = true } } func main() { x := new(T) test1(x) test2(x) test3(x) if error_ { panic("wrong method called") } } /* 6g bug286.go && 6l bug286.6 && 6.out test2 called g panic: wrong method called panic PC=0x24e040 runtime.panic+0x7c /home/gri/go1/src/pkg/runtime/proc.c:1012 runtime.panic(0x0, 0x24e0a0) main.main+0xef /home/gri/go1/test/bugs/bug286.go:76 main.main() mainstart+0xf /home/gri/go1/src/pkg/runtime/amd64/asm.s:60 mainstart() goexit /home/gri/go1/src/pkg/runtime/proc.c:145 goexit() */
go/test/fixedbugs/bug286.go/0
{ "file_path": "go/test/fixedbugs/bug286.go", "repo_id": "go", "token_count": 631 }
478
// run // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 1011. Removing either #1 or #3 avoided the crash at #2. package main import ( "io" "strings" ) func readU16BE(b []byte) uint16 { b[0] = 0 b[1] = 1 return uint16(b[0])<<8 + uint16(b[1]) // #1 n := uint16(b[0])<<8 + uint16(b[1]) return n } func readStr(r io.Reader, b []byte) string { n := readU16BE(b) if int(n) > len(b) { return "err: n>b" } io.ReadFull(r, b[0:n]) // #2 return string(b[0:n]) // #3 return "ok" } func main() { br := strings.NewReader("abcd") readStr(br, make([]byte, 256)) }
go/test/fixedbugs/bug303.go/0
{ "file_path": "go/test/fixedbugs/bug303.go", "repo_id": "go", "token_count": 298 }
479
// run // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Used to panic because 8g was generating incorrect // code for converting a negative float to a uint64. package main func main() { var x float32 = -2.5 _ = uint64(x) _ = float32(0) } /* panic: runtime error: floating point error [signal 0x8 code=0x6 addr=0x8048c64 pc=0x8048c64] */
go/test/fixedbugs/bug341.go/0
{ "file_path": "go/test/fixedbugs/bug341.go", "repo_id": "go", "token_count": 153 }
480
// run //go:build !nacl && !js && !wasip1 && gc // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that compiling with optimization turned on produces faster code. package main import ( "fmt" "io/ioutil" "os" "os/exec" "path/filepath" ) func main() { err := os.Chdir(filepath.Join(".", "fixedbugs", "bug369.dir")) check(err) tmpDir, err := ioutil.TempDir("", "bug369") check(err) defer os.RemoveAll(tmpDir) tmp := func(name string) string { return filepath.Join(tmpDir, name) } check(os.Mkdir(tmp("test"), 0777)) stdlibimportcfg, err := os.ReadFile(os.Getenv("STDLIB_IMPORTCFG")) check(err) importcfg := string(stdlibimportcfg) + "\npackagefile test/slow=" + tmp("test/slow.o") + "\npackagefile test/fast=" + tmp("test/fast.o") os.WriteFile(tmp("importcfg"), []byte(importcfg), 0644) run("go", "tool", "compile", "-importcfg="+tmp("importcfg"), "-p=test/slow", "-N", "-o", tmp("test/slow.o"), "pkg.go") run("go", "tool", "compile", "-importcfg="+tmp("importcfg"), "-p=test/fast", "-o", tmp("test/fast.o"), "pkg.go") run("go", "tool", "compile", "-importcfg="+tmp("importcfg"), "-p=main", "-D", "test", "-o", tmp("main.o"), "main.go") run("go", "tool", "link", "-importcfg="+tmp("importcfg"), "-o", tmp("a.exe"), tmp("main.o")) run(tmp("a.exe")) } func run(name string, args ...string) { cmd := exec.Command(name, args...) out, err := cmd.CombinedOutput() if err != nil { fmt.Println(string(out)) fmt.Println(err) os.Exit(1) } } func check(err error) { if err != nil { fmt.Println(err) os.Exit(1) } }
go/test/fixedbugs/bug369.go/0
{ "file_path": "go/test/fixedbugs/bug369.go", "repo_id": "go", "token_count": 660 }
481
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file // Issue 2529 package main import "./pkg" var x = pkg.E var fo = struct{ F pkg.T }{F: x}
go/test/fixedbugs/bug382.dir/prog.go/0
{ "file_path": "go/test/fixedbugs/bug382.dir/prog.go", "repo_id": "go", "token_count": 83 }
482
// run // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 2821 package main type matrix struct { e []int } func (a matrix) equal() bool { for _ = range a.e { } for range a.e { } return true } func main() { var a matrix var i interface{} i = true && a.equal() _ = i }
go/test/fixedbugs/bug406.go/0
{ "file_path": "go/test/fixedbugs/bug406.go", "repo_id": "go", "token_count": 142 }
483
// compile // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // gccgo gave an invalid error ("floating point constant truncated to // integer") compiling this. package p const C = 1<<63 - 1 func F(i int64) int64 { return i } var V = F(int64(C) / 1e6)
go/test/fixedbugs/bug431.go/0
{ "file_path": "go/test/fixedbugs/bug431.go", "repo_id": "go", "token_count": 117 }
484
// compile // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Was failing to compile with 'invalid receiver' due to // incomplete type definition evaluation. Issue 3709. package p type T1 struct { F *T2 } type T2 T1 type T3 T2 func (*T3) M() // was invalid receiver
go/test/fixedbugs/bug443.go/0
{ "file_path": "go/test/fixedbugs/bug443.go", "repo_id": "go", "token_count": 113 }
485
// run // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 4197: growing a slice of zero-width elements // panics on a division by zero. package main func main() { var x []struct{} x = append(x, struct{}{}) }
go/test/fixedbugs/bug457.go/0
{ "file_path": "go/test/fixedbugs/bug457.go", "repo_id": "go", "token_count": 101 }
486
package p1 type SockaddrUnix int func (s SockaddrUnix) Error() string { return "blah" }
go/test/fixedbugs/bug467.dir/p1.go/0
{ "file_path": "go/test/fixedbugs/bug467.dir/p1.go", "repo_id": "go", "token_count": 32 }
487
// compile // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Logical operation on named boolean type returns the same type, // supporting an implicit conversion to an interface type. This used // to crash gccgo. package p type B bool func (b B) M() {} type I interface { M() } func F(a, b B) I { return a && b }
go/test/fixedbugs/bug476.go/0
{ "file_path": "go/test/fixedbugs/bug476.go", "repo_id": "go", "token_count": 131 }
488
// run // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Gccgo incorrectly rejected an assignment to multiple instances of // the same variable. package main var a int func F() { a, a, a = 1, 2, 3 } func main() { F() if a != 3 { panic(a) } }
go/test/fixedbugs/bug498.go/0
{ "file_path": "go/test/fixedbugs/bug498.go", "repo_id": "go", "token_count": 123 }
489
// run // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The gofrontend used to mishandle this code due to a pass ordering issue. // It was inconsistent as to whether unsafe.Sizeof(byte(0)) was a constant, // and therefore as to whether it was a direct-iface type. package main import "unsafe" type A [unsafe.Sizeof(byte(0))]*byte func (r A) V() byte { return *r[0] } func F() byte { panic("F") // should never be called } type B [unsafe.Sizeof(F())]*byte func (r B) V() byte { return *r[0] } func main() { b := byte(1) v := A{&b}.V() + B{&b}.V() if v != 2 { panic(v) } }
go/test/fixedbugs/bug517.go/0
{ "file_path": "go/test/fixedbugs/bug517.go", "repo_id": "go", "token_count": 261 }
490
// run // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 10320: 7g failed to compile a program because it attempted // to use ZR as register. Other programs compiled but failed to // execute correctly because they clobbered the g register. package main func main() { var x00, x01, x02, x03, x04, x05, x06, x07, x08, x09 int var x10, x11, x12, x13, x14, x15, x16, x17, x18, x19 int var x20, x21, x22, x23, x24, x25, x26, x27, x28, x29 int var x30, x31, x32 int _ = x00 _ = x01 _ = x02 _ = x03 _ = x04 _ = x05 _ = x06 _ = x07 _ = x08 _ = x09 _ = x10 _ = x11 _ = x12 _ = x13 _ = x14 _ = x15 _ = x16 _ = x17 _ = x18 _ = x19 _ = x20 _ = x21 _ = x22 _ = x23 _ = x24 _ = x25 _ = x26 _ = x27 _ = x28 _ = x29 _ = x30 _ = x31 _ = x32 }
go/test/fixedbugs/issue10320.go/0
{ "file_path": "go/test/fixedbugs/issue10320.go", "repo_id": "go", "token_count": 410 }
491
// errorcheck // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test an internal compiler error on ? symbol in declaration // following an empty import. package a var? // ERROR "invalid character U\+003F '\?'|invalid character 0x3f in input file" var x int // ERROR "unexpected var|expected identifier|expected type" func main() { }
go/test/fixedbugs/issue11610.go/0
{ "file_path": "go/test/fixedbugs/issue11610.go", "repo_id": "go", "token_count": 129 }
492
// run // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 11987. The ppc64 SRADCC instruction was misassembled in a way // lost bit 5 of the immediate so v>>32 was assembled as v>>0. SRADCC // is only ever inserted by peep so it's hard to be sure when it will // be used. This formulation worked when the bug was fixed. package main import "fmt" var v int64 = 0x80000000 func main() { s := fmt.Sprintf("%v", v>>32 == 0) if s != "true" { fmt.Printf("BUG: v>>32 == 0 evaluated as %q\n", s) } }
go/test/fixedbugs/issue11987.go/0
{ "file_path": "go/test/fixedbugs/issue11987.go", "repo_id": "go", "token_count": 206 }
493
// compile // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // golang.org/issue/12686. // interesting because it's a non-constant but ideal value // and we used to incorrectly attach a constant Val to the Node. package p func f(i uint) uint { x := []uint{1 << i} return x[0] }
go/test/fixedbugs/issue12686.go/0
{ "file_path": "go/test/fixedbugs/issue12686.go", "repo_id": "go", "token_count": 120 }
494
// compile // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 13821. Compiler rejected "bool(true)" as not a constant. package p const ( A = true B = bool(A) C = bool(true) )
go/test/fixedbugs/issue13821.go/0
{ "file_path": "go/test/fixedbugs/issue13821.go", "repo_id": "go", "token_count": 96 }
495
// run // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This test checks if the compiler's internal constant // arithmetic correctly rounds denormal float32 values. package main import ( "fmt" "math" ) func main() { for _, t := range []struct { value float32 bits uint32 }{ {0e+00, 0x00000000}, {1e-46, 0x00000000}, {0.5e-45, 0x00000000}, {0.8e-45, 0x00000001}, {1e-45, 0x00000001}, {2e-45, 0x00000001}, {3e-45, 0x00000002}, {4e-45, 0x00000003}, {5e-45, 0x00000004}, {6e-45, 0x00000004}, {7e-45, 0x00000005}, {8e-45, 0x00000006}, {9e-45, 0x00000006}, {1.0e-44, 0x00000007}, {1.1e-44, 0x00000008}, {1.2e-44, 0x00000009}, } { got := math.Float32bits(t.value) want := t.bits if got != want { panic(fmt.Sprintf("bits(%g) = 0x%08x; want 0x%08x", t.value, got, want)) } } }
go/test/fixedbugs/issue14553.go/0
{ "file_path": "go/test/fixedbugs/issue14553.go", "repo_id": "go", "token_count": 435 }
496
//go:build !amd64 && !386 package main func jump() { target() }
go/test/fixedbugs/issue15609.dir/call.go/0
{ "file_path": "go/test/fixedbugs/issue15609.dir/call.go", "repo_id": "go", "token_count": 27 }
497
// run // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "runtime" ) var sink *[20]byte func f() (x [20]byte) { // Initialize x. for i := range x { x[i] = byte(i) } // Force x to be allocated on the heap. sink = &x sink = nil // Go to deferreturn after the panic below. defer func() { recover() }() // This call collects the heap-allocated version of x (oops!) runtime.GC() // Allocate that same object again and clobber it. y := new([20]byte) for i := 0; i < 20; i++ { y[i] = 99 } // Make sure y is heap allocated. sink = y panic(nil) // After the recover we reach the deferreturn, which // copies the heap version of x back to the stack. // It gets the pointer to x from a stack slot that was // not marked as live during the call to runtime.GC(). } var sinkint int func g(p *int) (x [20]byte) { // Initialize x. for i := range x { x[i] = byte(i) } // Force x to be allocated on the heap. sink = &x sink = nil // Go to deferreturn after the panic below. defer func() { recover() }() // This call collects the heap-allocated version of x (oops!) runtime.GC() // Allocate that same object again and clobber it. y := new([20]byte) for i := 0; i < 20; i++ { y[i] = 99 } // Make sure y is heap allocated. sink = y // panic with a non-call (with no fallthrough) for { sinkint = *p } // After the recover we reach the deferreturn, which // copies the heap version of x back to the stack. // It gets the pointer to x from a stack slot that was // not marked as live during the call to runtime.GC(). } func main() { x := f() for i, v := range x { if v != byte(i) { fmt.Printf("%v\n", x) panic("bad f") } } x = g(nil) for i, v := range x { if v != byte(i) { fmt.Printf("%v\n", x) panic("bad g") } } }
go/test/fixedbugs/issue16095.go/0
{ "file_path": "go/test/fixedbugs/issue16095.go", "repo_id": "go", "token_count": 743 }
498
// errorcheck // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p var a []int = []int{1: 1} var b []int = []int{-1: 1} // ERROR "must be non-negative integer constant|index expression is negative|must not be negative" var c []int = []int{2.0: 2} var d []int = []int{-2.0: 2} // ERROR "must be non-negative integer constant|index expression is negative|must not be negative" var e []int = []int{3 + 0i: 3} var f []int = []int{3i: 3} // ERROR "truncated to integer|index expression is not integer constant|truncated to int" var g []int = []int{"a": 4} // ERROR "must be non-negative integer constant|index expression is not integer constant|cannot convert"
go/test/fixedbugs/issue16439.go/0
{ "file_path": "go/test/fixedbugs/issue16439.go", "repo_id": "go", "token_count": 241 }
499
// run // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type S []S func main() { var s S s = append(s, s) // append a nil value to s if s[0] != nil { println("BUG: s[0] != nil") } }
go/test/fixedbugs/issue17039.go/0
{ "file_path": "go/test/fixedbugs/issue17039.go", "repo_id": "go", "token_count": 111 }
500
// errorcheck // Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func foo() { _ = func() {} } func foo() { // ERROR "foo redeclared in this block|redefinition of .*foo.*" _ = func() {} } func main() {}
go/test/fixedbugs/issue17758.go/0
{ "file_path": "go/test/fixedbugs/issue17758.go", "repo_id": "go", "token_count": 105 }
501
// compile // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p type ( a = b b struct { *a } ) type ( c struct { *d } d = c ) // The compiler cannot handle these cases. Disabled for now. // See issue #25838. /* type ( e = f f = g g = []h h i i = j j = e ) type ( a1 struct{ *b1 } b1 = c1 c1 struct{ *b1 } ) type ( a2 struct{ b2 } b2 = c2 c2 struct{ *b2 } ) */
go/test/fixedbugs/issue18640.go/0
{ "file_path": "go/test/fixedbugs/issue18640.go", "repo_id": "go", "token_count": 222 }
502
// errorcheck // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 19012: if we have any unknown type at a call site, // we must ensure that we return to the user a suppressed // error message saying instead of including <T> in // the message. package main func f(x int, y uint) { if true { return "a" > 10 // ERROR "^too many arguments to return$|return with value in function with no return|no result values expected|mismatched types" } return "gopher" == true, 10 // ERROR "^too many arguments to return$|return with value in function with no return|no result values expected|mismatched types" } func main() { f(2, 3 < "x", 10) // ERROR "too many arguments|invalid operation|incompatible type" f(10, 10, "a") // ERROR "too many arguments" }
go/test/fixedbugs/issue19012.go/0
{ "file_path": "go/test/fixedbugs/issue19012.go", "repo_id": "go", "token_count": 253 }
503