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
19
#include <stdlib.h>
20
#include <stdlib.h>
20
21
21
#include <string>
22
#include <string>
22
#include <list>
23
#include <list>
23
#include <vector>
24
#include <vector>
...
...
123
124
124
/** Truncate in place in an utf8-legal way */
125
/** Truncate in place in an utf8-legal way */
125
extern void utf8truncate(string &s, int maxlen);
126
extern void utf8truncate(string &s, int maxlen);
126
127
127
/** Convert byte count into unit (KB/MB...) appropriate for display */
128
/** Convert byte count into unit (KB/MB...) appropriate for display */
128
string displayableBytes(long size);
129
string displayableBytes(off_t size);
129
130
130
/** Break big string into lines */
131
/** Break big string into lines */
131
string breakIntoLines(const string& in, unsigned int ll = 100, 
132
string breakIntoLines(const string& in, unsigned int ll = 100, 
132
              unsigned int maxlines= 50);
133
              unsigned int maxlines= 50);
133
/** Small utility to substitute printf-like percents cmds in a string */
134
/** Small utility to substitute printf-like percents cmds in a string */