[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r4085: Provide some reasonable defaults for the separator and line- (vidalia/trunk/src/common)
Author: edmanm
Date: 2009-08-29 14:39:35 -0400 (Sat, 29 Aug 2009)
New Revision: 4085
Modified:
vidalia/trunk/src/common/stringutil.h
Log:
Provide some reasonable defaults for the separator and line-ending
paramters in the string_wrap() function.
Modified: vidalia/trunk/src/common/stringutil.h
===================================================================
--- vidalia/trunk/src/common/stringutil.h 2009-08-29 05:40:12 UTC (rev 4084)
+++ vidalia/trunk/src/common/stringutil.h 2009-08-29 18:39:35 UTC (rev 4085)
@@ -41,7 +41,8 @@
* word separator (" ", for example), and placing the line ending <b>le</b> at
* the end of each line, except the last.*/
QString string_wrap(const QString &str, int width,
- const QString &sep, const QString &le);
+ const QString &sep = QString(" "),
+ const QString &le = QString("\n"));
/** Encodes the bytes in <b>buf</b> as an uppercase hexadecimal string and
* returns the result. This function is derived from base16_encode() in Tor's