Skip to content

Commit 9433a22

Browse files
committed
fix: add missing type definitions from StrUtils.h
1 parent 207e68b commit 9433a22

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

postype.go

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type POSType string
66

77
// NOTE: update isValid function when adding a new POSType.
88
const (
9-
POS_UNKNOWN POSType = "UNKNOWN"
9+
POS_UNKNOWN POSType = "UN"
1010

1111
POS_NNG POSType = "NNG"
1212
POS_NNP POSType = "NNP"
@@ -65,8 +65,6 @@ const (
6565
POS_SN POSType = "SN"
6666
POS_SB POSType = "SB"
6767

68-
POS_UN POSType = "UN"
69-
7068
POS_W_URL POSType = "W_URL"
7169
POS_W_EMAIL POSType = "W_EMAIL"
7270
POS_W_HASHTAG POSType = "W_HASHTAG"
@@ -82,6 +80,18 @@ const (
8280
POS_USER_2 POSType = "USER2"
8381
POS_USER_3 POSType = "USER3"
8482
POS_USER_4 POSType = "USER4"
83+
84+
POS_VV_I POSType = "VV-I"
85+
POS_VA_I POSType = "VA-I"
86+
POS_VX_I POSType = "VX-I"
87+
POS_XSA_I POSType = "XSA-I"
88+
89+
POS_VV_R POSType = "VV-R"
90+
POS_VA_R POSType = "VA-R"
91+
POS_VX_R POSType = "VX-R"
92+
POS_XSA_R POSType = "XSA-R"
93+
94+
POS_V POSType = "V"
8595
)
8696

8797
func (p POSType) isValid() bool {
@@ -134,7 +144,6 @@ func (p POSType) isValid() bool {
134144
POS_SH,
135145
POS_SN,
136146
POS_SB,
137-
POS_UN,
138147
POS_W_URL,
139148
POS_W_EMAIL,
140149
POS_W_HASHTAG,
@@ -147,7 +156,16 @@ func (p POSType) isValid() bool {
147156
POS_USER_1,
148157
POS_USER_2,
149158
POS_USER_3,
150-
POS_USER_4:
159+
POS_USER_4,
160+
POS_VV_I,
161+
POS_VA_I,
162+
POS_VX_I,
163+
POS_XSA_I,
164+
POS_VV_R,
165+
POS_VA_R,
166+
POS_VX_R,
167+
POS_XSA_R,
168+
POS_V:
151169
return true
152170
default:
153171
return false

0 commit comments

Comments
 (0)