doxyth/gendoc.py
def retrieve_replacements_from_doxyfile():
        """
        ### &doc_id gendoc:retrieve_from_doxyfile

        Retrieves the required variables from the doxyfile and returns them

        Returns:
            the variables and their value
        """

        final = {}

        with open(doxygen_file_name, encoding='utf-8') as f:
            buf = f.readlines()

        for line in buf:
            try:
                stripped_line = line.strip()
            except UnicodeEncodeError:
                stripped_line = ascii_encode(line).strip()

            if re.match(r"^PROJECT_NAME\s*=\s*", stripped_line):
                final['projectname'] = re.split(r'^PROJECT_NAME\s*=\s*["\'](.+)["\']', stripped_line)[-2]

            if re.match(r"^PROJECT_NUMBER\s*=\s*", stripped_line):
                final['projectnumber'] = re.split(r"^PROJECT_NUMBER\s*=\s*", stripped_line)[-1]

            if re.match(r"^PROJECT_BRIEF\s*=\s*", stripped_line):
                final['projectbrief'] = re.split(r'^PROJECT_BRIEF\s*=\s*["\'](.+)["\']', stripped_line)[-2]

        return final

        ### &doc_id gendoc:retrieve_from_doxyfile

        Retrieves the required variables from the doxyfile and returns them

        Returns:
            the variables and their value
        
&doc_id gendoc:retrieve_from_doxyfile
Retrieves the required variables from the doxyfile and returns them
&doc_id gendoc : retrieve_from_doxyfile Retrieves the required variables from the doxyfile and returns them
def retrieve_replacements_from_doxyfile():
        final = {}
        with open(doxygen_file_name, encoding='utf-8') as f:
            buf = f.readlines()
        for line in buf:
            try:
                stripped_line = line.strip()
            except UnicodeEncodeError:
                stripped_line = ascii_encode(line).strip()
            if re.match(r"^PROJECT_NAME\s*=\s*", stripped_line):
                final['projectname'] = re.split(r'^PROJECT_NAME\s*=\s*["\'](.+)["\']', stripped_line)[-2]
            if re.match(r"^PROJECT_NUMBER\s*=\s*", stripped_line):
                final['projectnumber'] = re.split(r"^PROJECT_NUMBER\s*=\s*", stripped_line)[-1]
            if re.match(r"^PROJECT_BRIEF\s*=\s*", stripped_line):
                final['projectbrief'] = re.split(r'^PROJECT_BRIEF\s*=\s*["\'](.+)["\']', stripped_line)[-2]
        return final
def retrieve_replacements_from_doxyfile ( ) : final = { } with open ( doxygen_file_name , encoding = 'utf-8' ) as f : buf = f . readlines ( ) for line in buf : try : stripped_line = line . strip ( ) except UnicodeEncodeError : stripped_line = ascii_encode ( line ) . strip ( ) if re . match ( r"^PROJECT_NAME\s*=\s*" , stripped_line ) : final [ 'projectname' ] = re . split ( r'^PROJECT_NAME\s*=\s*["\'](.+)["\']' , stripped_line ) [ - 2 ] if re . match ( r"^PROJECT_NUMBER\s*=\s*" , stripped_line ) : final [ 'projectnumber' ] = re . split ( r"^PROJECT_NUMBER\s*=\s*" , stripped_line ) [ - 1 ] if re . match ( r"^PROJECT_BRIEF\s*=\s*" , stripped_line ) : final [ 'projectbrief' ] = re . split ( r'^PROJECT_BRIEF\s*=\s*["\'](.+)["\']' , stripped_line ) [ - 2 ] return final
&doc_id gendoc:retrieve_from_doxyfile
Retrieves the required variables from the doxyfile and returns them
&doc_id gendoc : retrieve_from_doxyfile Retrieves the required variables from the doxyfile and returns them
"""
        ### &doc_id gendoc:retrieve_from_doxyfile

        Retrieves the required variables from the doxyfile and returns them

        Returns:
            the variables and their value
        """
the variables and their value
the variables and their value