22 std::string str =
"abc";
23 std::string_view sr =
"xyz";
24 const char* literal =
"foo";
25 char buf[100]; buf[0] =
'q'; buf[1] =
'u'; buf[2] =
'x'; buf[3] =
'\0';
27 unsigned char uc = 222;
52 CHECK(
strCat(hex_string<4, HexCase::upper>(i)) ==
"E240");
56 CHECK(
strCat(bin_string<16>(i)) ==
"1110001001000000");
98 CHECK(
strCat(literal, buf, rValue()) ==
"fooquxbar");
101 CHECK(
strCat(rValue(), i, literal) ==
"bar123456foo");
105 CHECK(
strCat(str, sr, literal, buf, c, uc, m, i, rValue(),
spaces(2), hex_string<2>(255)) ==
106 "abcxyzfooqux-222-31123456bar ff");
107 CHECK(
strCat(rValue(), uc, buf, c,
spaces(2), str, i, hex_string<3>(9999), sr, literal, m) ==
108 "bar222qux- abc12345670fxyzfoo-31");