32 #include "../api_core.h"
60 const std::string &get_result()
const;
72 void set_arg(
int index,
const std::string &text);
79 void set_arg(
int index,
int value,
int min_length = 0);
86 void set_arg(
int index,
unsigned int value,
int min_length = 0);
93 void set_arg(
int index,
long unsigned int value,
int min_length = 0);
100 void set_arg(
int index,
long long value,
int min_length = 0);
107 void set_arg(
int index,
unsigned long long value,
int min_length = 0);
113 void set_arg(
int index,
float value);
119 void set_arg(
int index,
double value);
132 void create_arg(
int index,
int start,
int length);
144 std::vector<ArgPosition> args;
151 template <
class Arg1>
155 template <
class Arg1,
class Arg2>
159 template <
class Arg1,
class Arg2,
class Arg3>
160 std::string
string_format(
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3)
163 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4>
164 std::string
string_format(
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
167 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4,
class Arg5>
168 std::string
string_format(
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
171 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4,
class Arg5,
class Arg6>
172 std::string
string_format(
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6)
175 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4,
class Arg5,
class Arg6,
class Arg7>
176 std::string
string_format(
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7)
void set_arg(int index, const std::string &text)
Set arg.
std::string string_format(const std::string &format)
Definition: string_format.h:148
ArgPosition(int s, int l)
Definition: string_format.h:139
int start
Definition: string_format.h:140
int length
Definition: string_format.h:141
const std::string & get_result() const
ArgPosition()
Definition: string_format.h:138