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.31 2008-10-08 16:15:22 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: smallut.h,v 1.32 2008-11-19 10:06:49 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
#include <set>
24
#include <set>
...
...
88
extern string truncate_to_word(const string &input, string::size_type maxlen);
88
extern string truncate_to_word(const string &input, string::size_type maxlen);
89
89
90
/** Truncate in place in an utf8-legal way */
90
/** Truncate in place in an utf8-legal way */
91
extern void utf8truncate(string &s, int maxlen);
91
extern void utf8truncate(string &s, int maxlen);
92
92
93
/** Convert byte count into unit (KB/MB...) appropriate for display */
94
string displayableBytes(long size);
95
96
/** Break big string into lines */
97
string breakIntoLines(const string& in, unsigned int ll = 100, 
98
            unsigned int maxlines= 50);
93
/** Small utility to substitute printf-like percents cmds in a string */
99
/** Small utility to substitute printf-like percents cmds in a string */
94
bool pcSubst(const string& in, string& out, map<char, string>& subs);
100
bool pcSubst(const string& in, string& out, map<char, string>& subs);
95
101
96
class Chrono {
102
class Chrono {
97
 public:
103
 public: