Changeset 21741 in vbox
- Timestamp:
- Jul 21, 2009 12:13:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/string.h
r21722 r21741 256 256 * If a buffer was requested it must be freed using RTUtf16Free(). 257 257 * @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. 262 265 */ 263 266 RTDECL(int) RTStrToUniEx(const char *pszString, size_t cchString, PRTUNICP *ppaCps, size_t cCps, size_t *pcCps); … … 315 318 * If a buffer was requested it must be freed using RTUtf16Free(). 316 319 * @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. 321 327 */ 322 328 RTDECL(int) RTStrToUtf16Ex(const char *pszString, size_t cchString, PRTUTF16 *ppwsz, size_t cwc, size_t *pcwc); … … 1383 1389 * @param uBase The base of the representation used. 1384 1390 * 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) 1386 1392 */ 1387 1393 RTDECL(int) RTStrToInt8Ex(const char *pszValue, char **ppszNext, unsigned uBase, int8_t *pi8); … … 1671 1677 * If a buffer was requested it must be freed using RTUtf16Free(). 1672 1678 * @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. 1677 1686 */ 1678 1687 RTDECL(int) RTUtf16ToUtf8Ex(PCRTUTF16 pwszString, size_t cwcString, char **ppsz, size_t cch, size_t *pcch); … … 1745 1754 * @param cch The buffer size in chars (the type). This includes 1746 1755 * 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 value1750 * is only specified for the following two error1751 * codes. OnVERR_BUFFER_OVERFLOW and1752 * VERR_NO_STR_MEMORY it contains the required buffer1753 * 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. 1754 1763 */ 1755 1764 RTDECL(int) RTUtf16ToLatin1Ex(PCRTUTF16 pwszString, size_t cwcString, char **ppsz, size_t cch, size_t *pcch); … … 2018 2027 * @param cwc The buffer size in RTUTF16s. This includes the 2019 2028 * 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. 2026 2036 */ 2027 2037 RTDECL(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.