From 53c1a7305e119b397c3e80acfdd4a6aecc7ce121 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 3 Jul 2007 12:39:13 +0000 Subject: added support for dynamic file names in selector lines. Can now be created with templates. --- stringbuf.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'stringbuf.h') diff --git a/stringbuf.h b/stringbuf.h index c8359ab8..5f9a0879 100755 --- a/stringbuf.h +++ b/stringbuf.h @@ -72,12 +72,21 @@ rsRetVal rsCStrTruncate(rsCStrObj *pThis, int nTrunc); rsRetVal rsCStrTrimTrailingWhiteSpace(rsCStrObj *pThis); /** - * Append a string to the buffer. + * Append a string to the buffer. For performance reasons, + * use rsCStrAppenStrWithLen() if you know the length. * * \param psz pointer to string to be appended. Must not be NULL. */ rsRetVal rsCStrAppendStr(rsCStrObj *pThis, char* psz); +/** + * Append a string to the buffer. + * + * \param psz pointer to string to be appended. Must not be NULL. + * \param iStrLen the length of the string pointed to by psz + */ +rsRetVal rsCStrAppendStrWithLen(rsCStrObj *pThis, char* psz, size_t iStrLen); + /** * Set a new allocation incremet. This will influence * the allocation the next time the string will be expanded. -- cgit