diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-03-02 19:14:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 19:14:18 -0500 |
| commit | cbba1f2ba451f31e910d59fb9efbadc5e370c095 (patch) | |
| tree | cf34d86713e2f915a42ce4ece11b7da82b9d4454 /source/core/slang-string.h | |
| parent | dbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff) | |
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'source/core/slang-string.h')
| -rw-r--r-- | source/core/slang-string.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 357eb726e..3fb612af3 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -93,7 +93,7 @@ namespace Slang return m_end; } - Index size() const + Index getLength() const { return Index(m_end - m_begin); } @@ -134,8 +134,8 @@ namespace Slang // Note that memcmp is undefined when passed in null ptrs, so if we want to handle // we need to cover that case. // Can only be nullptr if size is 0. - auto thisSize = size(); - auto otherSize = other.size(); + auto thisSize = getLength(); + auto otherSize = other.getLength(); if (thisSize != otherSize) { |
