Subversion Repositories gelsvn

Rev

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

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

Generated by GNU Enscript 1.6.6.
18

Generated by GNU Enscript 1.6.6.
19
 
19
 
20
 
20
 
21
 
21