约 50 个结果
在新选项卡中打开链接
  1. std::basic_string<CharT,Traits,Allocator>:: - cppreference.com

    Return value String containing the substring [pos, pos + count) or [pos, size()). Exceptions std::out_of_range if pos > size(). If an exception is thrown for any reason, these functions have no …

  2. std::basic_string_view<CharT,Traits>::substr - cppreference.com

    Returns a view of the substring [pos, pos + rlen), where rlen is the smaller of count and size() - pos.

  3. std::basic_string - cppreference.com

    Iterator invalidation References, pointers, and iterators referring to the elements of a basic_string may be invalidated by any standard library function taking a reference to non-const basic_string as an …

  4. cppreference.com

    What links here Related changes Upload file Special pages Printable version Permanent link Page information

  5. Strings library - cppreference.com

    Characters In the C++ standard library, a character is an object which, when treated sequentially, can represent text. The term means not only objects of character types, but also any value that can be …

  6. std::basic_string_view - cppreference.com

    The class template basic_string_view describes an object that can refer to a constant contiguous sequence of CharT with the first element of the sequence at position zero. For a basic_string_view …

  7. std::basic_string<CharT,Traits,Allocator>:: - cppreference.com

    Checks if the string contains the given substring. The substring may be one of the following:

  8. Regular expressions library (since C++11) - cppreference.com

    Regular expression grammars Patterns and replacement strings support the following regular expression grammars: Modified ECMAScript regular expression grammar. This is the default …

  9. Talk:cpp/string/basic string/substr - cppreference.com

    Returns a substring [pos, pos+count). If the requested substring extends past the end of the string, or if count == npos, the returned substring is [pos, size ()).

  10. strstr - cppreference.com

    1) 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.