12 template<typename num_t
>
13 static inline num_t
StrToNum(const string
& str
)
22 template<typename num_t
>
23 static inline string
NumToStr(const num_t
& num
, streamsize precision
= 0)
26 stream
.setf(ios::fixed
, ios::floatfield
);
27 stream
.precision(precision
);
32 template<typename num_t
>
33 static inline string
NumHToStr(const num_t
& num
, streamsize precision
= 0)
36 stream
.setf(ios::fixed
, ios::floatfield
);
37 stream
.precision(precision
);
42 template<typename num_t
>
43 static inline string
NumOToStr(const num_t
& num
, streamsize precision
= 0)
46 stream
.setf(ios::fixed
, ios::floatfield
);
47 stream
.precision(precision
);
52 static inline string
ToLower(const string
& str
)
55 lower
.resize(str
.size());
56 transform(str
.begin(), str
.end(), lower
.begin(), (int (*)(int))tolower
);
60 static inline string
ToUpper(const string
& str
)
63 upper
.resize(str
.size());
64 transform(str
.begin(), str
.end(), upper
.begin(), (int (*)(int))toupper
);
69 static inline bool IsLower(const string& str)
74 static inline bool IsUpper(const string& str)