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

Functions

template<domain D :shared3p >
D bool bl_strContains (D xor_uint8[[1]] str, D xor_uint8[[1]] pat)
 

Detailed Description

function for checking if a string contains the given pattern

Note
D - shared3p protection domain
Supported types - xor_uint8
Parameters
str- input string vector of supported type
pat- the pattern to look for
Returns
returns true if the given pattern is a substring of the given string
Leakage
None

Function Documentation

◆ bl_strContains()

D bool bl_strContains ( D xor_uint8[[1]]  str,
D xor_uint8[[1]]  pat 
)