Source File
trie13.0.0.go
Belonging Package
vendor/golang.org/x/net/idna
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
// 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.
//go:build go1.16
package idna
// appendMapping appends the mapping for the respective rune. isMapped must be
// true. A mapping is a categorization of a rune as defined in UTS #46.
func ( info) ( []byte, string) []byte {
:= int( >> indexShift)
if &xorBit == 0 {
:=
return append(, mappings[mappingIndex[]:mappingIndex[+1]]...)
}
= append(, ...)
if &inlineXOR == inlineXOR {
// TODO: support and handle two-byte inline masks
[len()-1] ^= byte()
} else {
for := len() - int(xorData[]); < len(); ++ {
++
[] ^= xorData[]
}
}
return
}
The pages are generated with Golds v0.7.0-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |