Changeset 70427 in vbox
- Timestamp:
- Jan 2, 2018 2:59:56 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120032
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/utf16.h
r69105 r70427 382 382 * Performs a case sensitive string compare between two UTF-16 strings. 383 383 * 384 * @returns < 0 if the first string less than the second string. s384 * @returns < 0 if the first string less than the second string. 385 385 * @returns 0 if the first string identical to the second string. 386 386 * @returns > 0 if the first string greater than the second string. … … 395 395 * ASCII string. 396 396 * 397 * @returns < 0 if the first string less than the second string. s397 * @returns < 0 if the first string less than the second string. 398 398 * @returns 0 if the first string identical to the second string. 399 399 * @returns > 0 if the first string greater than the second string. … … 408 408 * string. 409 409 * 410 * @returns < 0 if the first string less than the second string. s410 * @returns < 0 if the first string less than the second string. 411 411 * @returns 0 if the first string identical to the second string. 412 412 * @returns > 0 if the first string greater than the second string. … … 416 416 */ 417 417 RTDECL(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 */ 431 RTDECL(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 */ 445 RTDECL(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 */ 462 RTDECL(int) RTUtf16NCmpUtf8(PCRTUTF16 pwsz1, const char *psz2, size_t cwcMax); 463 418 464 419 465 /**
Note:
See TracChangeset
for help on using the changeset viewer.