mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 21:29:54 +01:00
Move all stringref function bodies out of line
This commit is contained in:
parent
a40add3153
commit
5ebbec7dab
@ -124,6 +124,18 @@ namespace Catch {
|
||||
auto StringRef::operator != ( StringRef const& other ) const noexcept -> bool {
|
||||
return !operator==( other );
|
||||
}
|
||||
|
||||
auto StringRef::operator[](size_type index) const noexcept -> char {
|
||||
return m_start[index];
|
||||
}
|
||||
|
||||
auto StringRef::empty() const noexcept -> bool {
|
||||
return m_size == 0;
|
||||
}
|
||||
|
||||
auto StringRef::size() const noexcept -> size_type {
|
||||
return m_size;
|
||||
}
|
||||
|
||||
auto operator + ( StringRef const& lhs, StringRef const& rhs ) -> String {
|
||||
StringBuilder buf;
|
||||
|
@ -51,17 +51,11 @@ namespace Catch {
|
||||
auto operator == ( StringRef const& other ) const noexcept -> bool;
|
||||
auto operator != ( StringRef const& other ) const noexcept -> bool;
|
||||
|
||||
auto operator[] ( size_type index ) const noexcept -> char {
|
||||
return m_start[index];
|
||||
}
|
||||
auto operator[] ( size_type index ) const noexcept -> char;
|
||||
|
||||
public: // named queries
|
||||
auto empty() const noexcept -> bool {
|
||||
return m_size == 0;
|
||||
}
|
||||
auto size() const noexcept -> size_type {
|
||||
return m_size;
|
||||
}
|
||||
auto empty() const noexcept -> bool;
|
||||
auto size() const noexcept -> size_type;
|
||||
auto c_str() const -> char const*;
|
||||
|
||||
public: // substrings and searches
|
||||
|
Loading…
Reference in New Issue
Block a user