VirtualBox

Changeset 80838 in vbox for trunk/include/VBox/com/string.h


Ignore:
Timestamp:
Sep 17, 2019 12:48:36 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133408
Message:

Main/glue: Added an erase method identical to the one in RTCString.

File:
1 edited

Legend:

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

    r80836 r80838  
    638638    }
    639639
    640 #if 0
    641640    /**
    642641     * Shortcut to append(), char variant.
     
    650649        return append(ch);
    651650    }
    652 #endif
    653651
    654652    /** @} */
     653
     654    /**
     655     * Erases a sequence from the string.
     656     *
     657     * @returns Reference to the object.
     658     * @param   offStart        Where in @a this string to start erasing (UTF-16
     659     *                          units, not codepoints).
     660     * @param   cwcLength       How much following @a offStart to erase (UTF-16
     661     *                          units, not codepoints).
     662     */
     663    Bstr &erase(size_t offStart = 0, size_t cwcLength = RTSTR_MAX) RT_NOEXCEPT;
     664
    655665
    656666#if defined(VBOX_WITH_XPCOM)
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