mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-30 02:50:19 +00:00
3010f033c5
Bumps the golang-dependencies group with 2 updates: [golang.org/x/crypto](https://github.com/golang/crypto) and [golang.org/x/net](https://github.com/golang/net). Updates `golang.org/x/crypto` from 0.14.0 to 0.15.0 - [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.15.0) Updates `golang.org/x/net` from 0.17.0 to 0.18.0 - [Commits](https://github.com/golang/net/compare/v0.17.0...v0.18.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang-dependencies - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
31 lines
872 B
Go
31 lines
872 B
Go
// 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 (c info) appendMapping(b []byte, s string) []byte {
|
|
index := int(c >> indexShift)
|
|
if c&xorBit == 0 {
|
|
p := index
|
|
return append(b, mappings[mappingIndex[p]:mappingIndex[p+1]]...)
|
|
}
|
|
b = append(b, s...)
|
|
if c&inlineXOR == inlineXOR {
|
|
// TODO: support and handle two-byte inline masks
|
|
b[len(b)-1] ^= byte(index)
|
|
} else {
|
|
for p := len(b) - int(xorData[index]); p < len(b); p++ {
|
|
index++
|
|
b[p] ^= xorData[index]
|
|
}
|
|
}
|
|
return b
|
|
}
|