diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-02-06 14:49:39 +0100 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-06 17:12:08 +0000 |
commit | 35df0bd6e3674ea861d06da54f5c016f10cedb18 (patch) | |
tree | e735b7988637955c3c923d8587c6e2d986f3dd7b /sal/inc | |
parent | e7b1c7954e159197ad414e8aff7e7a04c30da29c (diff) |
add method isEmpty() to OUStringBuffer
Change-Id: Ia11d97eebbb08e8058a5f919ed3db3029ce39a78
Reviewed-on: https://gerrit.libreoffice.org/2017
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/ustrbuf.hxx | 13 |
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 |