Home
last modified time | relevance | path

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

/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/
H A Dwidget_adapter.cpp132 auto dirIndex = tempPath.find_last_of("/"); in UpdateShaderPath() local
133 tempPath = (dirIndex != std::string::npos) ? tempPath.substr(0, dirIndex) : tempPath; in UpdateShaderPath()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_utils.cpp975 size_t dirIndex = rootDir.find_first_of('/', 1); in GetRootDirFromRelativePath() local
976 if (dirIndex == string::npos) { in GetRootDirFromRelativePath()
979 rootDir = rootDir.substr(1, dirIndex); in GetRootDirFromRelativePath()
981 size_t dirIndex = rootDir.find_first_of('/'); in GetRootDirFromRelativePath() local
982 if (dirIndex == string::npos) { in GetRootDirFromRelativePath()
985 rootDir = rootDir.substr(0, dirIndex + 1); in GetRootDirFromRelativePath()