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_strEqPrefixes (D xor_uint8 str, D xor_uint8 pat)
 

Detailed Description

Function for checking whether a pattern is a substring of the input string.

Note
D - shared3p protection domain
Supported types - xor_uint8
Precondition
the pattern is not longer than the input string
Parameters
str- the input string vector of supported type
pat- the substring to look for
Returns
returns a boolean vector indicating if the pattern is a substring of the input string in that position
Leakage
None

Function Documentation

◆ kl_strEqPrefixes()

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