import doxygen_translate.*; import java.util.HashMap; import java.util.Map; public class doxygen_translate_runme { static { try { System.loadLibrary("doxygen_translate"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } public static void main(String argv[]) { CommentParser.parse("doxygen_translate"); Map wantedComments = new HashMap(); wantedComments.put("doxygen_translate.doxygen_translate.function(int, float)", " Hello \n" + " \n" + "
  • some list item
  • \n" + " \n" + " @author lots of them \n" + " \n" + " @author Zubr \n" + " \n" + " boldword \n" + " \n" + " codeword \n" + " \n" + " citationword \n" + " \n" + " {@code some test code }\n" + " \n" + " Conditional comment: SOMECONDITION \n" + " Some conditional comment \n" + " End of conditional comment.\n" + " \n" + " Copyright: some copyright \n" + " \n" + " @deprecated Now use another function \n" + " \n" + " italicword \n" + " \n" + " @ example someFile.txt\n" + " Some details on using the example\n" + " \n" + " @exception SuperError \n" + " \n" + " If: ANOTHERCONDITION {\n" + " First part of comment \n" + " If: SECONDCONDITION {\n" + " Nested condition text}\n" + " Else if: THIRDCONDITION {\n" + " The third condition text}\n" + " Else: {The last text block}}\n" + " \n" + " Else: {Second part of comment \n" + " If: CONDITION {\n" + " Second part extended}}\n" + " \n" + " \n" + " \n" + " If not: SOMECONDITION {\n" + " This is printed if not}\n" + " \n" + " \n" + " \"Hello,\n" + " \"Test\n" + " \n" + " \n" + " \n" + " {@link someMember Some description follows }\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " Note: Here \n" + " is the note! \n" + " \n" + " This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.\n" + " \n" + " someword \n" + " \n" + " @package superPackage \n" + " \n" + "

    \n" + " The paragraph text. \n" + " Maybe even multiline

    \n" + " \n" + " @param a the first param \n" + " \n" + " Remarks: Some remark text \n" + " \n" + " Remarks: Another remarks section \n" + " \n" + " @return Whatever \n" + " \n" + " @return it \n" + " \n" + " @return may return \n" + " \n" + " @see someOtherMethod \n" + " \n" + " @see function \n" + " \n" + " @since version 0.0.0.1 \n" + " \n" + " @throws superException \n" + " \n" + " @throws RuntimeError \n" + " \n" + " TODO: Some very important task \n" + " \n" + " @param b B is mentioned again... \n" + " \n" + " {@literal \n" + "very long \n" + "text with tags \n" + " }\n" + " \n" + " @version 0.0.0.2 \n" + " \n" + " Warning: This is senseless! \n" + " \n" + " Here goes test of symbols: \n" + " $ @ \\ & ~ < > # % " . :: \n" + " \n" + " And here goes simple text \n" + " \n" + ""); wantedComments.put("doxygen_translate.doxygen_translate.htmlFunction(int, float)", " Test for html tags. See Doxygen doc for list of tags recognized by Doxygen. \n" + " \n" + " This is link \n" + " bold \n" + "
    \n" + " Quotation block. \n" + "
    \n" + "
    \n" + "
    center
    \n" + " this is code \n" + "\n" + "
    \n" + "
    Starts an item title.
    \n" + "
    Starts an item description.
    \n" + "
    \n" + "\n" + " Starts a piece of text displayed in a typewriter font. \n" + " \n" + "
    Starts a section with a specific style (HTML only) \n" + "
    \n" + " Starts a piece of text displayed in an italic font. \n" + "\n" + "
    'Form' does not generate any output. \n" + "
    \n" + "
    \n" + "

    Heading 1 \n" + "

    \n" + "

    Heading 2 \n" + "

    \n" + "

    Heading 3 \n" + "

    \n" + " Starts a piece of text displayed in an italic font. \n" + " Input tag. \n" + " \n" + " \n" + " Meta tag. \n" + " Multicol is ignored by doxygen. \n" + " \n" + " \n" + "
      \n" + "
    1. List item 1.
    2. \n" + "
    3. List item 2.
    4. \n" + "
    \n" + " \n" + "

    Starts a new paragraph. \n" + "

    \n" + "
     Starts a preformatted fragment.                                                \n" +
        		" 
    \n" + " Starts a section of text displayed in a smaller font. \n" + " \n" + " Starts an inline text fragment with a specific style. \n" + " \n" + " Starts a section of bold text. \n" + " Starts a piece of text displayed in subscript. \n" + " Starts a piece of text displayed in superscript. \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
    Animals
    Column 1 Column 2
    cow dog
    cat mouse
    horse parrot
    \n" + " \n" + " Starts a piece of text displayed in a typewriter font. \n" + " \n" + " Starts a piece of text displayed in a typewriter font. \n" + " \n" + " \n" + "
      \n" + "
    • List item 1.
    • \n" + "
    • List item 2.
    • \n" + "
    • List item 3.
    • \n" + "
    \n" + " \n" + " Starts a piece of text displayed in an italic font. \n" + " \n" + "\n" + "underlined \\b bold text - doxy commands are ignored inside 'htmlonly' section \n" + "\n" + ""); wantedComments.put("doxygen_translate.doxygen_translate.htmlTableFunction(int)", "The meaning of flags:\n" + "\n" + " @param byFlags bits marking required items:\n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
    Size in bits Items Required
    1 - 8 1
    9 - 16 2
    17 - 32 4
    \n" + " Almost all combinations of above flags are supported by\n" + " htmlTable... functions.\n" + ""); wantedComments.put("doxygen_translate.doxygen_translate.htmlEntitiesFunction(int, float)", "All entities are treated as commands © ™ ®\n" + "should work also<in text \n" + "> \n" + "& \n" + "' \n" + "" \n" + "‘ \n" + "’ \n" + "“ \n" + "” \n" + "– \n" + "— \n" + "  \n" + "× \n" + "− \n" + "⋅ \n" + "∼ \n" + "≤ \n" + "≥ \n" + "← \n" + "→ \n" + "Not an html entity - ignored by Doxygen. \n" + "Not an &text html entity - ampersand is replaced with entity.\n" + ""); // and ask the parser to check comments for us System.exit(CommentParser.check(wantedComments)); } }