String.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "ionTypes.h"
5 
6 #include <tinyformat.h>
7 #include <sstream>
8 
9 
10 namespace ion
11 {
12 
15  class String
16  {
17 
18  public:
19 
20  static vector<string> SeparateLines(string const & str);
21 
22  static vector<string> Explode(string const & str, char delimiter);
23 
24  static bool BeginsWith(string const & s, string const & prefix, string & remainder);
25 
26  template <typename... Args>
27  static string Build(char const * const Format, Args const &... args)
28  {
29  return tfm::format(Format, args...);
30  }
31 
32  };
33 
34 }
static bool BeginsWith(string const &s, string const &prefix, string &remainder)
Definition: String.cpp:36
static vector< string > SeparateLines(string const &str)
Definition: String.cpp:8
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
Defines typedefs for integer and floating point types.
static string Build(char const *const Format, Args const &...args)
Definition: String.h:27
Helper methods for dealing with strings.
Definition: String.h:15
static vector< string > Explode(string const &str, char delimiter)
Definition: String.cpp:22