Searched refs:r_pos (Results 1 – 2 of 2) sorted by relevance
142 size_t pos = 0, r_pos = 0; // '\r' or '\n' in ReadCommand() local143 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()
129 size_t pos = 0, r_pos = 0; // '\r' or '\n' in ReadCommandResponse() local130 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()