diff options
| author | Martin Hořeňovský | 2017-07-27 10:46:18 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-07-27 11:32:04 +0200 |
| commit | 5ebbec7dabf4ed7bef108d6d01cc29b4b096c99b (patch) | |
| tree | 2979e0013bc1c72af68215063626e3ca7d1352bf /include/internal/catch_stringref.cpp | |
| parent | a40add315382ef4673279d5c71282715ff7b2247 (diff) | |
| download | catch3-5ebbec7dabf4ed7bef108d6d01cc29b4b096c99b.tar.gz | |
Move all stringref function bodies out of line
Diffstat (limited to 'include/internal/catch_stringref.cpp')
| -rw-r--r-- | include/internal/catch_stringref.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/internal/catch_stringref.cpp b/include/internal/catch_stringref.cpp index 7cf75a75..9572c56f 100644 --- a/include/internal/catch_stringref.cpp +++ b/include/internal/catch_stringref.cpp @@ -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; |