VirtualBox

Changeset 40123 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Feb 14, 2012 11:16:58 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76267
Message:

Runtime/strings: add Utf-8 and Utf-16 sanitising to a white list of characters. Use ranges not individual code points for the white list.

File:
1 edited

Legend:

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

    r40091 r40123  
    714714 *          may be partially processed.
    715715 * @param   psz            The string to sanitise.
    716  * @param   puszValidSet   A zero-terminated array of the Unicode code points
    717  *                         in the white list.
     716 * @param   puszValidSets  A zero-terminated array of pairs of Unicode points.
     717 *                         Each pair is the start and end point of a range,
     718 *                         and the union of these ranges forms the white list.
    718719 * @param   chReplacement  The ASCII replacement character.
    719720 */
     
    33283329 *          may be partially processed.
    33293330 * @param   pwsz           The string to sanitise.
    3330  * @param   puszValidSet   A zero-terminated array of the Unicode code points
    3331  *                         in the white list.
     3331 * @param   puszValidSets  A zero-terminated array of pairs of Unicode points.
     3332 *                         Each pair is the start and end point of a range,
     3333 *                         and the union of these ranges forms the white list.
    33323334 * @param   chReplacement  The ASCII replacement character.
    33333335 */
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