Catch::StringRef Class Reference
Detailed DescriptionA non-owning string class (similar to the forthcoming std::string_view) Note that, because a StringRef may be a substring of another string, it may not be null terminated. c_str() must return a null terminated string, however, and so the StringRef will internally take ownership (taking a copy), if necessary. In theory this ownership is not externally visible - but it does mean (substring) StringRefs should not be shared between threads. Member Typedef Documentation◆ size_type
Constructor & Destructor Documentation◆ StringRef() [1/6]
Referenced by Catch::operator""_sr(). ◆ StringRef() [2/6]
◆ StringRef() [3/6]
◆ StringRef() [4/6]
◆ StringRef() [5/6]
◆ StringRef() [6/6]
◆ ~StringRef()
Member Function Documentation◆ c_str()
◆ currentData()
◆ empty()
◆ numberOfCharacters()
◆ operator std::string()
◆ operator!=()◆ operator=()◆ operator==()◆ operator[]()
◆ size()
Referenced by Catch::operator""_sr(). ◆ substr()◆ swap()
Friends And Related Function Documentation◆ StringRefTestAccess
The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||