Subversion Repositories gelsvn

Rev

Rev 448 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 448 Rev 510
1
#ifndef __UTIL_STRING_UTILS_H
1
#ifndef __UTIL_STRING_UTILS_H
2
#define __UTIL_STRING_UTILS_H
2
#define __UTIL_STRING_UTILS_H
3
 
3
 
-
 
4
#include <string>
-
 
5
#include <list>
-
 
6
 
4
namespace Util
7
namespace Util
5
{
8
{
6
  std::string trim(const std::string& s, const std::string& wspaces);
9
  std::string trim(const std::string& s, const std::string& wspaces);
7
  std::string trim(const std::string& s);
10
  std::string trim(const std::string& s);
8
  void split(const std::string& s, std::list<std::string>& result, const std::string& delim);
11
  void split(const std::string& s, std::list<std::string>& result, const std::string& delim);
9
  void split(const std::string& s, std::list<std::string>& result);
12
  void split(const std::string& s, std::list<std::string>& result);
10
  void trim_split(const std::string& s, std::list<std::string>& result, const std::string& delim);
13
  void trim_split(const std::string& s, std::list<std::string>& result, const std::string& delim);
11
  void trim_split(const std::string& s, std::list<std::string>& result);
14
  void trim_split(const std::string& s, std::list<std::string>& result);
12
  void get_first(std::string& s, std::string& first);
15
  void get_first(std::string& s, std::string& first);
13
  void get_last(std::string& s, std::string& last);
16
  void get_last(std::string& s, std::string& last);
14
}
17
}
15
 
18
 
16
#endif // STRING_UTILS_H
19
#endif // STRING_UTILS_H
17
 
20
 
18

Generated by GNU Enscript 1.6.6.
21

Generated by GNU Enscript 1.6.6.
19
 
22
 
20
 
23
 
21
 
24