]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/Common.java
Remove the special case handling of EfiInitializeDriverLib & DxeIntializeDriverLib
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / Common.java
index 23e2319dcf41f2e6da6992dfafb0abb058ba1d03..2f10521238c739f6df55cc155c9745a2a2560062 100644 (file)
@@ -37,6 +37,11 @@ public final class Common {
         return line;\r
     }\r
 \r
+    public static final boolean find (String line, String regex) {\r
+        Pattern ptn = Pattern.compile(regex);\r
+\r
+        return ptn.matcher (line).find (); \r
+    }\r
     //-------------------------------------regex------------------------------------------//\r
     \r
     //-----------------------------------file&string---------------------------------------//\r