VirtualBox

Changeset 30873 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Jul 16, 2010 10:35:48 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63704
Message:

IPRT: add MiniString::operator+=()

File:
1 edited

Legend:

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

    r30749 r30873  
    244244
    245245    /**
     246     * Shortcut to append(), MiniString variant.
     247     *
     248     * @param that              The string to append.
     249     *
     250     * @returns Reference to the object.
     251     */
     252    MiniString &operator+=(const MiniString &that)
     253    {
     254        return append(that);
     255    }
     256
     257    /**
     258     * Shortcut to append(), const char* variant.
     259     *
     260     * @param pszThat           The C string to append.
     261     *
     262     * @returns                 Reference to the object.
     263     */
     264    MiniString &operator+=(const char *pszThat)
     265    {
     266        return append(pszThat);
     267    }
     268
     269    /**
     270     * Shortcut to append(), char variant.
     271     *
     272     * @param pszThat           The character to append.
     273     *
     274     * @returns                 Reference to the object.
     275     */
     276    MiniString &operator+=(char c)
     277    {
     278        return append(c);
     279    }
     280
     281    /**
    246282     * Index operator.
    247283     *
Note: See TracChangeset for help on using the changeset viewer.

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