summaryrefslogtreecommitdiff
path: root/source/core/slang-string-slice-pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-string-slice-pool.h')
-rw-r--r--source/core/slang-string-slice-pool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/slang-string-slice-pool.h b/source/core/slang-string-slice-pool.h
index c9c8b8db9..08cd819ab 100644
--- a/source/core/slang-string-slice-pool.h
+++ b/source/core/slang-string-slice-pool.h
@@ -50,6 +50,8 @@ public:
/// Convert a handle to and index. (A handle is just an index!)
static int asIndex(Handle handle) { return int(handle); }
+ /// Returns true if the handle is to a slice that contains characters (ie not null or empty)
+ static bool hasContents(Handle handle) { return int(handle) >= kNumDefaultHandles; }
/// Ctor
StringSlicePool();