Lines Matching refs:buf
35 char buf[100] = {0};
36 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
39 assert(r.base() == buf+40);
40 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456"));
47 char buf[100] = {0};
48 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
52 assert(r.base() == buf+43);
53 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456"));
60 char buf[100] = {0};
61 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
65 assert(r.base() == buf+40);
66 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456"));
73 char buf[100] = {0};
74 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
78 assert(r.base() == buf+36);
79 assert(buf == std::string("123-555-1234123-555-2345123-555-3456"));
86 char buf[100] = {0};
87 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
91 assert(r.base() == buf+32);
92 assert(buf == std::string("123-555-1234, 555-2345, 555-3456"));
99 char buf[100] = {0};
100 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
105 assert(r.base() == buf+12);
106 assert(buf == std::string("123-555-1234"));