Home
last modified time | relevance | path

Searched refs:last_dot (Results 1 – 4 of 4) sorted by relevance

/third_party/gn/src/base/files/
Dfile_path.cc120 const StringType::size_type last_dot = FinalExtensionSeparatorPosition(path); in ExtensionSeparatorPosition() local
123 if (last_dot == StringType::npos || last_dot == 0U) in ExtensionSeparatorPosition()
124 return last_dot; in ExtensionSeparatorPosition()
127 path.rfind(FilePath::kExtensionSeparator, last_dot - 1); in ExtensionSeparatorPosition()
129 FilePath::kSeparators, last_dot - 1, FilePath::kSeparatorsLength - 1); in ExtensionSeparatorPosition()
134 return last_dot; in ExtensionSeparatorPosition()
143 StringType extension(path, last_dot + 1); in ExtensionSeparatorPosition()
146 if ((last_dot - penultimate_dot) <= 5U && in ExtensionSeparatorPosition()
147 (last_dot - penultimate_dot) > 1U) { in ExtensionSeparatorPosition()
153 return last_dot; in ExtensionSeparatorPosition()
/third_party/python/Python/
Dimport.c1327 Py_ssize_t last_dot; in resolve_name() local
1439 last_dot = PyUnicode_GET_LENGTH(package); in resolve_name()
1440 if (last_dot == 0) { in resolve_name()
1445 last_dot = PyUnicode_FindChar(package, '.', 0, last_dot, -1); in resolve_name()
1446 if (last_dot == -2) { in resolve_name()
1449 else if (last_dot == -1) { in resolve_name()
1457 base = PyUnicode_Substring(package, 0, last_dot); in resolve_name()
Dsysmodule.c552 const char *last_dot = strrchr(envar, '.'); in sys_breakpointhook() local
556 if (last_dot == NULL) { in sys_breakpointhook()
561 else if (last_dot != envar) { in sys_breakpointhook()
563 modulepath = PyUnicode_FromStringAndSize(envar, last_dot - envar); in sys_breakpointhook()
564 attrname = last_dot + 1; in sys_breakpointhook()
/third_party/protobuf/src/google/protobuf/
Ddescriptor.cc7325 std::string::size_type last_dot = name.find_last_of('.'); in InternalTypeOnceInit() local
7326 if (last_dot != std::string::npos) { in InternalTypeOnceInit()
7327 name = name.substr(0, last_dot) + "." + *default_value_enum_name_; in InternalTypeOnceInit()