VirtualBox

Ignore:
Timestamp:
Oct 12, 2010 12:08:26 PM (14 years ago)
Author:
vboxsync
Message:

Main: little API cleanup for the strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/ministring.h

    r31539 r33055  
    280280
    281281    /**
     282     * Converts the member string to upper case.
     283     *
     284     * @returns Reference to the object.
     285     */
     286    MiniString &upper()
     287    {
     288        if (length())
     289            ::RTStrToUpper(m_psz);
     290        return *this;
     291    }
     292
     293    /**
     294     * Converts the member string to lower case.
     295     *
     296     * @returns Reference to the object.
     297     */
     298    MiniString &lower()
     299    {
     300        if (length())
     301            ::RTStrToLower(m_psz);
     302        return *this;
     303    }
     304
     305    /**
    282306     * Index operator.
    283307     *
     
    487511     */
    488512    bool contains(const iprt::MiniString &that, CaseSensitivity cs = CaseSensitive) const;
     513
     514    /**
     515     * Returns a upper case copy of this string.
     516     *
     517     * @returns the upper case string copy.
     518     */
     519    MiniString toUpper() const
     520    {
     521        return MiniString(*this).upper();
     522    }
     523
     524    /**
     525     * Returns a lower case copy of this string.
     526     *
     527     * @returns the lower case string copy.
     528     */
     529    MiniString toLower() const
     530    {
     531        return MiniString(*this).lower();
     532    }
    489533
    490534    /**
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