no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
import Visual_DVM_2021.Passes.Transformation;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
@@ -13,13 +13,13 @@ public class EraseBadSymbols extends Transformation {
|
||||
String file_text = FileUtils.readFileToString(file.file);
|
||||
StringBuilder res_text = new StringBuilder();
|
||||
for (char c : file_text.toCharArray()) {
|
||||
if (CommonUtils.isEnglishLetter(c) || Character.isDigit(c) || CommonUtils.isSign(c)) {
|
||||
if (Utils_.isEnglishLetter(c) || Character.isDigit(c) || Utils_.isSign(c)) {
|
||||
res_text.append(c);
|
||||
} else if (CommonUtils.isRussianLetter(c))
|
||||
res_text.append(CommonUtils.Translit(c));
|
||||
} else if (Utils_.isRussianLetter(c))
|
||||
res_text.append(Utils_.Translit(c));
|
||||
else res_text.append(' ');
|
||||
}
|
||||
File dst = Paths.get(target.last_version.Home.getAbsolutePath(), CommonUtils.isWindows() ? file.name : file.name.replace('\\', '/')).toFile();
|
||||
File dst = Paths.get(target.last_version.Home.getAbsolutePath(), Utils_.isWindows() ? file.name : file.name.replace('\\', '/')).toFile();
|
||||
FileUtils.write(dst, res_text.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user