summaryrefslogtreecommitdiff
path: root/source/core/slang-string.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-string.h')
-rw-r--r--source/core/slang-string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h
index 2609b37ab..df1055795 100644
--- a/source/core/slang-string.h
+++ b/source/core/slang-string.h
@@ -717,6 +717,11 @@ namespace Slang
{
return Slang::GetHashCode((const char*)begin());
}
+
+ UnownedStringSlice getUnownedSlice() const
+ {
+ return StringRepresentation::asSlice(buffer);
+ }
};
class StringBuilder : public String