sal/inc/rtl/ustrbuf.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+)
New commits: commit 35df0bd6e3674ea861d06da54f5c016f10cedb18 Author: Chr. Rossmanith <chrrossman...@gmx.de> Date: Wed Feb 6 14:49:39 2013 +0100 add method isEmpty() to OUStringBuffer Change-Id: Ia11d97eebbb08e8058a5f919ed3db3029ce39a78 Reviewed-on: https://gerrit.libreoffice.org/2017 Reviewed-by: Norbert Thiebaud <nthieb...@gmail.com> Tested-by: Norbert Thiebaud <nthieb...@gmail.com> diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index 98f1fc5..b8bae09 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits