небольшие правки с инклудами
This commit is contained in:
@@ -286,12 +286,19 @@ public class Utils {
|
||||
}
|
||||
//</editor-fold>
|
||||
public static String extractHeaderName(String line) {
|
||||
String res =null;
|
||||
String tline = line.trim().toLowerCase();
|
||||
if (tline.startsWith("include")) {
|
||||
String[] data = tline.split("'");
|
||||
return data.length > 1 ? data[1] : null;
|
||||
res = data.length > 1 ? Utils_.toW(data[1]) : null;
|
||||
if (res!=null){
|
||||
if (res.startsWith("\\")){
|
||||
res= res.substring(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
System.out.println(res);
|
||||
return res;
|
||||
}
|
||||
public static String getRelativeName(File dir, File file) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user