Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/
Djs_file_path.cpp21 auto beginPos = filePath.find_last_of("/"); in GetBaseName() local
22 if (beginPos != std::string::npos) { in GetBaseName()
23 beginPos++; in GetBaseName()
25 beginPos = 0; in GetBaseName()
28 return filePath.substr(beginPos); in GetBaseName()
33 auto beginPos = filePath.find_last_of('/'); in GetFileName() local
34 if (beginPos != std::string::npos) { in GetFileName()
35 beginPos++; in GetFileName()
37 beginPos = 0; in GetFileName()
41 return filePath.substr(beginPos, endPos - beginPos); in GetFileName()
[all …]