10 std::string
Format(
const char *fmt, va_list &ap);
11 std::string
Form(
const char *fmt, ...);
12 std::string
Trim(
const std::string &
str);
13 std::string
TrimQuotes(
const std::string &str);
14 std::string
Wrap(std::string &str,
size_t width=78);
17 std::map<std::string,std::string>
Split(std::string &,
bool =
false);
18 std::vector<std::string>
Split(
const std::string &,
const std::string &);
19 std::string
Uncomment(
const std::string &opt);
24 const uint8_t *
data =
reinterpret_cast<const uint8_t*
>(
t);
26 size_t bytes = cnt*
sizeof(T);
33 size_t tlen = bytes > 20 ? 20 : bytes;
37 sum2 += sum1 += *data++;
40 sum1 = (sum1 & 0xff) + (sum1 >> 8);
41 sum2 = (sum2 & 0xff) + (sum2 >> 8);
45 sum1 = (sum1 & 0xff) + (sum1 >> 8);
46 sum2 = (sum2 & 0xff) + (sum2 >> 8);
48 return sum2 << 8 | sum1;