Subversion Repositories gelsvn

Rev

Rev 448 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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