/foundation/arkui/napi/utils/platform/windows/ |
H A D | file.cpp | 28 size_t pathLen = strlen(path); in RealPath() local 29 if (pathLen == 0 || pathLen > PATH_MAX) { in RealPath()
|
/foundation/arkui/napi/utils/platform/unix_like/ |
H A D | file.cpp | 28 size_t pathLen = strlen(path); in RealPath() local 29 if (pathLen == 0 || pathLen > PATH_MAX) { in RealPath()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | gt_extractor_util.cpp | 145 uint32_t pathLen = ReadInt(fp); in ExtractFileAttr() local 146 if (pathLen == UINT_MAX) { in ExtractFileAttr() 150 if ((*relativeFilePath = reinterpret_cast<char *>(ReadString(fp, pathLen))) == nullptr) { in ExtractFileAttr() 164 uint8_t GtExtractorUtil::ExtractFileAttr(int32_t fp, char **fileName, uint32_t &pathLen, uint64_t &fileSize) in ExtractFileAttr() argument 177 pathLen = ReadInt(fp); in ExtractFileAttr() 178 if (pathLen == UINT_MAX) { in ExtractFileAttr() 182 int32_t ret = lseek(fp, pathLen, SEEK_CUR); in ExtractFileAttr()
|
H A D | gt_bundle_extractor.cpp | 96 uint32_t pathLen = 0; in ExtractHapProfile() local 105 if (GtExtractorUtil::ExtractFileAttr(fp, &fileName, pathLen, fileSize) != ERR_OK) { in ExtractHapProfile() 112 if (pathLen == 0 && (strcmp(fileName, PROFILE_NAME) == 0)) { in ExtractHapProfile() 131 index = index + INT_LENGTH + fileNameLen + INT_LENGTH + pathLen + LONG_LENGTH + fileSize; in ExtractHapProfile()
|
/third_party/vk-gl-cts/framework/delibs/deutil/ |
H A D | deProcess.c | 82 size_t pathLen = strlen(pathPrefix); in beginsWithPath() local 85 while (pathLen > 0 && pathPrefix[pathLen-1] == '/') in beginsWithPath() 86 pathLen -= 1; in beginsWithPath() 88 return pathLen > 0 && deMemoryEqual(fileName, pathPrefix, pathLen) && fileName[pathLen] == '/'; in beginsWithPath() 93 size_t pathLen = strlen(pathPrefix); in stripLeadingPath() local 99 while (pathLen > 0 && pathPrefix[pathLen in stripLeadingPath() [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | udata.cpp | 522 int32_t pathLen = 0; in next() local 534 pathLen = (int32_t)uprv_strlen(currentPath); in next() 540 pathLen = (int32_t)uprv_strlen(currentPath); in next() 543 pathLen = (int32_t)(nextPath - currentPath); in next() 549 if(pathLen == 0) { in next() 558 for(qqq=0;qqq<pathLen;qqq++) in next() 566 pathBuffer.clear().append(currentPath, pathLen, *pErrorCode); in next() 572 (pathLen>=4) && in next() 573 uprv_strncmp(pathBuffer.data() +(pathLen-4), suffix.data(), 4)==0 && /* suffix matches */ in next() 584 if(pathBuffer[pathLen in next() [all...] |
H A D | umapfile.cpp | 389 int32_t pathLen; /* Length of the returned directory path */ in uprv_computeDirPath() local 412 pathLen = (int32_t)(finalSlash - path + 1); in uprv_computeDirPath() 413 uprv_memcpy(pathBuffer, path, pathLen); in uprv_computeDirPath() 414 *(pathBuffer+pathLen) = 0; in uprv_computeDirPath() 415 return pathBuffer+pathLen; in uprv_computeDirPath()
|
/third_party/node/deps/icu-small/source/common/ |
H A D | udata.cpp | 522 int32_t pathLen = 0; in next() local 534 pathLen = (int32_t)uprv_strlen(currentPath); in next() 540 pathLen = (int32_t)uprv_strlen(currentPath); in next() 543 pathLen = (int32_t)(nextPath - currentPath); in next() 549 if(pathLen == 0) { in next() 558 for(qqq=0;qqq<pathLen;qqq++) in next() 566 pathBuffer.clear().append(currentPath, pathLen, *pErrorCode); in next() 572 (pathLen>=4) && in next() 573 uprv_strncmp(pathBuffer.data() +(pathLen-4), suffix.data(), 4)==0 && /* suffix matches */ in next() 584 if(pathBuffer[pathLen in next() [all...] |
H A D | umapfile.cpp | 389 int32_t pathLen; /* Length of the returned directory path */ in uprv_computeDirPath() local 412 pathLen = (int32_t)(finalSlash - path + 1); in uprv_computeDirPath() 413 uprv_memcpy(pathBuffer, path, pathLen); in uprv_computeDirPath() 414 *(pathBuffer+pathLen) = 0; in uprv_computeDirPath() 415 return pathBuffer+pathLen; in uprv_computeDirPath()
|
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | udata.cpp | 522 int32_t pathLen = 0; in next() local 534 pathLen = (int32_t)uprv_strlen(currentPath); in next() 540 pathLen = (int32_t)uprv_strlen(currentPath); in next() 543 pathLen = (int32_t)(nextPath - currentPath); in next() 549 if(pathLen == 0) { in next() 558 for(qqq=0;qqq<pathLen;qqq++) in next() 566 pathBuffer.clear().append(currentPath, pathLen, *pErrorCode); in next() 572 (pathLen>=4) && in next() 573 uprv_strncmp(pathBuffer.data() +(pathLen-4), suffix.data(), 4)==0 && /* suffix matches */ in next() 584 if(pathBuffer[pathLen in next() [all...] |
H A D | umapfile.cpp | 389 int32_t pathLen; /* Length of the returned directory path */ in uprv_computeDirPath() local 412 pathLen = (int32_t)(finalSlash - path + 1); in uprv_computeDirPath() 413 uprv_memcpy(pathBuffer, path, pathLen); in uprv_computeDirPath() 414 *(pathBuffer+pathLen) = 0; in uprv_computeDirPath() 415 return pathBuffer+pathLen; in uprv_computeDirPath()
|
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/ |
H A D | key_control.c | 207 char pathLen = strlen(keyPath) + strlen(PATH_FSCRYPT_VER) + 1; in KeyCtrlLoadVersion() local 208 char *path = (char *)malloc(pathLen); in KeyCtrlLoadVersion() 214 if (strncat_s(path, pathLen - strlen(PATH_FSCRYPT_VER), keyPath, strlen(keyPath)) != EOK) { in KeyCtrlLoadVersion() 219 if (strncat_s(path, pathLen, PATH_FSCRYPT_VER, strlen(PATH_FSCRYPT_VER)) != EOK) { in KeyCtrlLoadVersion()
|
H A D | fscrypt_control.c | 236 static int SpliceKeyPath(const char *path, size_t pathLen, in SpliceKeyPath() argument 242 size_t bufMax = pathLen + nameLen + 1; in SpliceKeyPath() 250 int ret = strncat_s(tmpBuf, bufMax, path, pathLen); in SpliceKeyPath()
|
/third_party/lzma/C/Util/SfxSetup/ |
H A D | SfxSetup.c | 269 size_t pathLen;
in main() local 325 pathLen = wcslen(path);
in main() 335 wcscpy(path + pathLen, L"7z");
in main() 355 pathLen = wcslen(path);
in main() 437 temp = path + pathLen;
in main() 544 WCHAR *temp = path + pathLen;
in main() 633 path[pathLen] = L'\0';
in main()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/src/ |
H A D | napi_storage_helper.cpp | 63 size_t pathLen = 0; in ParseString() local 64 napi_get_value_string_utf8(env, value, path, PATH_MAX, &pathLen); in ParseString() 118 size_t pathLen = 0; in GetInputPath() local 119 ret = napi_get_value_string_utf8(env, args[0], path, PATH_MAX, &pathLen); in GetInputPath()
|
/third_party/skia/third_party/externals/angle2/util/windows/ |
H A D | test_utils_win.cpp | 413 DWORD pathLen = ::GetTempPathA(maxDirNameLen, tempDirOut); in GetTempDir() local 415 if (pathLen > 0) in GetTempDir() 423 return (pathLen < MAX_PATH && pathLen > 0); in GetTempDir()
|
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | vfs_shellcmd.c | 124 size_t pathLen; in OsLsGetFullpath() local 127 pathLen = strlen(path) + strlen(pdirent->d_name) + 2; /* 2, path + '/' + d_name + '\0' */ in OsLsGetFullpath() 128 fullpath = (CHAR *)malloc(pathLen); in OsLsGetFullpath() 133 ret = snprintf_s(fullpath, pathLen, pathLen - 1, "%s/%s", path, pdirent->d_name); in OsLsGetFullpath() 139 pathLen = strlen(pdirent->d_name) + 2; /* 2, '/' + d_name + '\0' */ in OsLsGetFullpath() 140 fullpath = (CHAR *)malloc(pathLen); in OsLsGetFullpath() 145 ret = snprintf_s(fullpath, pathLen, pathLen, "/%s", pdirent->d_name); in OsLsGetFullpath()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | product_adapter.cpp | 354 size_t pathLen = strlen(appDataRoot); in ConfigPrivateDataRootPath() local 355 if (pathLen == 0 || pathLen >= UINT8_MAX) { in ConfigPrivateDataRootPath()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | gt_extractor_util.h | 27 static uint8_t ExtractFileAttr(int32_t fp, char **fileName, uint32_t &pathLen, uint64_t &fileSize);
|
/kernel/liteos_a/testsuites/unittest/tools/ |
H A D | unittest_tools.cpp | 95 int pathLen = strlen(pDir->d_name); in GetAllTestsuites() local 96 if (pathLen <= suffixLen) { in GetAllTestsuites() 99 if (strcmp(".bin", (char *)(pDir->d_name + (pathLen - suffixLen))) != 0) { in GetAllTestsuites()
|
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/include/ |
H A D | websocket_exec.h | 46 char *path, size_t pathLen, int *port);
|
/kernel/liteos_m/components/fs/fatfs/ |
H A D | fatfs.c | 76 UINT16 pathLen = strlen((char const *)path);
in FsChangeDrive() local 81 if (pathLen >= (FS_DRIVE_NAME_MAX_LEN - 1)) {
in FsChangeDrive() 83 pathLen = FS_DRIVE_NAME_MAX_LEN - 2;
in FsChangeDrive() 86 retErr = strncpy_s(tmpPath + 1, (FS_DRIVE_NAME_MAX_LEN - 1), (char const *)path, pathLen);
in FsChangeDrive()
|
/third_party/python/Modules/ |
H A D | getpath.c | 731 uint32_t pathLen = 256; in progname_to_dict() 732 while (pathLen) { in progname_to_dict() 733 path = PyMem_RawMalloc((pathLen + 1) * sizeof(char)); in progname_to_dict() 737 if (_NSGetExecutablePath(path, &pathLen) != 0) { in progname_to_dict()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | extension_util.cpp | 397 size_t pathLen = 0; in ConvertAssetLeft() local 398 status = OhCloudExtCloudAssetGetLocalPath(asset, &path, reinterpret_cast<unsigned int *>(&pathLen)); in ConvertAssetLeft() 402 dbAsset.path = std::string(reinterpret_cast<char *>(path), pathLen); in ConvertAssetLeft()
|
/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/ |
H A D | file_uri_n_exporter.cpp | 191 size_t pathLen = uri.GetPath().size(); in NormalizeUri() local 192 if (pathLen == 0) { in NormalizeUri() 201 if (left != pathLen) { in NormalizeUri()
|