Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
EditorManager::ReplaceInFiles
vmlobanov78:
In File: sdk/editormanager.cpp
In Function: int EditorManager::ReplaceInFiles(cbFindReplaceData* data)
From:
--- Code: ---fileContents = cbReadFileContents(file, def_encoding);
if (fileContents.Find(data->findText) == -1)
{
continue;
}
--- End code ---
To:
--- Code: ---fileContents = cbReadFileContents(file, def_encoding);
if(!data->regEx)
{
if (fileContents.Find(data->findText) == -1)
{
continue;
}
}else if( AdvRegex && re.Matches(fileContents)==0)
{
continue;
}
--- End code ---
MortenMacFly:
--- Quote from: vmlobanov78 on February 12, 2012, 04:27:08 am ---In File: sdk/editormanager.cpp
In Function: int EditorManager::ReplaceInFiles(cbFindReplaceData* data)
--- End quote ---
I don't understand what you are trying to tell...?!
Can you please explain what you show here and not just post code snippets?
ptDev:
Is regular expression replace in files broken?
vmlobanov78:
--- Quote from: ptDev on February 12, 2012, 10:21:01 am ---Is regular expression replace in files broken?
--- End quote ---
Yes.
I'm from Russia. I don't speak English.
First code ("From") place - string number ~ 1980-1990 in file sdk/editormanager.cpp
Jenna:
Can you tell us, what you expect and what does not work.
Navigation
[0] Message Index
[#] Next page
Go to full version