MCPcopy Create free account
hub / github.com/cogentcore/core / RowsByString

Method RowsByString

tensor/table/indexview.go:498–505  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

496// returns nil if name invalid -- see also Try.
497// Use named args for greater clarity.
498func (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).

Callers

nothing calls this directly

Calls 2

RowsByStringIndexMethod · 0.95
ColumnIndexMethod · 0.80

Tested by

no test coverage detected