src/doge/data/Modification.java
public static Modification parseMod(String block) {
        String[] lines = block.split(LF);
        String parsedMdName = lines[MOD_NAME_INDEX];

        ArrayList<Patch> patches = new ArrayList<Patch>();
        Matcher functionBlockMatcher = FUNCTION_PATCH_BLOCK_REGEX.matcher(block);
        while (functionBlockMatcher.find()) {
            patches.addAll(Modification.parsePatches(functionBlockMatcher.group(0)));
        }
        if (!patches.isEmpty()) {
            return new Modification(parsedMdName, patches);
        } else {
            return null;
        }
    }
/**
     * Return a Modification object from given string
     *
     * @param block a string that contains the modification
     * @return the Modification object
     */
Return a Modification object from given string
@param block a string that contains the modification
@return the Modification object
Return a Modification object from given string @param block a string that contains the modification @return the Modification object
public static Modification parseMod(String block) {
        String[] lines = block.split(LF);
        String parsedMdName = lines[MOD_NAME_INDEX];
        ArrayList<Patch> patches = new ArrayList<Patch>();
        Matcher functionBlockMatcher = FUNCTION_PATCH_BLOCK_REGEX.matcher(block);
        while (functionBlockMatcher.find()) {
            patches.addAll(Modification.parsePatches(functionBlockMatcher.group(0)));
        }
        if (!patches.isEmpty()) {
            return new Modification(parsedMdName, patches);
        } else {
            return null;
        }
    }
public static Modification parseMod ( String block ) { String [ ] lines = block . split ( LF ) ; String parsedMdName = lines [ MOD_NAME_INDEX ] ; ArrayList < Patch > patches = new ArrayList < Patch > ( ) ; Matcher functionBlockMatcher = FUNCTION_PATCH_BLOCK_REGEX . matcher ( block ) ; while ( functionBlockMatcher . find ( ) ) { patches . addAll ( Modification . parsePatches ( functionBlockMatcher . group ( 0 ) ) ) ; } if ( ! patches . isEmpty ( ) ) { return new Modification ( parsedMdName , patches ) ; } else { return null ; } }
Return a Modification object from given string
 @param block a string that contains the modification
 @return the Modification object
Return a Modification object from given string @param block a string that contains the modification @return the Modification object