added handling of HTML entities

This commit is contained in:
Marko Klopcic 2013-01-18 22:22:22 +01:00
commit 4955cdaac6
5 changed files with 94 additions and 8 deletions

View file

@ -210,5 +210,33 @@ int htmlFunction(int a, float b)
}
/**
* All entities are treated as commands © ™ ®
* should work also<in text
* >
* &
* '
* "
* ‘
* ’
* “
* &rdaquo;
* –
* —
*  
* ×
* −
* ⋅
* ∼
* ≤
* ≥
* ←
* →
*/
int htmlEntitiesFunction(int a, float b)
{
}
%}

View file

@ -227,6 +227,31 @@ public class doxygen_translate_runme {
" <var> Starts a piece of text displayed in an italic font. \n" +
" </var> \n" +
"");
wantedComments.put("doxygen_translate.doxygen_translate.htmlEntitiesFunction(int, float)",
"All entities are treated as commands &copy; &trade; &reg;\n" +
"should work also&lt;in text \n" +
"&gt; \n" +
"&amp; \n" +
"&apos; \n" +
"&quot; \n" +
"&lsquo; \n" +
"&rsquo; \n" +
"&ldquo; \n" +
"&rdquo; \n" +
"&ndash; \n" +
"&mdash; \n" +
"&nbsp; \n" +
"&times; \n" +
"&minus; \n" +
"&sdot; \n" +
"&sim; \n" +
"&le; \n" +
"&ge; \n" +
"&larr; \n" +
"&rarr; \n" +
"");
// and ask the parser to check comments for us
System.exit(parser.check(wantedComments));
}