VirtualBox

Changeset 59067 in vbox


Ignore:
Timestamp:
Dec 9, 2015 12:06:07 PM (9 years ago)
Author:
vboxsync
Message:

IPRT: Added RTStrStartsWith and RTStrIStartsWith.

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r58772 r59067  
    17701770# define RTStrHash1N                                    RT_MANGLER(RTStrHash1N)
    17711771# define RTStrICmp                                      RT_MANGLER(RTStrICmp)
     1772# define RTStrIStartsWith                               RT_MANGLER(RTStrIStartsWith)
    17721773# define RTStrIStr                                      RT_MANGLER(RTStrIStr)
    17731774# define RTStrIsCaseFoldable                            RT_MANGLER(RTStrIsCaseFoldable)
     
    18181819# define RTStrSpaceInsert                               RT_MANGLER(RTStrSpaceInsert)
    18191820# define RTStrSpaceRemove                               RT_MANGLER(RTStrSpaceRemove)
     1821# define RTStrStartsWith                                RT_MANGLER(RTStrStartsWith)
    18201822# define RTStrStr                                       RT_MANGLER(RTStrStr)
    18211823# define RTStrStrip                                     RT_MANGLER(RTStrStrip)
  • trunk/include/iprt/string.h

    r57941 r59067  
    21572157
    21582158/**
     2159 * Checks whether @a pszString starts with @a pszStart.
     2160 *
     2161 * @returns true / false.
     2162 * @param   pszString   The string to check.
     2163 * @param   pszStart    The start string to check for.
     2164 */
     2165RTDECL(int) RTStrStartsWith(const char *pszString, const char *pszStart);
     2166
     2167/**
     2168 * Checks whether @a pszString starts with @a pszStart, case insensitive.
     2169 *
     2170 * @returns true / false.
     2171 * @param   pszString   The string to check.
     2172 * @param   pszStart    The start string to check for.
     2173 */
     2174RTDECL(int) RTStrIStartsWith(const char *pszString, const char *pszStart);
     2175
     2176/**
    21592177 * Locates a case sensitive substring.
    21602178 *
  • trunk/src/VBox/Runtime/Makefile.kmk

    r59057 r59067  
    508508        common/string/RTStrNLenEx.cpp \
    509509        common/string/RTStrPrintHexBytes.cpp \
     510        common/string/RTStrStartsWith.cpp \
     511        common/string/RTStrIStartsWith.cpp \
    510512        common/string/RTStrStr.cpp \
    511513        common/string/RTUtf16Copy.cpp \
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