summaryrefslogtreecommitdiff
path: root/sal/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sal/inc')
-rw-r--r--sal/inc/rtl/ustrbuf.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index 98f1fc5ee911..b8bae09fb8b4 100644
--- a/sal/inc/rtl/ustrbuf.hxx
+++ b/sal/inc/rtl/ustrbuf.hxx
@@ -282,6 +282,19 @@ public:
}
/**
+ Checks if a string buffer is empty.
+
+ @return sal_True if the string buffer is empty;
+ sal_False, otherwise.
+
+ @since LibreOffice 4.0
+ */
+ bool isEmpty() const SAL_THROW(())
+ {
+ return pData->length == 0;
+ }
+
+ /**
Returns the current capacity of the String buffer.
The capacity