SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions

Functions

template<domain D :shared3p >
D int64 bl_strFind (D xor_uint8[[1]] needle, BlStringVector< D > haystack)
 

Detailed Description

Searches for a string in a string vector.

Note
D - shared3p protection domain
Parameters
needle- query string
haystack- string vector
Returns
returns the index of the first occurence of needle in haystack if found and -1 otherwise
Leakage
None

Function Documentation

◆ bl_strFind()

D int64 bl_strFind ( D xor_uint8[[1]]  needle,
BlStringVector< D >  haystack 
)