summaryrefslogtreecommitdiff
path: root/src/strings.hh
blob: 10e3edfa19f71180567cb13b6213c829b72c2ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// -*- mode: c++; c-basic-offset: 2; -*-

#ifndef STRINGS_HH
#define STRINGS_HH

#include <string>

class Strings {
public:
  static void trim(std::string const& str, size_t* start, size_t* end);
  static std::string trim(std::string const& str);
  static std::string trim(std::string const& str, size_t start, size_t end);

  static std::string quote(std::string const& str);
  static std::string quote(std::string const& str, size_t start, size_t end);
  static std::string unquote(std::string const& str);
  static std::string unquote(std::string const& str, size_t start, size_t end);

private:
  ~Strings() {}
  Strings() {}
};

#endif  // STRINGS_HH