Last change
on this file since 16329 was 15167, checked in by tbretz, 12 years ago |
Added Split(), a wrapper around boost::split
|
File size:
618 bytes
|
Line | |
---|
1 | #ifndef FACT_Tools
|
---|
2 | #define FACT_Tools
|
---|
3 |
|
---|
4 | #include <map>
|
---|
5 | #include <string>
|
---|
6 | #include <vector>
|
---|
7 |
|
---|
8 | namespace Tools
|
---|
9 | {
|
---|
10 | std::string Format(const char *fmt, va_list &ap);
|
---|
11 | std::string Form(const char *fmt, ...);
|
---|
12 | std::string Trim(const std::string &str);
|
---|
13 | std::string TrimQuotes(const std::string &str);
|
---|
14 | std::string Wrap(std::string &str, size_t width=78);
|
---|
15 | std::string Scientific(uint64_t val);
|
---|
16 |
|
---|
17 | std::map<std::string,std::string> Split(std::string &, bool = false);
|
---|
18 | std::vector<std::string> Split(const std::string &, const std::string &);
|
---|
19 | std::string Uncomment(const std::string &opt);
|
---|
20 | }
|
---|
21 |
|
---|
22 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.