VirtualBox

Changeset 34242 in vbox


Ignore:
Timestamp:
Nov 22, 2010 2:27:48 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67990
Message:

com/string.h: Added Bstr::isNotEmpty().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r33675 r34242  
    210210    bool isEmpty() const { return m_bstr == NULL || *m_bstr == 0; }
    211211
     212    /**
     213     * Returns true if the member string has a length of one or more.
     214     *
     215     * @returns true if not empty, false if empty (NULL or "").
     216     */
     217    bool isNotEmpty() const { return m_bstr != NULL && *m_bstr != 0; }
     218
    212219    size_t length() const { return isEmpty() ? 0 : ::RTUtf16Len((PRTUTF16)m_bstr); }
    213220
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette