diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/golang.org/x/net/idna/trieval.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/golang.org/x/net/idna/trieval.go')
-rw-r--r-- | vendor/golang.org/x/net/idna/trieval.go | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/vendor/golang.org/x/net/idna/trieval.go b/vendor/golang.org/x/net/idna/trieval.go index 63cb03b..7a8cf88 100644 --- a/vendor/golang.org/x/net/idna/trieval.go +++ b/vendor/golang.org/x/net/idna/trieval.go | |||
@@ -26,9 +26,9 @@ package idna | |||
26 | // 15..3 index into xor or mapping table | 26 | // 15..3 index into xor or mapping table |
27 | // } | 27 | // } |
28 | // } else { | 28 | // } else { |
29 | // 15..13 unused | 29 | // 15..14 unused |
30 | // 12 modifier (including virama) | 30 | // 13 mayNeedNorm |
31 | // 11 virama modifier | 31 | // 12..11 attributes |
32 | // 10..8 joining type | 32 | // 10..8 joining type |
33 | // 7..3 category type | 33 | // 7..3 category type |
34 | // } | 34 | // } |
@@ -49,15 +49,20 @@ const ( | |||
49 | joinShift = 8 | 49 | joinShift = 8 |
50 | joinMask = 0x07 | 50 | joinMask = 0x07 |
51 | 51 | ||
52 | viramaModifier = 0x0800 | 52 | // Attributes |
53 | attributesMask = 0x1800 | ||
54 | viramaModifier = 0x1800 | ||
53 | modifier = 0x1000 | 55 | modifier = 0x1000 |
56 | rtl = 0x0800 | ||
57 | |||
58 | mayNeedNorm = 0x2000 | ||
54 | ) | 59 | ) |
55 | 60 | ||
56 | // A category corresponds to a category defined in the IDNA mapping table. | 61 | // A category corresponds to a category defined in the IDNA mapping table. |
57 | type category uint16 | 62 | type category uint16 |
58 | 63 | ||
59 | const ( | 64 | const ( |
60 | unknown category = 0 // not defined currently in unicode. | 65 | unknown category = 0 // not currently defined in unicode. |
61 | mapped category = 1 | 66 | mapped category = 1 |
62 | disallowedSTD3Mapped category = 2 | 67 | disallowedSTD3Mapped category = 2 |
63 | deviation category = 3 | 68 | deviation category = 3 |
@@ -110,5 +115,5 @@ func (c info) isModifier() bool { | |||
110 | } | 115 | } |
111 | 116 | ||
112 | func (c info) isViramaModifier() bool { | 117 | func (c info) isViramaModifier() bool { |
113 | return c&(viramaModifier|catSmallMask) == viramaModifier | 118 | return c&(attributesMask|catSmallMask) == viramaModifier |
114 | } | 119 | } |