diff options
| author | Felix Geyer <debfx-pkg@fobos.de> | 2010-06-25 23:32:17 +0200 |
|---|---|---|
| committer | Felix Geyer <debfx-pkg@fobos.de> | 2010-06-25 23:32:17 +0200 |
| commit | 3cc524b669caddac0b3c8c8fd0b57eaff7f490eb (patch) | |
| tree | 8f1ab6c92e9e9b5c24ffa2982cc11579a10a1764 /include/iprt/cpp | |
| parent | 4fc7368fb7c2191d0415356bc517ad2be123cd3c (diff) | |
| download | virtualbox-3cc524b669caddac0b3c8c8fd0b57eaff7f490eb.tar.gz | |
Imported Upstream version 3.2.6-dfsgupstream/3.2.6-dfsg
Diffstat (limited to 'include/iprt/cpp')
| -rw-r--r-- | include/iprt/cpp/ministring.h | 23 |
1 files changed, 20 insertions, 3 deletions
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 { |
