summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/internal/export/idna/gen_common.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-16 05:37:14 -0700
committerJoram Wilander <jwawilander@gmail.com>2018-04-16 08:37:14 -0400
commit6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch)
tree3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/golang.org/x/text/internal/export/idna/gen_common.go
parentbf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff)
downloadchat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/golang.org/x/text/internal/export/idna/gen_common.go')
-rw-r--r--vendor/golang.org/x/text/internal/export/idna/gen_common.go59
1 files changed, 0 insertions, 59 deletions
diff --git a/vendor/golang.org/x/text/internal/export/idna/gen_common.go b/vendor/golang.org/x/text/internal/export/idna/gen_common.go
deleted file mode 100644
index 360a02b8e..000000000
--- a/vendor/golang.org/x/text/internal/export/idna/gen_common.go
+++ /dev/null
@@ -1,59 +0,0 @@
-// 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.
-
-// +build ignore
-
-package main
-
-// This file contains code that is common between the generation code and the
-// package's test code.
-
-import (
- "log"
-
- "golang.org/x/text/internal/ucd"
-)
-
-func catFromEntry(p *ucd.Parser) (cat category) {
- r := p.Rune(0)
- switch s := p.String(1); s {
- case "valid":
- cat = valid
- case "disallowed":
- cat = disallowed
- case "disallowed_STD3_valid":
- cat = disallowedSTD3Valid
- case "disallowed_STD3_mapped":
- cat = disallowedSTD3Mapped
- case "mapped":
- cat = mapped
- case "deviation":
- cat = deviation
- case "ignored":
- cat = ignored
- default:
- log.Fatalf("%U: Unknown category %q", r, s)
- }
- if s := p.String(3); s != "" {
- if cat != valid {
- log.Fatalf(`%U: %s defined for %q; want "valid"`, r, s, p.String(1))
- }
- switch s {
- case "NV8":
- cat = validNV8
- case "XV8":
- cat = validXV8
- default:
- log.Fatalf("%U: Unexpected exception %q", r, s)
- }
- }
- return cat
-}
-
-var joinType = map[string]info{
- "L": joiningL,
- "D": joiningD,
- "T": joiningT,
- "R": joiningR,
-}