diff options
| author | 2025-03-09 17:47:56 +0100 | |
|---|---|---|
| committer | 2025-12-01 22:08:04 +0100 | |
| commit | b1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch) | |
| tree | 9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/github.com/yuin/goldmark/util/unicode_case_folding.go | |
| parent | [chore] update URLs to forked source (diff) | |
| download | gotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz | |
[chore] remove vendor
Diffstat (limited to 'vendor/github.com/yuin/goldmark/util/unicode_case_folding.go')
| -rw-r--r-- | vendor/github.com/yuin/goldmark/util/unicode_case_folding.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vendor/github.com/yuin/goldmark/util/unicode_case_folding.go b/vendor/github.com/yuin/goldmark/util/unicode_case_folding.go deleted file mode 100644 index 938ed0ba6..000000000 --- a/vendor/github.com/yuin/goldmark/util/unicode_case_folding.go +++ /dev/null @@ -1,17 +0,0 @@ -package util - -//go:generate go run ../_tools unicode-case-folding-map -o ../_tools/unicode-case-folding-map.json -//go:generate go run ../_tools emb-structs -i ../_tools/unicode-case-folding-map.json -o ./unicode_case_folding.gen.go - -var unicodeCaseFoldings map[rune][]rune - -func init() { - unicodeCaseFoldings = make(map[rune][]rune, _unicodeCaseFoldingLength) - cTo := 0 - for i := 0; i < _unicodeCaseFoldingLength; i++ { - tTo := cTo + int(_unicodeCaseFoldingToIndex[i]) - to := _unicodeCaseFoldingTo[cTo:tTo] - unicodeCaseFoldings[_unicodeCaseFoldingFrom[i]] = to - cTo = tTo - } -} |
