SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D :shared3p >
D bool kl_strContains (D xor_uint8 str, D xor_uint8 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()

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