aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/net/idna/trie12.0.0.go
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
committerLibravatar Rutger Broekhoff2024-01-02 18:56:31 +0100
commit8db41da676ac8368ef7c2549d56239a5ff5eedde (patch)
tree09c427fd66de2ec1ebffc8342f5fdbb84b0701b5 /vendor/golang.org/x/net/idna/trie12.0.0.go
parentd4f75fb6db22e57577867445a022227e70958931 (diff)
downloadgitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.tar.gz
gitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.zip
Delete vendor directory
Diffstat (limited to 'vendor/golang.org/x/net/idna/trie12.0.0.go')
-rw-r--r--vendor/golang.org/x/net/idna/trie12.0.0.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/vendor/golang.org/x/net/idna/trie12.0.0.go b/vendor/golang.org/x/net/idna/trie12.0.0.go
deleted file mode 100644
index 8a75b96..0000000
--- a/vendor/golang.org/x/net/idna/trie12.0.0.go
+++ /dev/null
@@ -1,30 +0,0 @@
1// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
2
3// Copyright 2016 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7//go:build !go1.16
8
9package idna
10
11// appendMapping appends the mapping for the respective rune. isMapped must be
12// true. A mapping is a categorization of a rune as defined in UTS #46.
13func (c info) appendMapping(b []byte, s string) []byte {
14 index := int(c >> indexShift)
15 if c&xorBit == 0 {
16 s := mappings[index:]
17 return append(b, s[1:s[0]+1]...)
18 }
19 b = append(b, s...)
20 if c&inlineXOR == inlineXOR {
21 // TODO: support and handle two-byte inline masks
22 b[len(b)-1] ^= byte(index)
23 } else {
24 for p := len(b) - int(xorData[index]); p < len(b); p++ {
25 index++
26 b[p] ^= xorData[index]
27 }
28 }
29 return b
30}