VirtualBox

Changeset 74708 in vbox for trunk


Ignore:
Timestamp:
Oct 9, 2018 9:22:34 AM (6 years ago)
Author:
vboxsync
Message:

iprt/string.h: %RMpa - to percent-encode (a)ll reserved characters.

Location:
trunk
Files:
2 edited

Legend:

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

    r74594 r74708  
    15301530 *                            it in quotes with proper JSON escaping.
    15311531 *
     1532 *      - \%RMpa            - Takes a string pointer (const char *) and outputs
     1533 *                            it percent-encoded (RFC-3986).  All reserved characters
     1534 *                            are encoded.
     1535 *
    15321536 *      - \%RMpf            - Takes a string pointer (const char *) and outputs
    15331537 *                            it percent-encoded (RFC-3986), form style.  This
  • trunk/src/VBox/Runtime/common/string/strformatrt.cpp

    r73914 r74708  
    14591459
    14601460                    *ppszFormat += 2;
    1461                     AssertMsgBreak(chVariant == 'p' || chVariant == 'q' || chVariant == 'f',
     1461                    AssertMsgBreak(chVariant == 'a' || chVariant == 'p' || chVariant == 'q' || chVariant == 'f',
    14621462                                   ("Invalid IPRT format type '%.10s'!\n", pszFormatOrg));
    14631463
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