Home
last modified time | relevance | path

Searched refs:last_dot_pos (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc/src/compiler/
Dpython_generator.cc612 const size_t last_dot_pos = module_name.rfind('.'); in PrintPreamble() local
613 if (last_dot_pos == grpc::string::npos) { in PrintPreamble()
616 var["ImportStatement"] = "from " + module_name.substr(0, last_dot_pos) + in PrintPreamble()
618 module_name.substr(last_dot_pos + 1); in PrintPreamble()
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc115 int last_dot_pos = module_name.rfind('.'); in ModuleImportStatement() local
116 if (last_dot_pos == string::npos) { in ModuleImportStatement()
121 return "from " + module_name.substr(0, last_dot_pos) + " import " + in ModuleImportStatement()
122 module_name.substr(last_dot_pos + 1); in ModuleImportStatement()
/external/grpc-grpc-java/compiler/src/java_plugin/cpp/
Djava_generator.cpp1330 size_t last_dot_pos = result.find_last_of('.'); in ServiceJavaPackage() local
1331 if (last_dot_pos != string::npos) { in ServiceJavaPackage()
1332 result.resize(last_dot_pos); in ServiceJavaPackage()