(lhs, rhs vector.Any)
| 873 | } |
| 874 | |
| 875 | func compareEQStringViewConst(lhs, rhs vector.Any) vector.Any { |
| 876 | ld := lhs.(*vector.View) |
| 877 | l := ld.Any.(*vector.String) |
| 878 | lx := ld.Index |
| 879 | rconst := vector.StringValue(rhs, 0) |
| 880 | n := lhs.Len() |
| 881 | out := vector.NewFalse(n) |
| 882 | for k := range n { |
| 883 | if l.Value(uint32(lx[k])) == rconst { |
| 884 | out.Set(k) |
| 885 | } |
| 886 | } |
| 887 | return out |
| 888 | } |
| 889 | |
| 890 | func compareEQStringConstFlat(lhs, rhs vector.Any) vector.Any { |
| 891 | lconst := vector.StringValue(lhs, 0) |
nothing calls this directly
no test coverage detected