VirtualBox

Changeset 50793 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Mar 14, 2014 9:13:23 PM (11 years ago)
Author:
vboxsync
Message:

iprt: Added RTSTR_VALIDATE_ENCODING_EXACT_LENGTH for RTStrValidateEncodingEx and RTUtf16ValidateEncodingEx.

File:
1 edited

Legend:

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

    r50792 r50793  
    677677 * VERR_BUFFER_OVERFLOW will be returned if the check fails. */
    678678#define RTSTR_VALIDATE_ENCODING_ZERO_TERMINATED     RT_BIT_32(0)
     679/** Check that the string is exactly the given length.
     680 * If it terminates early, VERR_BUFFER_UNDERFLOW will be returned.  When used
     681 * together with RTSTR_VALIDATE_ENCODING_ZERO_TERMINATED, the given length must
     682 * include the terminator or VERR_BUFFER_OVERFLOW will be returned. */
     683#define RTSTR_VALIDATE_ENCODING_EXACT_LENGTH        RT_BIT_32(1)
    679684/** @} */
    680685
     
    684689 * @returns iprt status code.
    685690 * @param   psz         The string.
    686  * @param   cch         The max string length. Use RTSTR_MAX to process the entire string.
     691 * @param   cch         The max string length (/ size).  Use RTSTR_MAX to
     692 *                      process the entire string.
    687693 * @param   fFlags      Combination of RTSTR_VALIDATE_ENCODING_XXX flags.
    688694 */
     
    33583364 * @returns iprt status code.
    33593365 * @param   pwsz        The string.
    3360  * @param   cch         The max string length. Use RTSTR_MAX to process the entire string.
     3366 * @param   cwc         The max string length (/ size) in UTF-16 units. Use
     3367 *                      RTSTR_MAX to process the entire string.
    33613368 * @param   fFlags      Combination of RTSTR_VALIDATE_ENCODING_XXX flags.
    33623369 */
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