Home
last modified time | relevance | path

Searched refs:r_pos (Results 1 – 2 of 2) sorted by relevance

/device/google/cuttlefish/host/commands/modem_simulator/
Dchannel_monitor.cpp142 size_t pos = 0, r_pos = 0; // '\r' or '\n' in ReadCommand() local
143 while (r_pos != std::string::npos) { in ReadCommand()
145 r_pos = commands.find('\032', pos); // In sms, find ctrl-z in ReadCommand()
147 r_pos = commands.find('\r', pos); in ReadCommand()
149 if (r_pos != std::string::npos) { in ReadCommand()
150 auto command = commands.substr(pos, r_pos - pos); in ReadCommand()
155 pos = r_pos + 1; // Skip '\r' in ReadCommand()
/device/google/cuttlefish/host/commands/modem_simulator/unittest/
Dservice_test.cpp129 size_t pos = 0, r_pos = 0; // '\r' or '\n' in ReadCommandResponse() local
130 while (r_pos != std::string::npos) { in ReadCommandResponse()
131 r_pos = commands.find('\r', pos); in ReadCommandResponse()
132 if (r_pos != std::string::npos) { in ReadCommandResponse()
133 auto command = commands.substr(pos, r_pos - pos); in ReadCommandResponse()
145 pos = r_pos + 1; // skip '\r' in ReadCommandResponse()