summaryrefslogtreecommitdiffstats
path: root/source/core/slang-io.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-03-02 19:14:18 -0500
committerGitHub <noreply@github.com>2020-03-02 19:14:18 -0500
commitcbba1f2ba451f31e910d59fb9efbadc5e370c095 (patch)
treecf34d86713e2f915a42ce4ece11b7da82b9d4454 /source/core/slang-io.cpp
parentdbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff)
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'source/core/slang-io.cpp')
-rw-r--r--source/core/slang-io.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp
index 6cff8e1c9..e02bbb89f 100644
--- a/source/core/slang-io.cpp
+++ b/source/core/slang-io.cpp
@@ -235,7 +235,7 @@ namespace Slang
ioBuilder.append(path);
return;
}
- if (path.size() > 0)
+ if (path.getLength() > 0)
{
// If ioBuilder doesn't end in a delimiter, add one
if (!isDelimiter(ioBuilder[ioBuilder.getLength() - 1]))
@@ -278,7 +278,7 @@ namespace Slang
/* static */ bool Path::isDriveSpecification(const UnownedStringSlice& element)
{
- switch (element.size())
+ switch (element.getLength())
{
case 0:
{
@@ -306,14 +306,14 @@ namespace Slang
/* static */bool Path::isAbsolute(const UnownedStringSlice& path)
{
- if (path.size() > 0 && isDelimiter(path[0]))
+ if (path.getLength() > 0 && isDelimiter(path[0]))
{
return true;
}
#if SLANG_WINDOWS_FAMILY
// Check for the \\ network drive style
- if (path.size() >= 2 && path[0] == '\\' && path[1] == '\\')
+ if (path.getLength() >= 2 && path[0] == '\\' && path[1] == '\\')
{
return true;
}
@@ -348,7 +348,7 @@ namespace Slang
}
// Okay if the end is empty. And we aren't with a spec like // or c:/ , then drop the final slash
- if (splitOut.getCount() > 1 && splitOut.getLast().size() == 0)
+ if (splitOut.getCount() > 1 && splitOut.getLast().getLength() == 0)
{
if (splitOut.getCount() == 2 && isDriveSpecification(splitOut[0]))
{