From 3cc524b669caddac0b3c8c8fd0b57eaff7f490eb Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 25 Jun 2010 23:32:17 +0200 Subject: Imported Upstream version 3.2.6-dfsg --- include/iprt/cpp/ministring.h | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'include/iprt/cpp') diff --git a/include/iprt/cpp/ministring.h b/include/iprt/cpp/ministring.h index 381b2ee1e..a1ae28f0d 100644 --- a/include/iprt/cpp/ministring.h +++ b/include/iprt/cpp/ministring.h @@ -316,18 +316,35 @@ public: } /** - * Returns true if the member string has no length. - * This is true for instances created from both NULL and "" input strings. + * Returns @c true if the member string has no length. + * + * This is @c true for instances created from both NULL and "" input + * strings. * * This states nothing about how much memory might be allocated. * - * @returns true if empty, false if not. + * @returns @c true if empty, @c false if not. */ bool isEmpty() const { return length() == 0; } + /** + * Returns @c false if the member string has no length. + * + * This is @c false for instances created from both NULL and "" input + * strings. + * + * This states nothing about how much memory might be allocated. + * + * @returns @c false if empty, @c true if not. + */ + bool isNotEmpty() const + { + return length() != 0; + } + /** Case sensitivity selector. */ enum CaseSensitivity { -- cgit v1.2.3