VirtualBox

Changeset 68855 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 25, 2017 1:28:22 PM (7 years ago)
Author:
vboxsync
Message:

IPRT: fixed missing RTUtf16LittleToUtf8Tag prototype and incorrect export statement.

File:
1 edited

Legend:

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

    r68316 r68855  
    616616RTDECL(ssize_t) RTUtf16PurgeComplementSet(PRTUTF16 pwsz, PCRTUNICP puszValidPairs, char chReplacement);
    617617
     618
    618619/**
    619620 * Translate a UTF-16 string into a UTF-8 allocating the result buffer (default
     
    669670 */
    670671RTDECL(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 */
     701RTDECL(int)  RTUtf16LittleToUtf8Tag(PCRTUTF16 pwszString, char **ppszString, const char *pszTag);
     702
    671703
    672704/**
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