Do bulk replace of stl types.
This commit is contained in:
parent
521486be62
commit
c25a56ee19
531 changed files with 2274 additions and 2181 deletions
|
@ -29,13 +29,13 @@ TEST_CASE(TestConsoleApp, "console")
|
|||
if (isatty(ttyfd))
|
||||
{
|
||||
auto tty_name = ttyname(ttyfd);
|
||||
std::string tty_name_str;
|
||||
String tty_name_str;
|
||||
if (tty_name != nullptr)
|
||||
{
|
||||
tty_name_str = std::string(tty_name);
|
||||
tty_name_str = String(tty_name);
|
||||
}
|
||||
|
||||
std::string fd_msg = "Hello tty: '" + tty_name_str + "'\n";
|
||||
String fd_msg = "Hello tty: '" + tty_name_str + "'\n";
|
||||
//write(ttyfd, fd_msg.data(), fd_msg.size());
|
||||
|
||||
TermInfo term_info;
|
||||
|
@ -78,9 +78,9 @@ TEST_CASE(TestConsoleApp, "console")
|
|||
std::cout << "timeout" << std::endl;
|
||||
break;
|
||||
}
|
||||
std::vector<char> buffer(100);
|
||||
Vector<char> buffer(100);
|
||||
auto read_size = read(ttyfd, buffer.data(), buffer.size());
|
||||
std::string out(buffer.begin(), buffer.begin()+read_size);
|
||||
String out(buffer.begin(), buffer.begin()+read_size);
|
||||
std::cout << "buf: " << out << std::endl;
|
||||
}
|
||||
std::cout << "loop break" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue