MCPcopy
hub / github.com/davyxu/tabtoy / FieldRepeatedCount

Method FieldRepeatedCount

v2/sheet_dataheader.go:125–135  ·  view source on GitHub ↗
(fd *model.FieldDescriptor)

Source from the content-addressed store, hash-verified

123}
124
125func (self *DataHeader) FieldRepeatedCount(fd *model.FieldDescriptor) (count int) {
126
127 for _, libfd := range self.rawHeaderFields {
128 if libfd == fd {
129 count++
130 }
131 }
132
133 return
134
135}
136
137func (self *DataHeader) Equal(other *DataHeader) (string, bool) {
138

Callers 2

processLineMethod · 0.80
exportColumnMajorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected