Changeset 50792 in vbox for trunk/include
- Timestamp:
- Mar 14, 2014 8:17:09 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92817
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r50790 r50792 1765 1765 # define RTUtf16GetCpInternal RT_MANGLER(RTUtf16GetCpInternal) 1766 1766 # define RTUtf16ICmp RT_MANGLER(RTUtf16ICmp) 1767 # define RTUtf16IsValidEncoding RT_MANGLER(RTUtf16IsValidEncoding) 1767 1768 # define RTUtf16Len RT_MANGLER(RTUtf16Len) 1768 1769 # define RTUtf16LocaleICmp RT_MANGLER(RTUtf16LocaleICmp) … … 1775 1776 # define RTUtf16ToUtf8ExTag RT_MANGLER(RTUtf16ToUtf8ExTag) 1776 1777 # define RTUtf16ToUtf8Tag RT_MANGLER(RTUtf16ToUtf8Tag) 1778 # define RTUtf16ValidateEncoding RT_MANGLER(RTUtf16ValidateEncoding) 1779 # define RTUtf16ValidateEncodingEx RT_MANGLER(RTUtf16ValidateEncodingEx) 1777 1780 # define RTUuidClear RT_MANGLER(RTUuidClear) 1778 1781 # define RTUuidCompare RT_MANGLER(RTUuidCompare) -
trunk/include/iprt/string.h
r46010 r50792 672 672 RTDECL(int) RTStrValidateEncoding(const char *psz); 673 673 674 /** @name Flags for RTStrValidateEncodingEx 674 /** @name Flags for RTStrValidateEncodingEx and RTUtf16ValidateEncodingEx 675 675 */ 676 676 /** Check that the string is zero terminated within the given size. … … 685 685 * @param psz The string. 686 686 * @param cch The max string length. Use RTSTR_MAX to process the entire string. 687 * @param fFlags Reserved for future. Pass 0.687 * @param fFlags Combination of RTSTR_VALIDATE_ENCODING_XXX flags. 688 688 */ 689 689 RTDECL(int) RTStrValidateEncodingEx(const char *psz, size_t cch, uint32_t fFlags); … … 3346 3346 3347 3347 /** 3348 * Validates the UTF-16 encoding of the string. 3349 * 3350 * @returns iprt status code. 3351 * @param pwsz The string. 3352 */ 3353 RTDECL(int) RTUtf16ValidateEncoding(PCRTUTF16 pwsz); 3354 3355 /** 3356 * Validates the UTF-16 encoding of the string. 3357 * 3358 * @returns iprt status code. 3359 * @param pwsz The string. 3360 * @param cch The max string length. Use RTSTR_MAX to process the entire string. 3361 * @param fFlags Combination of RTSTR_VALIDATE_ENCODING_XXX flags. 3362 */ 3363 RTDECL(int) RTUtf16ValidateEncodingEx(PCRTUTF16 pwsz, size_t cwc, uint32_t fFlags); 3364 3365 /** 3366 * Checks if the UTF-16 encoding is valid. 3367 * 3368 * @returns true / false. 3369 * @param pwsz The string. 3370 */ 3371 RTDECL(bool) RTUtf16IsValidEncoding(PCRTUTF16 pwsz); 3372 3373 /** 3348 3374 * Sanitise a (valid) UTF-16 string by replacing all characters outside a white 3349 3375 * list in-place by an ASCII replacement character. Multi-byte characters will
Note:
See TracChangeset
for help on using the changeset viewer.