⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultname.cpp

📁 由7-zip提供的压缩、解压缩程序
💻 CPP
字号:
// DefaultName.cpp#include "StdAfx.h"#include "DefaultName.h"static const wchar_t *kEmptyFileAlias = L"[Content]";UString GetDefaultName2(const UString &fileName,     const UString &extension, const UString &addSubExtension){  int extLength = extension.Length();  int fileNameLength = fileName.Length();  if (fileNameLength > extLength + 1)  {    int dotPos = fileNameLength - (extLength + 1);    if (fileName[dotPos] == '.')      if (extension.CompareNoCase(fileName.Mid(dotPos + 1)) == 0)        return fileName.Left(dotPos) + addSubExtension;  }  return kEmptyFileAlias;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -