Changeset 68855 in vbox
- Timestamp:
- Sep 25, 2017 1:28:22 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 118109
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/utf16.h
r68316 r68855 616 616 RTDECL(ssize_t) RTUtf16PurgeComplementSet(PRTUTF16 pwsz, PCRTUNICP puszValidPairs, char chReplacement); 617 617 618 618 619 /** 619 620 * Translate a UTF-16 string into a UTF-8 allocating the result buffer (default … … 669 670 */ 670 671 RTDECL(int) RTUtf16BigToUtf8Tag(PCRTUTF16 pwszString, char **ppszString, const char *pszTag); 672 673 /** 674 * Translate a UTF-16LE string into a UTF-8 allocating the result buffer 675 * (default tag). 676 * 677 * This differs from RTUtf16ToUtf8 in that the input is always a 678 * little-endian string. 679 * 680 * @returns iprt status code. 681 * @param pwszString UTF-16LE string to convert. 682 * @param ppszString Receives pointer of allocated UTF-8 string on 683 * success, and is always set to NULL on failure. 684 * The returned pointer must be freed using RTStrFree(). 685 */ 686 #define RTUtf16LittleToUtf8(pwszString, ppszString) RTUtf16LittleToUtf8Tag((pwszString), (ppszString), RTSTR_TAG) 687 688 /** 689 * Translate a UTF-16LE string into a UTF-8 allocating the result buffer. 690 * 691 * This differs from RTUtf16ToUtf8Tag in that the input is always a 692 * little-endian string. 693 * 694 * @returns iprt status code. 695 * @param pwszString UTF-16LE string to convert. 696 * @param ppszString Receives pointer of allocated UTF-8 string on 697 * success, and is always set to NULL on failure. 698 * The returned pointer must be freed using RTStrFree(). 699 * @param pszTag Allocation tag used for statistics and such. 700 */ 701 RTDECL(int) RTUtf16LittleToUtf8Tag(PCRTUTF16 pwszString, char **ppszString, const char *pszTag); 702 671 703 672 704 /** -
trunk/src/VBox/Runtime/common/string/utf-16.cpp
r68316 r68855 857 857 return rc; 858 858 } 859 RT_EXPORT_SYMBOL(RTUtf16 BigToUtf8Tag);859 RT_EXPORT_SYMBOL(RTUtf16LittleToUtf8Tag); 860 860 861 861
Note:
See TracChangeset
for help on using the changeset viewer.