1 // Copyright 2015 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 // entry is the entry of a trie table
10 // 7..6 property (unassigned, disallowed, maybe, valid)
20 func (e entry) property() property { return property(e & propMask) }
21 func (e entry) category() category { return category(e & catMask) }
25 // The order of these constants matter. A Profile may consider runes to be
26 // allowed either from pValid or idDisOrFreePVal.
28 unassigned property = iota << propShift
30 idDisOrFreePVal // disallowed for Identifier, pValid for FreeForm
34 // compute permutations of all properties and specialCategories.
46 viramaJoinT // Virama + JoiningT
49 greekJoinT // Greek + JoiningT
51 hebrewJoinT // Hebrew + JoiningT
52 japanese // hirigana, katakana, han
54 // Special rune types associated with contextual rules defined in
55 // https://tools.ietf.org/html/rfc5892#appendix-A.
57 zeroWidthNonJoiner // rule 1
58 zeroWidthJoiner // rule 2
61 greekLowerNumeralSign // rule 4
62 hebrewPreceding // rule 5 and 6
63 katakanaMiddleDot // rule 7
64 arabicIndicDigit // rule 8
65 extendedArabicIndicDigit // rule 9