@@ -64,14 +64,14 @@ void CGrepAgent::OnAfterSave(const SSaveInfo& sSaveInfo)
6464*/
6565void CGrepAgent::CreateFolders ( const WCHAR* pszPath, std::vector<std::wstring>& vPaths )
6666{
67- const int nPathLen = auto_strlen ( pszPath );
67+ const int nPathLen = wcslen ( pszPath );
6868 auto szPath = std::make_unique<WCHAR[]>(nPathLen + 1 );
6969 auto szTmp = std::make_unique<WCHAR[]>(nPathLen + 1 );
70- auto_strcpy ( &szPath[0 ], pszPath );
70+ wcscpy ( &szPath[0 ], pszPath );
7171 WCHAR* token;
7272 int nPathPos = 0 ;
7373 while ( NULL != (token = my_strtok<WCHAR>( &szPath[0 ], nPathLen, &nPathPos, L" ;" )) ){
74- auto_strcpy ( &szTmp[0 ], token );
74+ wcscpy ( &szTmp[0 ], token );
7575 WCHAR* p;
7676 WCHAR* q;
7777 p = q = &szTmp[0 ];
@@ -711,7 +711,7 @@ int CGrepAgent::DoGrepTree(
711711 int nWork = 0 ;
712712 int nHitCountOld = -100 ;
713713 bool bOutputFolderName = false ;
714- int nBasePathLen = auto_strlen (pszBasePath);
714+ int nBasePathLen = wcslen (pszBasePath);
715715 CGrepEnumOptions cGrepEnumOptions;
716716 CGrepEnumFilterFiles cGrepEnumFilterFiles;
717717 cGrepEnumFilterFiles.Enumerates ( pszPath, cGrepEnumKeys, cGrepEnumOptions, cGrepExceptAbsFiles );
@@ -751,7 +751,7 @@ int CGrepAgent::DoGrepTree(
751751 currentFile += L" \\ " ;
752752 currentFile += lpFileName;
753753 int nBasePathLen2 = nBasePathLen + 1 ;
754- if ( (int )auto_strlen (pszPath) < nBasePathLen2 ){
754+ if ( (int )wcslen (pszPath) < nBasePathLen2 ){
755755 nBasePathLen2 = nBasePathLen;
756756 }
757757
@@ -1196,7 +1196,7 @@ int CGrepAgent::DoGrepFile(
11961196 X / O : (D)Folder(Abs) -> (G)RelPath(File)
11971197 X / X : (H)FullPath
11981198*/
1199- auto pszWork = std::make_unique<wchar_t []>(auto_strlen (pszFullPath) + auto_strlen (pszCodeName) + 10 );
1199+ auto pszWork = std::make_unique<wchar_t []>(wcslen (pszFullPath) + wcslen (pszCodeName) + 10 );
12001200 wchar_t * szWork0 = &pszWork[0 ];
12011201 if ( sGrepOption .bGrepOutputBaseFolder || sGrepOption .bGrepSeparateFolder ){
12021202 if ( !bOutputBaseFolder && sGrepOption .bGrepOutputBaseFolder ){
@@ -1214,7 +1214,7 @@ int CGrepAgent::DoGrepFile(
12141214 if ( pszFolder[0 ] ){
12151215 auto_sprintf ( szWork0, L" ■\" %s\"\r\n " , pszFolder ); // (C), (D)
12161216 }else {
1217- auto_strcpy ( szWork0, L" ■\r\n " );
1217+ wcscpy ( szWork0, L" ■\r\n " );
12181218 }
12191219 cmemMessage.AppendString ( szWork0 );
12201220 bOutputFolderName = true ;
@@ -1243,7 +1243,7 @@ int CGrepAgent::DoGrepFile(
12431243 {
12441244 if ( CODE_AUTODETECT == sGrepOption .nGrepCharSet ){
12451245 if ( IsValidCodeType (nCharCode) ){
1246- auto_strcpy ( szCpName, CCodeTypeName (nCharCode).Bracket () );
1246+ wcscpy ( szCpName, CCodeTypeName (nCharCode).Bracket () );
12471247 pszCodeName = szCpName;
12481248 }else {
12491249 CCodePage::GetNameBracket (szCpName, nCharCode);
@@ -1694,7 +1694,7 @@ int CGrepAgent::DoGrepReplaceFile(
16941694 {
16951695 if ( CODE_AUTODETECT == sGrepOption .nGrepCharSet ){
16961696 if ( IsValidCodeType (nCharCode) ){
1697- auto_strcpy ( szCpName, CCodeTypeName (nCharCode).Bracket () );
1697+ wcscpy ( szCpName, CCodeTypeName (nCharCode).Bracket () );
16981698 pszCodeName = szCpName;
16991699 }else {
17001700 CCodePage::GetNameBracket (szCpName, nCharCode);
0 commit comments