fn() startsWith
Check whether a string is a prefix of another string.

Defined in <seqan/sequence.h>
Signature bool startsWith(str, prefix);


str The string to check (A SegmentableConcept).
prefix The prefix to check for (A ContainerConcept).

Return Values

bool true if prefix is a prefix of str.

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.