VirtualBox

Changeset 21741 in vbox


Ignore:
Timestamp:
Jul 21, 2009 12:13:13 PM (16 years ago)
Author:
vboxsync
Message:

iprt/string.h: documentation correction for the extended conversion functions.

File:
1 edited

Legend:

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

    r21722 r21741  
    256256 *                          If a buffer was requested it must be freed using RTUtf16Free().
    257257 * @param   cCps            The number of code points in the unicode string. This includes the terminator.
    258  * @param   pcCps           Where to store the length of the translated string. (Optional)
    259  *                          This field will be updated even on failure, however the value is only
    260  *                          specified for the following two error codes. On VERR_BUFFER_OVERFLOW
    261  *                          and VERR_NO_STR_MEMORY it contains the required buffer space.
     258 * @param   pcCps           Where to store the length of the translated string,
     259 *                          excluding the terminator. (Optional)
     260 *
     261 *                          This may be set under some error conditions,
     262 *                          however, only for VERR_BUFFER_OVERFLOW and
     263 *                          VERR_NO_STR_MEMORY will it contain a valid string
     264 *                          length that can be used to resize the buffer.
    262265 */
    263266RTDECL(int)  RTStrToUniEx(const char *pszString, size_t cchString, PRTUNICP *ppaCps, size_t cCps, size_t *pcCps);
     
    315318 *                          If a buffer was requested it must be freed using RTUtf16Free().
    316319 * @param   cwc             The buffer size in RTUTF16s. This includes the terminator.
    317  * @param   pcwc            Where to store the length of the translated string. (Optional)
    318  *                          This field will be updated even on failure, however the value is only
    319  *                          specified for the following two error codes. On VERR_BUFFER_OVERFLOW
    320  *                          and VERR_NO_STR_MEMORY it contains the required buffer space.
     320 * @param   pcwc            Where to store the length of the translated string,
     321 *                          excluding the terminator. (Optional)
     322 *
     323 *                          This may be set under some error conditions,
     324 *                          however, only for VERR_BUFFER_OVERFLOW and
     325 *                          VERR_NO_STR_MEMORY will it contain a valid string
     326 *                          length that can be used to resize the buffer.
    321327 */
    322328RTDECL(int)  RTStrToUtf16Ex(const char *pszString, size_t cchString, PRTUTF16 *ppwsz, size_t cwc, size_t *pcwc);
     
    13831389 * @param   uBase       The base of the representation used.
    13841390 *                      If 0 the function will look for known prefixes before defaulting to 10.
    1385  * @param   pi8        Where to store the converted number. (optional)
     1391 * @param   pi8         Where to store the converted number. (optional)
    13861392 */
    13871393RTDECL(int) RTStrToInt8Ex(const char *pszValue, char **ppszNext, unsigned uBase, int8_t *pi8);
     
    16711677 *                          If a buffer was requested it must be freed using RTUtf16Free().
    16721678 * @param   cch             The buffer size in chars (the type). This includes the terminator.
    1673  * @param   pcch            Where to store the length of the translated string. (Optional)
    1674  *                          This field will be updated even on failure, however the value is only
    1675  *                          specified for the following two error codes. On VERR_BUFFER_OVERFLOW
    1676  *                          and VERR_NO_STR_MEMORY it contains the required buffer space.
     1679 * @param   pcch            Where to store the length of the translated string,
     1680 *                          excluding the terminator. (Optional)
     1681 *
     1682 *                          This may be set under some error conditions,
     1683 *                          however, only for VERR_BUFFER_OVERFLOW and
     1684 *                          VERR_NO_STR_MEMORY will it contain a valid string
     1685 *                          length that can be used to resize the buffer.
    16771686 */
    16781687RTDECL(int)  RTUtf16ToUtf8Ex(PCRTUTF16 pwszString, size_t cwcString, char **ppsz, size_t cch, size_t *pcch);
     
    17451754 * @param   cch             The buffer size in chars (the type). This includes
    17461755 *                          the terminator.
    1747  * @param   pcch            Where to store the length of the translated string.
    1748  *                          (Optional)
    1749  *                          This will be set even on failure, however the value
    1750  *                          is only specified for the following two error
    1751  *                          codes. On VERR_BUFFER_OVERFLOW and
    1752  *                          VERR_NO_STR_MEMORY it contains the required buffer
    1753  *                          space.
     1756 * @param   pcch            Where to store the length of the translated string,
     1757 *                          excluding the terminator. (Optional)
     1758 *
     1759 *                          This may be set under some error conditions,
     1760 *                          however, only for VERR_BUFFER_OVERFLOW and
     1761 *                          VERR_NO_STR_MEMORY will it contain a valid string
     1762 *                          length that can be used to resize the buffer.
    17541763 */
    17551764RTDECL(int)  RTUtf16ToLatin1Ex(PCRTUTF16 pwszString, size_t cwcString, char **ppsz, size_t cch, size_t *pcch);
     
    20182027 * @param   cwc             The buffer size in RTUTF16s. This includes the
    20192028 *                          terminator.
    2020  * @param   pcwc            Where to store the length of the translated
    2021  *                          string. (Optional) This will be set even on failure,
    2022  *                          however the value is only specified for the
    2023  *                          following two error codes. On VERR_BUFFER_OVERFLOW
    2024  *                          and VERR_NO_STR_MEMORY it contains the required
    2025  *                          buffer space.
     2029 * @param   pcwc            Where to store the length of the translated string,
     2030 *                          excluding the terminator. (Optional)
     2031 *
     2032 *                          This may be set under some error conditions,
     2033 *                          however, only for VERR_BUFFER_OVERFLOW and
     2034 *                          VERR_NO_STR_MEMORY will it contain a valid string
     2035 *                          length that can be used to resize the buffer.
    20262036 */
    20272037RTDECL(int) RTLatin1ToUtf16Ex(const char *pszString, size_t cchString, PRTUTF16 *ppwsz, size_t cwc, size_t *pcwc);
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