From cbba1f2ba451f31e910d59fb9efbadc5e370c095 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 2 Mar 2020 19:14:18 -0500 Subject: Renamed UnownedStringSlice::size to getLength to make match String. (#1254) --- source/core/slang-string.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/core/slang-string.cpp') diff --git a/source/core/slang-string.cpp b/source/core/slang-string.cpp index 22049f82d..df711218c 100644 --- a/source/core/slang-string.cpp +++ b/source/core/slang-string.cpp @@ -74,8 +74,8 @@ namespace Slang bool UnownedStringSlice::startsWith(UnownedStringSlice const& other) const { - UInt thisSize = size(); - UInt otherSize = other.size(); + UInt thisSize = getLength(); + UInt otherSize = other.getLength(); if (otherSize > thisSize) return false; @@ -91,8 +91,8 @@ namespace Slang bool UnownedStringSlice::endsWith(UnownedStringSlice const& other) const { - UInt thisSize = size(); - UInt otherSize = other.size(); + UInt thisSize = getLength(); + UInt otherSize = other.getLength(); if (otherSize > thisSize) return false; -- cgit v1.2.3