YAPOG  0.0.1
Yet Another Pokemon Online Game
StringHelper.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_STRINGHELPER_HPP
2 # define YAPOG_STRINGHELPER_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 # include "YAPOG/System/String.hpp"
7 
8 namespace yap
9 {
11  {
13 
14  public:
15 
16  template <typename T>
17  static String ToString (const T& value);
18 
19  template <typename T>
20  static T Parse (const String& str);
21 
22  static void Split (
23  const String& str,
24  const String& delimiters,
26 
27  template <typename T>
28  static int CompareString (const T& s1, const T& s2);
29  template <typename T>
30  static String& Ltrim(T& s);
31  template <typename T>
32  static String& Rtrim(T& s);
33  template <typename T>
34  static String& Trim(T& s);
35  template <typename T>
36  static String Trim(const T& s);
37  template <typename T>
38  static String Rtrim(const T& s);
39  template <typename T>
40  static String Ltrim(const T& s);
41 
42  private:
43 
44  StringHelper ();
45  ~StringHelper ();
46  };
47 } // namespace yap
48 
50 
51 #endif // YAPOG_STRINGHELPER_HPP