VirtualBox

Changeset 95973 in vbox for trunk/include


Ignore:
Timestamp:
Aug 2, 2022 12:49:13 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/RTCString: Added find_first_of aliases for better std::string compatibility. bugref:10261

File:
1 edited

Legend:

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

    r95336 r95973  
    10951095     */
    10961096    size_t find(const char *pszNeedle, size_t offStart = 0) const RT_NOEXCEPT;
     1097    size_t find_first_of(const char *pszNeedle, size_t offStart = 0) const RT_NOEXCEPT
     1098    { return find(pszNeedle, offStart); }
    10971099
    10981100    /**
     
    11271129     */
    11281130    size_t find(const RTCString &rStrNeedle, size_t offStart = 0) const RT_NOEXCEPT;
     1131    size_t find_first_of(const RTCString &rStrNeedle, size_t offStart = 0) const RT_NOEXCEPT
     1132    { return find(rStrNeedle, offStart); }
    11291133
    11301134    /**
     
    11411145     */
    11421146    size_t find(char chNeedle, size_t offStart = 0) const RT_NOEXCEPT;
     1147    size_t find_first_of(char chNeedle, size_t offStart = 0) const RT_NOEXCEPT
     1148    { return find(chNeedle, offStart); }
    11431149
    11441150    /**
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