Class StringRef¶
Defined in File catch.hpp
Class Documentation¶
-
class
Catch
::
StringRef
¶ A 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.
Public Functions
-
constexpr
StringRef
() noexcept = default¶
-
StringRef
(char const *rawChars) noexcept¶
-
StringRef
(std::string const &stdString) noexcept¶
-
operator std::string
() const¶
-
constexpr auto
empty
() const noexcept -> bool¶
-
auto
c_str
() const -> char const*¶
-
auto
data
() const noexcept -> char const*¶
-
constexpr auto
isNullTerminated
() const noexcept -> bool¶
-
constexpr const_iterator
begin
() const¶
-
constexpr const_iterator
end
() const¶
-
constexpr