重复列在表中的索引, 相对于重复列的数量
(field *HeaderField)
| 22 | |
| 23 | // 重复列在表中的索引, 相对于重复列的数量 |
| 24 | func (self *DataTable) ArrayFieldCount(field *HeaderField) (ret int) { |
| 25 | |
| 26 | for _, hf := range self.Headers { |
| 27 | if hf.TypeInfo != nil && hf.TypeInfo.FieldName == field.TypeInfo.FieldName { |
| 28 | |
| 29 | ret++ |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | return |
| 34 | } |
| 35 | |
| 36 | // 模板用,排除表头的数据索引 |
| 37 | func (self *DataTable) DataRowIndex() (ret []int) { |
no outgoing calls
no test coverage detected