#include "chxj_encoding.h"
#define GET_CHTML30(X) ((chtml30_t*)(X))
-#define W30_L(X) do { chtml30->out = BUFFERED_WRITE_LITERAL(chtml30->out, &doc->buf, (X)); } while(0)
-#define W30_V(X) do { chtml30->out = (X) ? BUFFERED_WRITE_VALUE(chtml30->out, &doc->buf, (X)) \
+#undef W_L
+#undef W_V
+#define W_L(X) do { chtml30->out = BUFFERED_WRITE_LITERAL(chtml30->out, &doc->buf, (X)); } while(0)
+#define W_V(X) do { chtml30->out = (X) ? BUFFERED_WRITE_VALUE(chtml30->out, &doc->buf, (X)) \
: BUFFERED_WRITE_LITERAL(chtml30->out, &doc->buf, ""); } while(0)
-static char* s_chtml30_start_html_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_html_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_meta_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_meta_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_textarea_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_textarea_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_p_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_p_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_pre_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_pre_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_h1_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_h1_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_h2_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_h2_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_h3_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_h3_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_h4_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_h4_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_h5_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_h5_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_h6_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_h6_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_ul_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_ul_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_ol_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_ol_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_li_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_li_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_head_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_head_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_title_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_title_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_base_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_base_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_body_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_body_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_a_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_a_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_br_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_br_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_tr_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_tr_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_font_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_font_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_form_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_form_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_input_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_input_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_center_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_center_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_hr_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_hr_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_img_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_img_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_select_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_select_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_option_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_option_tag (void* pdoc, Node* node);
-static char* s_chtml30_start_div_tag (void* pdoc, Node* node);
-static char* s_chtml30_end_div_tag (void* pdoc, Node* node);
-static char* s_chtml30_chxjif_tag (void* pdoc, Node* node);
-static char* s_chtml30_text_tag (void* pdoc, Node* node);
-
-static void s_init_chtml30(chtml30_t* chtml, Doc* doc, request_rec* r, device_table* spec);
-
-static int s_chtml30_search_emoji(chtml30_t* chtml, char* txt, char** rslt);
+static char *s_chtml30_start_html_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_html_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_meta_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_meta_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_textarea_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_textarea_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_p_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_p_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_pre_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_pre_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_h1_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_h1_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_h2_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_h2_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_h3_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_h3_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_h4_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_h4_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_h5_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_h5_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_h6_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_h6_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_ul_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_ul_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_ol_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_ol_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_li_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_li_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_head_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_head_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_title_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_title_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_base_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_base_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_body_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_body_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_a_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_a_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_br_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_br_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_tr_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_tr_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_font_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_font_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_form_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_form_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_input_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_input_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_center_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_center_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_hr_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_hr_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_img_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_img_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_select_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_select_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_option_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_option_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_div_tag (void *pdoc, Node *node);
+static char *s_chtml30_end_div_tag (void *pdoc, Node *node);
+static char *s_chtml30_chxjif_tag (void *pdoc, Node *node);
+static char *s_chtml30_text_tag (void *pdoc, Node *node);
+static char *s_chtml30_start_blockquote_tag(void *pdoc, Node *node);
+static char *s_chtml30_end_blockquote_tag (void *pdoc, Node *node);
+
+static void s_init_chtml30(chtml30_t *chtml, Doc *doc, request_rec *r, device_table *spec);
+
+static int s_chtml30_search_emoji(chtml30_t *chtml, char *txt, char **rslt);
tag_handler chtml30_handler[] = {
},
/* tagBLOCKQUOTE */
{
- NULL,
- NULL,
+ s_chtml30_start_blockquote_tag,
+ s_chtml30_end_blockquote_tag,
},
/* tagDIR */
{
/*--------------------------------------------------------------------------*/
/* start HTML tag */
/*--------------------------------------------------------------------------*/
-#if 0
- chtml30->out = apr_pstrcat(r->pool, chtml30->out, "<html>\n", NULL);
-#else
- W30_L("<html>\n");
-#endif
-
+ W_L("<html>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
-#if 0
- chtml30->out = apr_pstrcat(r->pool, chtml30->out, "</html>\n", NULL);
-#else
- W30_L("</html>\n");
-#endif
-
+ W_L("</html>");
return chtml30->out;
}
content_type_flag = 0;
refresh_flag = 0;
- W30_L("<meta");
+ W_L("<meta");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
/*----------------------------------------------------------------------*/
/* CHTML 2.0 */
/*----------------------------------------------------------------------*/
- W30_L(" http-equiv=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" http-equiv=\"");
+ W_V(value);
+ W_L("\"");
if (STRCASEEQ('c','C',"content-type", value))
content_type_flag = 1;
case 'C':
if (strcasecmp(name, "content") == 0) {
if (content_type_flag) {
- W30_L(" ");
- W30_V(name);
- W30_L("=\"text/html; charset=Windows-31J\"");
+ W_L(" ");
+ W_V(name);
+ W_L("=\"text/html; charset=Windows-31J\"");
}
else
if (refresh_flag) {
url++;
url = chxj_encoding_parameter(r, url);
url = chxj_add_cookie_parameter(r, url, chtml30->cookie);
- W30_L(" ");
- W30_V(name);
- W30_L("=\"");
- W30_V(sec);
- W30_L(";");
- W30_V(url);
- W30_L("\"");
+ W_L(" ");
+ W_V(name);
+ W_L("=\"");
+ W_V(sec);
+ W_L(";");
+ W_V(url);
+ W_L("\"");
}
}
else {
- W30_L(" ");
- W30_V(name);
- W30_L("=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" ");
+ W_V(name);
+ W_L("=\"");
+ W_V(value);
+ W_L("\"");
}
}
break;
}
}
- W30_L(">");
+ W_L(">");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<head>\r\n");
+ W_L("<head>");
return chtml30->out;
}
* @param node [i] The HEAD tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml30_end_head_tag(void* pdoc, Node* UNUSED(node))
+static char *
+s_chtml30_end_head_tag(void *pdoc, Node *UNUSED(node))
{
chtml30_t* chtml30;
Doc* doc;
doc = chtml30->doc;
r = doc->r;
- W30_L("</head>\r\n");
+ W_L("</head>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<title>");
+ W_L("<title>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</title>\r\n");
+ W_L("</title>\r\n");
return chtml30->out;
}
* @param node [i] The BASE tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml30_start_base_tag(void* pdoc, Node* node)
+static char *
+s_chtml30_start_base_tag(void *pdoc, Node *node)
{
- Attr* attr;
- chtml30_t* chtml30;
- Doc* doc;
- request_rec* r;
+ Attr *attr;
+ chtml30_t *chtml30;
+ Doc *doc;
+ request_rec *r;
chtml30 = GET_CHTML30(pdoc);
doc = chtml30->doc;
r = doc->r;
- W30_L("<base");
-
+ W_L("<base");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
/*--------------------------------------------------------------------------*/
for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
-
- char* name;
- char* value;
-
- name = qs_get_attr_name(doc,attr);
- value = qs_get_attr_value(doc,attr);
-
+ char *name = qs_get_attr_name(doc,attr);
+ char *value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('h','H',"href", name)) {
- W30_L(" href=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" href=\"");
+ W_V(value);
+ W_L("\"");
}
}
-
- W30_L(" >\r\n");
-
+ W_L(">");
return chtml30->out;
}
* @param node [i] The BODY tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml30_start_body_tag(void* pdoc, Node* node)
+static char *
+s_chtml30_start_body_tag(void *pdoc, Node *node)
{
- chtml30_t* chtml30;
- Doc* doc;
- request_rec* r;
- Attr* attr;
+ chtml30_t *chtml30;
+ Doc *doc;
+ request_rec *r;
+ Attr *attr;
chtml30 = GET_CHTML30(pdoc);
doc = chtml30->doc;
r = doc->r;
- W30_L("<body");
-
+ W_L("<body");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
/*--------------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* CHTML 2.0 */
/*----------------------------------------------------------------------*/
- W30_L(" bgcolor=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" bgcolor=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('t','T', "text", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 2.0 */
/*----------------------------------------------------------------------*/
- W30_L(" text=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" text=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('l','L',"link", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 2.0 */
/*----------------------------------------------------------------------*/
- W30_L(" link=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" link=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('a','A',"alink", name)) {
/*----------------------------------------------------------------------*/
/* ignore */
}
}
-
- W30_L(">\r\n");
-
+ W_L(">");
return chtml30->out;
}
* @param node [i] The BODY tag node is specified.
* @return The conversion result is returned.
*/
-static char*
-s_chtml30_end_body_tag(void* pdoc, Node* UNUSED(child))
+static char *
+s_chtml30_end_body_tag(void *pdoc, Node *UNUSED(child))
{
- chtml30_t* chtml30;
- Doc* doc;
- request_rec* r;
+ chtml30_t *chtml30;
+ Doc *doc;
+ request_rec *r;
chtml30 = GET_CHTML30(pdoc);
doc = chtml30->doc;
r = doc->r;
- W30_L("</body>\r\n");
+ W_L("</body>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<a");
+ W_L("<a");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
/*----------------------------------------------------------------------*/
/* CHTML1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" name=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" name=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('h','H',"href", name)) {
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
value = chxj_encoding_parameter(r, value);
value = chxj_add_cookie_parameter(r, value, chtml30->cookie);
- W30_L(" href=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" href=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('a','A',"accesskey", name)) {
/*----------------------------------------------------------------------*/
/* CHTML1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" accesskey=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" accesskey=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('c','C',"cti", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 2.0 */
/*----------------------------------------------------------------------*/
- W30_L(" cti=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" cti=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('i','I',"ijam", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 3.0 */
/* It is special only for CHTML. */
/*----------------------------------------------------------------------*/
- W30_L(" utn ");
+ W_L(" utn ");
}
else if (STRCASEEQ('t','T',"telbook", name)) {
/*----------------------------------------------------------------------*/
}
}
- W30_L(">");
+ W_L(">");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</a>");
+ W_L("</a>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<br>\r\n");
+ W_L("<br>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<br>\r\n");
+ W_L("<br>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<font");
+ W_L("<font");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('c','C',"color", name)) {
- W30_L(" color=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" color=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('s','S',"size", name)) {
/*----------------------------------------------------------------------*/
}
}
- W30_L(">");
+ W_L(">");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</font>");
+ W_L("</font>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<form");
+ W_L("<form");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
/*----------------------------------------------------------------------*/
value = chxj_encoding_parameter(r, value);
value = chxj_add_cookie_parameter(r, value, chtml30->cookie);
- W30_L(" action=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" action=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('m','M',"method", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" method=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" method=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('u','U',"utn", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 3.0 */
/* It is special only for CHTML. */
/*----------------------------------------------------------------------*/
- W30_L(" utn ");
+ W_L(" utn ");
}
}
- W30_L(">");
+ W_L(">");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</form>");
+ W_L("</form>");
return chtml30->out;
}
r = doc->r;
- W30_L("<input");
+ W_L("<input");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
size = qs_get_size_attr(doc, node, r);
if (type) {
- W30_L(" type=\"");
- W30_V(type);
- W30_L("\"");
+ W_L(" type=\"");
+ W_V(type);
+ W_L("\"");
}
if (size) {
- W30_L(" size=\"");
- W30_V(size);
- W30_L("\" ");
+ W_L(" size=\"");
+ W_V(size);
+ W_L("\" ");
}
if (name) {
- W30_L(" name=\"");
- W30_V(name);
- W30_L("\" ");
+ W_L(" name=\"");
+ W_V(name);
+ W_L("\" ");
}
if (value) {
- W30_L(" value=\"");
- W30_V(value);
- W30_L("\" ");
+ W_L(" value=\"");
+ W_V(value);
+ W_L("\" ");
}
if (accesskey) {
- W30_L(" accesskey=\"");
- W30_V(accesskey);
- W30_L("\" ");
+ W_L(" accesskey=\"");
+ W_V(accesskey);
+ W_L("\" ");
}
if (istyle != NULL) {
/*------------------------------------------------------------------------*/
/* CHTML 2.0 */
/*------------------------------------------------------------------------*/
- W30_L(" istyle=\"");
- W30_V(istyle);
- W30_L("\" ");
+ W_L(" istyle=\"");
+ W_V(istyle);
+ W_L("\" ");
}
/*--------------------------------------------------------------------------*/
if (istyle != NULL && strcasecmp(istyle, "1") == 0) {
char *vv = apr_psprintf(doc->buf.pool, " maxlength=\"%d\"", chxj_atoi(max_length) * 2);
- W30_V(vv);
+ W_V(vv);
}
else {
char *vv = apr_psprintf(doc->buf.pool, " maxlength=\"%d\"", chxj_atoi(max_length));
- W30_V(vv);
+ W_V(vv);
}
}
if (checked) {
- W30_L(" checked ");
+ W_L(" checked ");
}
- W30_L(" >");
+ W_L(" >");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<center>");
+ W_L("<center>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</center>");
+ W_L("</center>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<hr ");
+ W_L("<hr ");
for (attr = qs_get_attr(doc,node);
attr;
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" align=\"");
- W30_V(value);
- W30_L("\" ");
+ W_L(" align=\"");
+ W_V(value);
+ W_L("\" ");
}
else if (STRCASEEQ('s','S',"size", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" size=\"");
- W30_V(value);
- W30_L("\" ");
+ W_L(" size=\"");
+ W_V(value);
+ W_L("\" ");
}
else if (STRCASEEQ('w','W',"width", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" width=\"");
- W30_V(value);
- W30_L("\" ");
+ W_L(" width=\"");
+ W_V(value);
+ W_L("\" ");
}
else if (STRCASEEQ('n','N',"noshade", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" noshade ");
+ W_L(" noshade ");
}
else if (STRCASEEQ('c','C',"color", name)) {
/*----------------------------------------------------------------------*/
}
}
- W30_L(" >");
+ W_L(" >");
return chtml30->out;
}
spec = chtml30->spec;
#endif
- W30_L("<img");
+ W_L("<img");
/*--------------------------------------------------------------------------*/
/* Get Attributes */
value,
(strchr(value, '?')) ? '&' : '?',
CHXJ_COOKIE_NOUPDATE_PARAM);
- W30_L(" src=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" src=\"");
+ W_V(value);
+ W_L("\"");
}
#else
(strchr(value, '?')) ? '&' : '?',
CHXJ_COOKIE_NOUPDATE_PARAM);
}
- W30_L(" src=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" src=\"");
+ W_V(value);
+ W_L("\"");
#endif
}
else if (STRCASEEQ('a','A',"align", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" align=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" align=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('w','W',"width", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" width=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" width=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('h','H', "height", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" height=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" height=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('h','H',"hspace", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" hspace=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" hspace=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('v','V',"vspace", name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" vspace=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" vspace=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('a','A',"alt",name)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 */
/*----------------------------------------------------------------------*/
- W30_L(" alt=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" alt=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('a','A',"align", name)) {
/*----------------------------------------------------------------------*/
}
}
- W30_L(">");
+ W_L(">");
return chtml30->out;
}
size = NULL;
name = NULL;
- W30_L("<select");
+ W_L("<select");
for (attr = qs_get_attr(doc,child);
attr;
}
if (size) {
- W30_L(" size=\"");
- W30_V(size);
- W30_L("\"");
+ W_L(" size=\"");
+ W_V(size);
+ W_L("\"");
}
if (name) {
- W30_L(" name=\"");
- W30_V(name);
- W30_L("\"");
+ W_L(" name=\"");
+ W_V(name);
+ W_L("\"");
}
- W30_L(">\n");
+ W_L(">\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</select>\n");
+ W_L("</select>\n");
return chtml30->out;
}
selected = NULL;
value = NULL;
- W30_L("<option");
+ W_L("<option");
for (attr = qs_get_attr(doc,child);
attr;
}
if (value) {
- W30_L(" value=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" value=\"");
+ W_V(value);
+ W_L("\"");
}
else {
- W30_L(" value=\"\"");
+ W_L(" value=\"\"");
}
if (selected) {
- W30_L(" selected");
+ W_L(" selected");
}
- W30_L(">");
+ W_L(">");
return chtml30->out;
}
r = doc->r;
align = NULL;
- W30_L("<div");
+ W_L("<div");
for (attr = qs_get_attr(doc,child);
attr;
}
if (align) {
- W30_L(" align=\"");
- W30_V(align);
- W30_L("\"");
+ W_L(" align=\"");
+ W_V(align);
+ W_L("\"");
}
- W30_L(">");
+ W_L(">");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</div>\n");
+ W_L("</div>\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<ul>");
+ W_L("<ul>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</ul>");
+ W_L("</ul>");
return chtml30->out;
}
r = doc->r;
chtml30->pre_flag++;
- W30_L("<pre>");
+ W_L("<pre>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</pre>");
+ W_L("</pre>");
chtml30->pre_flag--;
return chtml30->out;
doc = chtml30->doc;
r = doc->r;
- W30_L("<p>");
+ W_L("<p>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</p>");
+ W_L("</p>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<ol>");
+ W_L("<ol>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</ol>");
+ W_L("</ol>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<li>");
+ W_L("<li>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</li>");
+ W_L("</li>");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<h1>\r\n");
+ W_L("<h1>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</h1>\r\n");
+ W_L("</h1>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<h2>\r\n");
+ W_L("<h2>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</h2>\r\n");
+ W_L("</h2>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<h3>\r\n");
+ W_L("<h3>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</h3>\r\n");
+ W_L("</h3>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<h4>\r\n");
+ W_L("<h4>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</h4>\r\n");
+ W_L("</h4>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<h5>\r\n");
+ W_L("<h5>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</h5>\r\n");
+ W_L("</h5>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("<h6>\r\n");
+ W_L("<h6>\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</h6>\r\n");
+ W_L("</h6>\r\n");
return chtml30->out;
}
chtml30->textarea_flag++;
- W30_L("<textarea ");
+ W_L("<textarea ");
for (attr = qs_get_attr(doc,node);
attr;
char* value = qs_get_attr_value(doc,attr);
if (STRCASEEQ('n','N',"name", name)) {
- W30_L(" name=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" name=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('r','R',"rows", name)) {
- W30_L(" rows=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" rows=\"");
+ W_V(value);
+ W_L("\"");
}
else if (STRCASEEQ('c','C',"cols", name)) {
- W30_L(" cols=\"");
- W30_V(value);
- W30_L("\"");
+ W_L(" cols=\"");
+ W_V(value);
+ W_L("\"");
}
}
- W30_L(">\r\n");
+ W_L(">\r\n");
return chtml30->out;
}
doc = chtml30->doc;
r = doc->r;
- W30_L("</textarea>\r\n");
+ W_L("</textarea>\r\n");
chtml30->textarea_flag--;
return chtml30->out;
for (child = qs_get_child_node(doc, node);
child;
child = qs_get_next_node(doc, child)) {
- W30_V(child->otext);
+ W_V(child->otext);
s_chtml30_chxjif_tag(chtml30, child);
}
tdst = qs_out_apr_pstrcat(r, tdst, one_byte, &tdst_len);
}
}
- W30_V(tdst);
+ W_V(tdst);
+
+ return chtml30->out;
+}
+
+
+/**
+ * It is a handler who processes the BLOCKQUOTE tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The BLOCKQUOTE tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml30_start_blockquote_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml30_t *chtml30;
+ Doc *doc;
+ chtml30 = GET_CHTML30(pdoc);
+ doc = chtml30->doc;
+ W_L("<blockquote>");
+ return chtml30->out;
+}
+
+/**
+ * It is a handler who processes the BLOCKQUOTE tag.
+ *
+ * @param pdoc [i/o] The pointer to the CHTML structure at the output
+ * destination is specified.
+ * @param node [i] The BLOCKQUOTE tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml30_end_blockquote_tag(void *pdoc, Node *UNUSED(child))
+{
+ chtml30_t *chtml30;
+ Doc *doc;
+
+ chtml30 = GET_CHTML30(pdoc);
+ doc = chtml30->doc;
+ W_L("</blockquote>");
return chtml30->out;
}