[#absl-StartsWith] = xref:absl.adoc[absl]::StartsWith :relfileprefix: ../ :mrdocs: Returns whether a given string `text` begins with `prefix`. == Synopsis Declared in `<absl/strings/match.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool StartsWith( std::string_view text, std::string_view prefix) noexcept; ---- == Return Value `true` if `text` begins with `prefix`, `false` otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *text* | The string to test. | *prefix* | The prefix to look for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#