|
a/src/utils/smallut.h |
|
b/src/utils/smallut.h |
|
... |
|
... |
131 |
* if reasonably possible. */
|
131 |
* if reasonably possible. */
|
132 |
extern string truncate_to_word(const string &input, string::size_type maxlen);
|
132 |
extern string truncate_to_word(const string &input, string::size_type maxlen);
|
133 |
|
133 |
|
134 |
/** Truncate in place in an utf8-legal way */
|
134 |
/** Truncate in place in an utf8-legal way */
|
135 |
extern void utf8truncate(string &s, int maxlen);
|
135 |
extern void utf8truncate(string &s, int maxlen);
|
|
|
136 |
|
|
|
137 |
void ulltodecstr(unsigned long long val, string& buf);
|
|
|
138 |
void lltodecstr(long long val, string& buf);
|
|
|
139 |
string lltodecstr(long long val);
|
|
|
140 |
string ulltodecstr(unsigned long long val);
|
136 |
|
141 |
|
137 |
/** Convert byte count into unit (KB/MB...) appropriate for display */
|
142 |
/** Convert byte count into unit (KB/MB...) appropriate for display */
|
138 |
string displayableBytes(off_t size);
|
143 |
string displayableBytes(off_t size);
|
139 |
|
144 |
|
140 |
/** Break big string into lines */
|
145 |
/** Break big string into lines */
|