Home
last modified time | relevance | path

Searched refs:colon_pos (Results 1 – 5 of 5) sorted by relevance

/external/libbrillo/brillo/dbus/
Dutils.cc60 size_t colon_pos = part.find(':'); in AddDBusError() local
61 if (slash_pos != std::string::npos && colon_pos != std::string::npos && in AddDBusError()
62 slash_pos < colon_pos) { in AddDBusError()
66 std::string code = part.substr(slash_pos + 1, colon_pos - slash_pos - 1); in AddDBusError()
67 std::string message = part.substr(colon_pos + 1); in AddDBusError()
70 colon_pos == std::string::npos && errors.empty()) { in AddDBusError()
/external/grpc-grpc/test/cpp/interop/
Dstress_test.cc172 size_t colon_pos = it->find(':'); in ParseTestCasesString() local
173 if (colon_pos == grpc::string::npos) { in ParseTestCasesString()
179 grpc::string test_name = it->substr(0, colon_pos); in ParseTestCasesString()
180 int weight = std::stoi(it->substr(colon_pos + 1)); in ParseTestCasesString()
/external/webrtc/webrtc/p2p/base/
Dport.cc450 size_t colon_pos = username.find(":"); in ParseStunUsername() local
451 if (colon_pos == std::string::npos) { in ParseStunUsername()
455 *local_ufrag = username.substr(0, colon_pos); in ParseStunUsername()
456 *remote_ufrag = username.substr(colon_pos + 1, username.size()); in ParseStunUsername()
/external/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface.cc1325 string::size_type colon_pos = value.find_first_of(':'); in InterpretArgument() local
1326 if (colon_pos == string::npos || IsWindowsAbsolutePath(value)) { in InterpretArgument()
1329 directive.parameter = value.substr(0, colon_pos); in InterpretArgument()
1330 directive.output_location = value.substr(colon_pos + 1); in InterpretArgument()
/external/tensorflow/tensorflow/lite/toco/
Dtooling_util.cc1046 auto colon_pos = name.find_first_of(":"); in CheckEachArray() local
1047 if (colon_pos != string::npos) { in CheckEachArray()
1048 CHECK_EQ(name.substr(colon_pos + 1).find_first_not_of("0123456789"), in CheckEachArray()
1052 CHECK_GT(colon_pos, 0) << "Array '" << name in CheckEachArray()