VirtualBox

Changeset 70427 in vbox


Ignore:
Timestamp:
Jan 2, 2018 2:59:56 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120032
Message:

IPRT: Added RTUtf16NCmpAscii. [build fix]

File:
1 edited

Legend:

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

    r69105 r70427  
    382382 * Performs a case sensitive string compare between two UTF-16 strings.
    383383 *
    384  * @returns < 0 if the first string less than the second string.s
     384 * @returns < 0 if the first string less than the second string.
    385385 * @returns 0 if the first string identical to the second string.
    386386 * @returns > 0 if the first string greater than the second string.
     
    395395 * ASCII string.
    396396 *
    397  * @returns < 0 if the first string less than the second string.s
     397 * @returns < 0 if the first string less than the second string.
    398398 * @returns 0 if the first string identical to the second string.
    399399 * @returns > 0 if the first string greater than the second string.
     
    408408 * string.
    409409 *
    410  * @returns < 0 if the first string less than the second string.s
     410 * @returns < 0 if the first string less than the second string.
    411411 * @returns 0 if the first string identical to the second string.
    412412 * @returns > 0 if the first string greater than the second string.
     
    416416 */
    417417RTDECL(int) RTUtf16CmpUtf8(PCRTUTF16 pwsz1, const char *psz2);
     418
     419
     420/**
     421 * Performs a case sensitive and length limited string compare between two UTF-16 strings.
     422 *
     423 * @returns < 0 if the first string less than the second string.
     424 * @returns 0 if the first string identical to the second string.
     425 * @returns > 0 if the first string greater than the second string.
     426 * @param   pwsz1       First UTF-16 string. Null is allowed.
     427 * @param   pwsz2       Second UTF-16 string. Null is allowed.
     428 * @param   cwcMax1     Maximum number of characters (RTUTF16) from the first
     429 * @remark  This function will not make any attempt to validate the encoding.
     430 */
     431RTDECL(int) RTUtf16NCmp(PCRTUTF16 pwsz1, PCRTUTF16 pwsz2, size_t cwcMax);
     432
     433/**
     434 * Performs a case sensitive and length limited string compare between an UTF-16
     435 * string and a pure ASCII string.
     436 *
     437 * @returns < 0 if the first string less than the second string.
     438 * @returns 0 if the first string identical to the second string.
     439 * @returns > 0 if the first string greater than the second string.
     440 * @param   pwsz1       First UTF-16 string. Null is allowed.
     441 * @param   psz2        Second string, pure ASCII. Null is allowed.
     442 * @param   cwcMax      Maximum number of characters (RTUTF16) to compare.
     443 * @remark  This function will not make any attempt to validate the encoding.
     444 */
     445RTDECL(int) RTUtf16NCmpAscii(PCRTUTF16 pwsz1, const char *psz2, size_t cwcMax);
     446
     447/**
     448 * Performs a case sensitive and length limited string compare between an UTF-16
     449 * string and a UTF-8 string.
     450 *
     451 * @returns < 0 if the first string less than the second string.
     452 * @returns 0 if the first string identical to the second string.
     453 * @returns > 0 if the first string greater than the second string.
     454 * @param   pwsz1       First UTF-16 string. Null is allowed.
     455 * @param   psz2        Second string, UTF-8. Null is allowed.
     456 * @param   cwcMax1     Maximum number of UTF-16 characters (RTUTF16) from the
     457 *                      first string to compare.
     458 * @param   cchMax2     Maximum number of UTF-8 characters (char) from the
     459 *                      second string to compare.
     460 * @remarks NULL and empty strings are treated equally.
     461 */
     462RTDECL(int) RTUtf16NCmpUtf8(PCRTUTF16 pwsz1, const char *psz2, size_t cwcMax);
     463
    418464
    419465/**
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