VirtualBox

Ignore:
Timestamp:
Jun 27, 2017 4:55:17 PM (7 years ago)
Author:
vboxsync
Message:

IPRT: Added const char * variant of RTCString::contains.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/ministring.cpp

    r67645 r67650  
    372372}
    373373
     374bool RTCString::contains(const char *pszNeedle, CaseSensitivity cs /*= CaseSensitive*/) const
     375{
     376    /** @todo r-bird: Not checking for NULL strings like startsWith does (and
     377     *        endsWith only does half way). */
     378    if (cs == CaseSensitive)
     379        return ::RTStrStr(m_psz, pszNeedle) != NULL;
     380    return ::RTStrIStr(m_psz, pszNeedle) != NULL;
     381}
     382
    374383int RTCString::toInt(uint64_t &i) const
    375384{
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