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

Functions

template<domain D :shared3p >
D xor_uint8 bl_strTrim (D xor_uint8[[1]] 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]

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]

D xor_uint8 bl_strTrim ( D xor_uint8[[1]]  s)