find_first_not_of overloads

Synopses

Declared in <folly/FBString.h>

Finds the first character not equal to a given character.

Finds the first character not equal to any character in another string.

size_type
find_first_not_of(
    basic_fbstring const& str,
    size_type pos = 0) const;

Finds the first character not in a null‐terminated set.

size_type
find_first_not_of(
    value_type const* s,
    size_type pos = 0) const;

Finds the first character not equal to any of the first n characters.

Return Value

The position of the first non‐match, or npos if none.

Parameters

Name

Description

c

The character to exclude.

pos

The position to start searching from.

str

The set of characters to exclude.

s

Pointer to the null‐terminated set of characters to exclude.

n

The number of characters in the set.

Created with MrDocs