Skip to content

Commit 016bdfd

Browse files
committed
#183-Implement method CppStringT::contains_n()
Modified doxygen comments.
1 parent c269f62 commit 016bdfd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cpp-strings/cppstrings.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ namespace pcs // i.e. "pythonic c++ strings"
459459
//--- contains() --------------------------------------
460460
/** \brief Returns true if this string contains the passed string, or false otherwise.
461461
*
462-
* This is the c++ implementation of Python keyword 'in' applied to strings.
462+
* This is a c++ implementation of Python keyword 'in' applied to strings.
463463
*/
464464
constexpr bool contains(const CppStringT& substr) const noexcept
465465
{
@@ -516,7 +516,10 @@ namespace pcs // i.e. "pythonic c++ strings"
516516

517517

518518
//--- contains_n() ------------------------------------
519-
/** Returns true if the passed string is found within the slice str[start:start+count-1], or false otherwise. */
519+
/** Returns true if the passed string is found within the slice str[start:start+count-1], or false otherwise.
520+
*
521+
* This is a c++ implementation of Python keyword 'in' applied to Python sliced strings.
522+
*/
520523
inline constexpr bool contains_n(const CppStringT& sub, const size_type start, const size_type count = -1) const noexcept
521524
{
522525
try {

0 commit comments

Comments
 (0)