Changeset 33678 in vbox
- Timestamp:
- Nov 2, 2010 10:30:46 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
-
include/iprt/string.h (modified) (1 diff)
-
src/VBox/Runtime/Makefile.kmk (modified) (4 diffs)
-
src/VBox/Runtime/common/string/RTStrCat.cpp (added)
-
src/VBox/Runtime/common/string/RTStrCatEx.cpp (added)
-
src/VBox/Runtime/common/string/RTStrCopyEx.cpp (modified) (1 diff)
-
src/VBox/Runtime/testcase/Makefile.kmk (modified) (2 diffs)
-
src/VBox/Runtime/testcase/tstRTStrCatCopy.cpp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/string.h
r33540 r33678 2041 2041 2042 2042 /** 2043 * String concatenation with overflow handling. 2044 * 2045 * @retval VINF_SUCCESS on success. 2046 * @retval VERR_BUFFER_OVERFLOW if the destination buffer is too small. The 2047 * buffer will contain as much of the string as it can hold, fully 2048 * terminated. 2049 * 2050 * @param pszDst The destination buffer. 2051 * @param cbDst The size of the destination buffer (in bytes). 2052 * @param pszSrc The source string. NULL is not OK. 2053 */ 2054 RTDECL(int) RTStrCat(char *pszDst, size_t cbDst, const char *pszSrc); 2055 2056 /** 2057 * String concatenation with overflow handling. 2058 * 2059 * @retval VINF_SUCCESS on success. 2060 * @retval VERR_BUFFER_OVERFLOW if the destination buffer is too small. The 2061 * buffer will contain as much of the string as it can hold, fully 2062 * terminated. 2063 * 2064 * @param pszDst The destination buffer. 2065 * @param cbDst The size of the destination buffer (in bytes). 2066 * @param pszSrc The source string. NULL is not OK. 2067 * @param cchSrcMax The maximum number of chars (not code points) to 2068 * copy from the source string, not counting the 2069 * terminator as usual. 2070 */ 2071 RTDECL(int) RTStrCatEx(char *pszDst, size_t cbDst, const char *pszSrc, size_t cchSrcMax); 2072 2073 /** 2043 2074 * Performs a case sensitive string compare between two UTF-8 strings. 2044 2075 * -
trunk/src/VBox/Runtime/Makefile.kmk
r33602 r33678 312 312 common/sort/RTSortApvIsSorted.cpp \ 313 313 common/sort/shellsort.cpp \ 314 common/string/RTStrCat.cpp \ 315 common/string/RTStrCatEx.cpp \ 314 316 common/string/RTStrCmp.cpp \ 315 317 common/string/RTStrConvertHexBytes.cpp \ … … 962 964 common/path/RTPathStripFilename.cpp \ 963 965 common/path/RTPathStripTrailingSlash.cpp \ 966 common/string/RTStrCat.cpp \ 967 common/string/RTStrCatEx.cpp \ 964 968 common/string/RTStrCmp.cpp \ 965 969 common/string/RTStrCopy.cpp \ … … 1291 1295 common/string/strncmp.cpp \ 1292 1296 common/string/strpbrk.cpp \ 1297 common/string/RTStrCat.cpp \ 1298 common/string/RTStrCatEx.cpp \ 1293 1299 common/string/RTStrCopy.cpp \ 1294 1300 common/string/RTStrCopyEx.cpp \ … … 1426 1432 common/rand/randadv.cpp \ 1427 1433 common/rand/randparkmiller.cpp \ 1434 common/string/RTStrCat.cpp \ 1435 common/string/RTStrCatEx.cpp \ 1428 1436 common/string/RTStrCmp.cpp \ 1429 1437 common/string/RTStrCopy.cpp \ -
trunk/src/VBox/Runtime/common/string/RTStrCopyEx.cpp
r30320 r33678 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - RTStrCopy .3 * IPRT - RTStrCopyEx. 4 4 */ 5 5 -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r33563 r33678 97 97 tstRTStrAlloc \ 98 98 tstRTStrCache \ 99 tstRTStrCatCopy \ 99 100 tstRTStrFormat \ 100 101 tstStrSimplePattern \ … … 428 429 tstRTStrCache_SOURCES = tstRTStrCache.cpp 429 430 431 tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE 432 tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp 433 434 tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE 430 435 tstRTStrFormat_SOURCES = tstRTStrFormat.cpp 431 436
Note:
See TracChangeset
for help on using the changeset viewer.

