/ohos5.0/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | file.cpp | 33 auto dotPos = path.rfind('.'); in StripSuffix() local 34 if (sepPos == std::string::npos || dotPos > sepPos) { in StripSuffix() 35 return path.substr(0, dotPos); in StripSuffix() 53 auto dotPos = path.rfind('.'); in FileNameBase() local 61 if (dotPos == std::string::npos || dotPos < sepPos) { in FileNameBase() 62 dotPos = path.size(); in FileNameBase() 66 if (dotPos != std::string::npos && dotPos > sepPos) { in FileNameBase() 67 len = dotPos - sepPos; in FileNameBase()
|
/ohos5.0/foundation/systemabilitymgr/safwk/services/safwk/src/ |
H A D | main.cpp | 89 auto dotPos = fileName.find("."); in SetProcName() local 90 if (dotPos == string::npos) { in SetProcName() 93 string profileName = fileName.substr(0, dotPos); in SetProcName() 95 if (dotPos > MAX_LEN_PID_NAME) { in SetProcName() 96 dotPos = MAX_LEN_PID_NAME; in SetProcName() 98 profileName = fileName.substr(0, dotPos); in SetProcName()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/operation/ |
H A D | display_name_info.cpp | 124 size_t dotPos = displayName.rfind('.'); in ParseNormalDisplayName() local 125 if (dotPos != std::string::npos) { in ParseNormalDisplayName() 126 this->prefix = displayName.substr(0, dotPos); in ParseNormalDisplayName() 127 this->suffix = displayName.substr(dotPos); // include dot, e.g. ".jpg" in ParseNormalDisplayName()
|
/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/adaptor/ |
H A D | distributed_object_store_impl.cpp | 244 std::size_t dotPos = changedKey.find(ASSET_DOT); in FindChangedAssetKey() local 245 …if ((changedKey.size() > MODIFY_TIME_SUFFIX.length() && changedKey.substr(dotPos) == MODIFY_TIME_S… in FindChangedAssetKey() 246 … (changedKey.size() > SIZE_SUFFIX.length() && changedKey.substr(dotPos) == SIZE_SUFFIX)) { in FindChangedAssetKey() 247 assetKey = changedKey.substr(0, dotPos); in FindChangedAssetKey()
|
/ohos5.0/foundation/communication/netmanager_ext/services/networksharemanager/src/ |
H A D | networkshare_sub_statemachine.cpp | 617 std::string::size_type dotPos = btpanIpv4Addr.rfind("."); in GetBtDestinationAddr() local 618 if (dotPos == std::string::npos) { in GetBtDestinationAddr() 628 addrStr = btpanIpv4Addr.substr(0, dotPos) + routeSuffix; in GetBtDestinationAddr() 643 std::string::size_type dotPos = wifiIpv4Addr.rfind("."); in GetWifiApDestinationAddr() local 644 if (dotPos == std::string::npos) { in GetWifiApDestinationAddr() 653 addrStr = wifiIpv4Addr.substr(0, dotPos) + routeSuffix; in GetWifiApDestinationAddr() 697 std::string::size_type dotPos = usbIpv4Addr.rfind("."); in GetUsbDestinationAddr() local 698 if (dotPos == std::string::npos) { in GetUsbDestinationAddr() 707 addrStr = usbIpv4Addr.substr(0, dotPos) + routeSuffix; in GetUsbDestinationAddr()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/restore/ |
H A D | photos_restore.cpp | 273 size_t dotPos = displayName.rfind('.'); in GetSuffix() local 274 if (dotPos != std::string::npos) { in GetSuffix() 275 return this->ToLower(displayName.substr(dotPos + 1)); // without dot, e.g. "jpg" in GetSuffix()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_manager/src/ |
H A D | media_library_tab_old_photos_client.cpp | 202 size_t dotPos = fileNameInData.rfind('.'); in BuildRequestUri() local 203 if (dotPos != std::string::npos) { in BuildRequestUri() 204 fileNameInData = fileNameInData.substr(0, dotPos); in BuildRequestUri()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_image.cpp | 70 auto dotPos = realPath.find_last_of('.'); in LoadLocalImage() local 71 auto format = realPath.substr(dotPos + 1); in LoadLocalImage()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | backup_file_utils.cpp | 140 size_t dotPos = displayName.find_last_of("."); in ConvertLowQualityPath() local 141 if (dotPos != string::npos) { in ConvertLowQualityPath() 142 displayName.replace(dotPos, displayName.length() - dotPos, ".camera"); in ConvertLowQualityPath()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | js_fwk_common.cpp | 1151 void ExpandImagePathMem(char *&imagePath, const int16_t dotPos, const int16_t suffixLen, const int1… in ExpandImagePathMem() argument 1153 if (dotPos < 0 || suffixLen < 0 || imagePathLen < 0) { in ExpandImagePathMem() 1156 int16_t len = dotPos + 1 + suffixLen + 1; in ExpandImagePathMem() 1163 (dotPos + 1 + suffixLen + 1)); in ExpandImagePathMem()
|
H A D | js_fwk_common.h | 287 void ExpandImagePathMem(char *&imagePath, const int16_t dotPos, const int16_t suffixLen, const int1…
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/system_sound_manager/ |
H A D | system_sound_manager_impl.cpp | 1831 size_t dotPos = fileName.find_last_of('.'); in ConvertToHapticsFileName() local 1832 if (dotPos != std::string::npos) { in ConvertToHapticsFileName() 1833 std::string baseName = fileName.substr(0, dotPos); in ConvertToHapticsFileName()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_pattern.cpp | 1440 auto dotPos = contentController_->GetWideText().rfind(L'.'); in HandleOnSelectAll() local 1441 …if (dotPos != std::string::npos && static_cast<int32_t>(dotPos) < textSize - FIND_TEXT_ZERO_INDEX)… in HandleOnSelectAll() 1442 textSize = static_cast<int32_t>(dotPos); in HandleOnSelectAll()
|