// 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
// +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 
}