contains overloads

Synopses

Declared in <llvm/ADT/SmallString.h>

contains ‐ Check if Other is a substring of this string.

[[nodiscard]]
bool
contains(StringRef Other) const;

contains ‐ Check if this string contains the character C.

[[nodiscard]]
bool
contains(char C) const;

Return Value

  • True if Other is a substring of this string.

  • True if C occurs in this string.

Note

The return value should not be discarded.

Parameters

Name

Description

Other

Substring to search for.

C

Character to search for.

Created with MrDocs