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

Functions

template<domain D :shared3p >
D xor_uint8 bl_strTrim (D xor_uint8 s)
 
template<domain D :shared3p >
BlStringVector< D > bl_strTrim (BlStringVector< D > s)
 

Detailed Description

Function for trimming a string.

Note
D - shared3p protection domain
Supported types - xor_uint8
Parameters
s- a vector of supported type
Returns
returns a string with excess bytes removed
Leakage
Leaks the length of the string

Function Documentation

◆ bl_strTrim() [1/2]

template<domain D :shared3p >
BlStringVector< D > bl_strTrim ( BlStringVector< D >  s)

Trim a bounded-length string vector.

Note
D - shared3p protection domain
Parameters
s- bounded-length string vector.
Returns
returns input string vector with excess bytes removed
Leakage
Leaks the length of the longest string

◆ bl_strTrim() [2/2]

template<domain D :shared3p >
D xor_uint8 bl_strTrim ( D xor_uint8  s)