Switch to unified view

a/src/utils/smallut.h b/src/utils/smallut.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _SMALLUT_H_INCLUDED_
17
#ifndef _SMALLUT_H_INCLUDED_
18
#define _SMALLUT_H_INCLUDED_
18
#define _SMALLUT_H_INCLUDED_
19
/* @(#$Id: smallut.h,v 1.28 2008-05-08 09:57:29 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: smallut.h,v 1.29 2008-08-30 07:30:55 dockes Exp $  (C) 2004 J.F.Dockes */
20
#include <string>
20
#include <string>
21
#include <list>
21
#include <list>
22
#include <vector>
22
#include <vector>
23
#include <map>
23
#include <map>
24
24
...
...
79
 * quote with single-quotes and escape internal singlequotes */
79
 * quote with single-quotes and escape internal singlequotes */
80
extern string escapeShell(const string &str);
80
extern string escapeShell(const string &str);
81
81
82
/** Truncate a string to a given maxlength, avoiding cutting off midword
82
/** Truncate a string to a given maxlength, avoiding cutting off midword
83
 *  if reasonably possible. */
83
 *  if reasonably possible. */
84
extern string truncate_to_word(string &input, string::size_type maxlen);
84
extern string truncate_to_word(const string &input, string::size_type maxlen);
85
86
/** Truncate in place in an utf8-legal way */
87
extern void utf8truncate(string &s, int maxlen);
85
88
86
/** Small utility to substitute printf-like percents cmds in a string */
89
/** Small utility to substitute printf-like percents cmds in a string */
87
bool pcSubst(const string& in, string& out, map<char, string>& subs);
90
bool pcSubst(const string& in, string& out, map<char, string>& subs);
88
91
89
class Chrono {
92
class Chrono {