RowsByString returns the list of *our indexes* whose row in the table has given string value in given column name (de-reference our indexes to get actual row). if contains, only checks if row contains string; if ignoreCase, ignores case. returns nil if name invalid -- see also Try. Use named args fo
(column string, str string, contains, ignoreCase bool)
| 496 | // returns nil if name invalid -- see also Try. |
| 497 | // Use named args for greater clarity. |
| 498 | func (ix *IndexView) RowsByString(column string, str string, contains, ignoreCase bool) []int { |
| 499 | dt := ix.Table |
| 500 | ci := dt.ColumnIndex(column) |
| 501 | if ci < 0 { |
| 502 | return nil |
| 503 | } |
| 504 | return ix.RowsByStringIndex(ci, str, contains, ignoreCase) |
| 505 | } |
| 506 | |
| 507 | // RowsByStringTry returns the list of *our indexes* whose row in the table has |
| 508 | // given string value in given column name (de-reference our indexes to get actual row). |
nothing calls this directly
no test coverage detected