VirtualBox

Changeset 66361 in vbox for trunk/include


Ignore:
Timestamp:
Mar 30, 2017 1:44:39 PM (8 years ago)
Author:
vboxsync
Message:

IPRT: Adding RTStrICmpAscii (mirrors RTUtf16ICmpAscii).

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r65579 r66361  
    18381838# define RTStrHash1N                                    RT_MANGLER(RTStrHash1N)
    18391839# define RTStrICmp                                      RT_MANGLER(RTStrICmp)
     1840# define RTStrICmpAscii                                 RT_MANGLER(RTStrICmpAscii)
    18401841# define RTStrIStartsWith                               RT_MANGLER(RTStrIStartsWith)
    18411842# define RTStrIStr                                      RT_MANGLER(RTStrIStr)
  • trunk/include/iprt/string.h

    r66284 r66361  
    22122212
    22132213/**
     2214 * Performs a case insensitive string compare between a UTF-8 string and a 7-bit
     2215 * ASCII string.
     2216 *
     2217 * This is potentially faster than RTStrICmp and drags in less dependencies.  It
     2218 * is really handy for hardcoded inputs.
     2219 *
     2220 * If the string encoding is invalid the function will assert (strict builds)
     2221 * and use RTStrCmp for the remainder of the string.
     2222 *
     2223 * @returns < 0 if the first string less than the second string.
     2224 * @returns 0 if the first string identical to the second string.
     2225 * @returns > 0 if the first string greater than the second string.
     2226 * @param   psz1        First UTF-8 string. Null is allowed.
     2227 * @param   psz2        Second string, 7-bit ASCII. Null is allowed.
     2228 * @sa      RTUtf16ICmpAscii
     2229 */
     2230RTDECL(int) RTStrICmpAscii(const char *psz1, const char *psz2);
     2231
     2232/**
    22142233 * Checks whether @a pszString starts with @a pszStart.
    22152234 *
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