Search
C++ offers the ability to search in a string in many variations. Each variation exists in various overloaded forms.
The find algorithms support to:
- search for a character, a C String or a C++-string,
- search for a character from a C or C++-string,
- search forward and backward,
- search positive (does contain) or negative(does not contain) for characters from a C or C++-string,
- start the search at an arbitrary position in the string.
The arguments of all six variations of the find functions follow a similar pattern. The first argument is the text you are searching for. The second argument holds the start position of the search and the third the number of characters starting from the second argument...