1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
9 // This file contains code that is common between the generation code and the
10 // package's test code.
15 "golang.org/x/text/internal/ucd"
18 func catFromEntry(p *ucd.Parser) (cat category) {
20 switch s := p.String(1); s {
25 case "disallowed_STD3_valid":
26 cat = disallowedSTD3Valid
27 case "disallowed_STD3_mapped":
28 cat = disallowedSTD3Mapped
36 log.Fatalf("%U: Unknown category %q", r, s)
38 if s := p.String(3); s != "" {
40 log.Fatalf(`%U: %s defined for %q; want "valid"`, r, s, p.String(1))
48 log.Fatalf("%U: Unexpected exception %q", r, s)
54 var joinType = map[string]info{