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

Functions

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

Detailed Description

Function for checking whether a string contains a pattern or not.

Note
D - shared3p protection domain
Supported types - xor_uint8
Precondition
the needle is not longer than the haystack
Parameters
str- the haystack
pat- the needle
Returns
returns if the needle is found within the haystack
Leakage
None

Function Documentation

◆ kl_strContains()

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