Andrew[fabrica]
Guest
Разбор сишника!
Вот столкнулся с такой проблемой...
Сказали написать парсер...
Парсер должен разбирать сишный файл... А конкретно.. Выбрать с него все тексты и альты... Вот так он примерно выглядит:
--------------------------------------------------
MEMCPY(" <td rowspan=\"3\" width=\"10\"><img src=\"/img/pix.gif\" width=\"10\" height=\"1\" alt=\"\" /></td>\n");
MEMCPY("</tr>\n");
MEMCPY("<tr>\n");
MEMCPY(" <td colspan=\"3\" bgcolor=\"white\" style=\"font-size: 12px; padding-left: 5px; border-left: 1px solid #F3CBC8; border-right: 1px solid #F3CBC8;\">\n");
MEMCPY(" <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
MEMCPY(" <tr valign=\"top\">\n");
//<xsl:if test="from_user/SmallPhoto/src != ''">
//<td width="1"><img src="{from_user/SmallPhoto/src}" width="{from_user/SmallPhoto/w}" height="{from_user/SmallPhoto/h}" align="left" hspace="10" alt="" /></td>
//</xsl:if>
MEMCPY(" <td>If you want to know if person on the picture likes you, please REGISTER and upload your photo.</td>\n");
MEMCPY(" </tr>\n");
MEMCPY(" </table>\n");
MEMCPY(" </td>\n");
MEMCPY("</tr>\n");
MEMCPY("<tr>\n");
--------------------------------------------------
Что-то смортю в книгу и вижу фигу
Нечего не получается, может кто поможет?
Вот столкнулся с такой проблемой...
Сказали написать парсер...
Парсер должен разбирать сишный файл... А конкретно.. Выбрать с него все тексты и альты... Вот так он примерно выглядит:
--------------------------------------------------
MEMCPY(" <td rowspan=\"3\" width=\"10\"><img src=\"/img/pix.gif\" width=\"10\" height=\"1\" alt=\"\" /></td>\n");
MEMCPY("</tr>\n");
MEMCPY("<tr>\n");
MEMCPY(" <td colspan=\"3\" bgcolor=\"white\" style=\"font-size: 12px; padding-left: 5px; border-left: 1px solid #F3CBC8; border-right: 1px solid #F3CBC8;\">\n");
MEMCPY(" <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
MEMCPY(" <tr valign=\"top\">\n");
//<xsl:if test="from_user/SmallPhoto/src != ''">
//<td width="1"><img src="{from_user/SmallPhoto/src}" width="{from_user/SmallPhoto/w}" height="{from_user/SmallPhoto/h}" align="left" hspace="10" alt="" /></td>
//</xsl:if>
MEMCPY(" <td>If you want to know if person on the picture likes you, please REGISTER and upload your photo.</td>\n");
MEMCPY(" </tr>\n");
MEMCPY(" </table>\n");
MEMCPY(" </td>\n");
MEMCPY("</tr>\n");
MEMCPY("<tr>\n");
--------------------------------------------------
Что-то смортю в книгу и вижу фигу

Нечего не получается, может кто поможет?
