Mercurial > projects > ddmd
diff dmd/ddoc/Escape.d @ 152:4092a614a9f3
moved Escape and Macro to ddoc folder
author | Trass3r |
---|---|
date | Wed, 15 Sep 2010 03:00:30 +0200 |
parents | dmd/Escape.d@766e6dc390e1 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmd/ddoc/Escape.d Wed Sep 15 03:00:30 2010 +0200 @@ -0,0 +1,24 @@ +module dmd.ddoc.Escape; + +struct Escape +{ + string[256] strings; + + /*************************************** + * Find character string to replace c with. + */ + static string escapeChar(char c) + { + switch (c) + { + case '<': + return "<"; + case '>': + return ">"; + case '&': + return "&"; + default: + return null; + } + } +} \ No newline at end of file