Lines Matching refs:buf
34 char buf[100] = {0};
35 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
38 assert(r.base() == buf+40);
39 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456"));
46 char buf[100] = {0};
47 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
51 assert(r.base() == buf+43);
52 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456"));
59 char buf[100] = {0};
60 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
64 assert(r.base() == buf+40);
65 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456"));
72 char buf[100] = {0};
73 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
77 assert(r.base() == buf+36);
78 assert(buf == std::string("123-555-1234123-555-2345123-555-3456"));
85 char buf[100] = {0};
86 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
90 assert(r.base() == buf+32);
91 assert(buf == std::string("123-555-1234, 555-2345, 555-3456"));
98 char buf[100] = {0};
99 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)),
104 assert(r.base() == buf+12);
105 assert(buf == std::string("123-555-1234"));