std::basic_string - cppreference.com
https://en.cppreference.com/w/cpp/string/basic_string01.03.2022 · The class template basic_string stores and manipulates sequences of char-like objects, which are non-array objects of trivial standard-layout type. The class is dependent neither on the character type nor on the nature of operations on that type. The definitions of the operations are supplied via the Traits template parameter - a specialization of std::char_traits …
strstr - cppreference.com
en.cppreference.com › w › cJun 16, 2020 · strstr. Finds the first occurrence of the null-terminated byte string pointed to by substr in the null-terminated byte string pointed to by str. The terminating null characters are not compared. The behavior is undefined if either str or substr is not a pointer to a null-terminated byte string.
std::basic_string<CharT,Traits ... - cppreference.com
https://en.cppreference.com/w/cpp/string/basic_string/replace17.01.2022 · std::basic_string<CharT,Traits,Allocator>:: replace. Replaces the part of the string indicated by either [pos, pos + count) or [first, last) with a new string. 2) substring [pos2, pos2 + count2) of str, except if count2==npos or if would extend past str.size(), [pos2, str.size ()) is used. 3) characters in the range [first2, last2).