📄 wmlparse.c
字号:
case ATTRST_enctype:
fResult=WML_SetEnctype(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_application:
XML_AddHeadString(ppAttrVal,"application/x-www-form-urlencoded",pDecStr);
fResult=WML_SetEnctype(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_multipart:
XML_AddHeadString(ppAttrVal,"multipart/form-data",pDecStr);
fResult=WML_SetEnctype(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_format:
fResult=WML_SetFormat(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_forua_false:
fResult=WML_SetForua(pDecStr,pElement,ppAttrVal,FALSE);
break;
case ATTRST_forua_true:
fResult=WML_SetForua(pDecStr,pElement,ppAttrVal,TRUE);
break;
case ATTRST_height:
fResult=WML_SetHeight(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_href:
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_href_http:
XML_AddHeadString(ppAttrVal,"http://",pDecStr);
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_href_https:
XML_AddHeadString(ppAttrVal,"https://",pDecStr);
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_hspace:
fResult=WML_SetHSpace(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_http_equiv:
fResult=WML_SetHttpEq(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_http_equiv_Content_Type:
XML_AddHeadString(ppAttrVal,"Content-Type",pDecStr);
fResult=WML_SetHttpEq(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_http_equiv_Expires:
XML_AddHeadString(ppAttrVal,"Expires",pDecStr);
fResult=WML_SetHttpEq(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_id:
fResult=WML_SetId(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_ivalue:
fResult=WML_SetIValue(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_iname:
fResult=WML_SetIName(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_label:
fResult=WML_SetLabel(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_localsrc:
fResult=WML_SetLocalSrc(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_maxlength:
fResult=WML_SetMaxLength(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_method_get:
fResult=WML_SetMethod(pDecStr,pElement,ppAttrVal,M_Get);
break;
case ATTRST_method_post:
fResult=WML_SetMethod(pDecStr,pElement,ppAttrVal,M_Post);
break;
case ATTRST_mode_nowrap:
fResult=WML_SetMode(pDecStr,pElement,ppAttrVal,P_NoWrap);
break;
case ATTRST_mode_wrap:
fResult=WML_SetMode(pDecStr,pElement,ppAttrVal,P_Wrap);
break;
case ATTRST_multiple_false:
fResult=WML_SetMultiple(pDecStr,pElement,ppAttrVal,FALSE);
break;
case ATTRST_multiple_true:
fResult=WML_SetMultiple(pDecStr,pElement,ppAttrVal,TRUE);
break;
case ATTRST_name:
fResult=WML_SetName(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_newcontext_false:
fResult=WML_SetNewContext(pDecStr,pElement,ppAttrVal,FALSE);
break;
case ATTRST_newcontext_true:
fResult=WML_SetNewContext(pDecStr,pElement,ppAttrVal,TRUE);
break;
case ATTRST_onenterbackward:
fResult=WML_SetOnEntBack(pDecStr,pElement,ppAttrVal);
if (fResult)
{
/* Add the event ONENTERBACKWARD to the eventtable */
WML_AddToEventTable(pElement,DEF_TYPE_ONENTERBACKWARD,*ppAttrVal);
*ppAttrVal=NULL;
}
break;
case ATTRST_onenterforward:
fResult=WML_SetOnEntForw(pDecStr,pElement,ppAttrVal);
if (fResult)
{
/* Add the event ONENTERFORWARD to the eventtable */
WML_AddToEventTable(pElement,DEF_TYPE_ONENTERFORWARD,*ppAttrVal);
*ppAttrVal=NULL;
}
break;
case ATTRST_onpick:
fResult=WML_SetOnPick(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_ontimer:
fResult=WML_SetOnTimer(pDecStr,pElement,ppAttrVal);
if (fResult)
{
/* Add the event ONTIMER to the eventtable */
WML_AddToEventTable(pElement,DEF_TYPE_ONTIMER,*ppAttrVal);
*ppAttrVal=NULL;
}
break;
case ATTRST_optional_false:
fResult=WML_SetOptional(pDecStr,pElement,ppAttrVal,FALSE);
break;
case ATTRST_optional_true:
fResult=WML_SetOptional(pDecStr,pElement,ppAttrVal,TRUE);
break;
case ATTRST_path:
fResult=WML_SetPath(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_scheme:
fResult=WML_SetScheme(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_sendreferer_false:
fResult=WML_SetSendReferer(pDecStr,pElement,ppAttrVal,FALSE);
break;
case ATTRST_sendreferer_true:
fResult=WML_SetSendReferer(pDecStr,pElement,ppAttrVal,TRUE);
break;
case ATTRST_size:
fResult=WML_SetSize(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_src:
fResult=WML_SetSrc(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_src_http:
XML_AddHeadString(ppAttrVal,"http://",pDecStr);
fResult=WML_SetSrc(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_src_https:
XML_AddHeadString(ppAttrVal,"https://",pDecStr);
fResult=WML_SetSrc(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_ordered_true:
fResult=WML_SetOrdered(pDecStr,pElement,ppAttrVal,TRUE);
break;
case ATTRST_ordered_false:
fResult=WML_SetOrdered(pDecStr,pElement,ppAttrVal,FALSE);
break;
case ATTRST_tabindex:
fResult=WML_SetTabIndex(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_title:
fResult=WML_SetTitle(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_type:
/* ONEVENT, DO, INPUT */
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_accept:
XML_AddHeadString(ppAttrVal,"accept",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_delete:
XML_AddHeadString(ppAttrVal,"delete",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_help:
XML_AddHeadString(ppAttrVal,"help",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_password:
XML_AddHeadString(ppAttrVal,"password",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_onpick:
XML_AddHeadString(ppAttrVal,"onpick",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_onenterbackward:
XML_AddHeadString(ppAttrVal,"onenterbackward",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_onenterforward:
XML_AddHeadString(ppAttrVal,"onenterforward",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_ontimer:
XML_AddHeadString(ppAttrVal,"ontimer",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_options:
XML_AddHeadString(ppAttrVal,"options",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_prev:
XML_AddHeadString(ppAttrVal,"prev",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_reset:
XML_AddHeadString(ppAttrVal,"reset",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_text:
XML_AddHeadString(ppAttrVal,"text",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_type_vnd:
XML_AddHeadString(ppAttrVal,"vnd.",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case ATTRST_value:
fResult=WML_SetValue(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_vspace:
fResult=WML_SetVSpace(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_width:
fResult=WML_SetWidth(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_xml_lang:
fResult=WML_SetXmllang(pDecStr,pElement,ppAttrVal);
break;
case ATTRST_xml_space_preserve:
fResult=WML_SetXmlSpace(pDecStr,pElement,ppAttrVal,XML_SPACE_PRESERVE);
break;
case ATTRST_xml_space_default:
fResult=WML_SetXmlSpace(pDecStr,pElement,ppAttrVal,XML_SPACE_DEFAULT);
break;
default:
/* Codepage 1 for WTA-WML */
#ifdef CONFIG_WTA
if (fWTA)
{
switch (iAttribute)
{
case WTAATTRST_href_wtai:
XML_AddHeadString(ppAttrVal,"wtai://",pDecStr);
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case WTAATTRST_href_wtai_wp_mc:
XML_AddHeadString(ppAttrVal,"wtai://wp/mc;",pDecStr);
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case WTAATTRST_href_wtai_wp_sd:
XML_AddHeadString(ppAttrVal,"wtai://wp/sd;",pDecStr);
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case WTAATTRST_href_wtai_wp_ap:
XML_AddHeadString(ppAttrVal,"wtai://wp/ap;",pDecStr);
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case WTAATTRST_href_wtai_ms_ec:
XML_AddHeadString(ppAttrVal,"wtai://ms/ec",pDecStr);
fResult=WML_SetHref(pDecStr,pElement,ppAttrVal);
break;
case WTAATTRST_type_wtaev:
XML_AddHeadString(ppAttrVal,"wtaev-",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cc:
XML_AddHeadString(ppAttrVal,"wtaev-cc/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cc_ic:
XML_AddHeadString(ppAttrVal,"wtaev-cc/ic",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cc_cl:
XML_AddHeadString(ppAttrVal,"wtaev-cc/cl",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cc_co:
XML_AddHeadString(ppAttrVal,"wtaev-cc/co",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cc_oc:
XML_AddHeadString(ppAttrVal,"wtaev-cc/oc",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cc_cc:
XML_AddHeadString(ppAttrVal,"wtaev-cc/cc",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cc_dtmf:
XML_AddHeadString(ppAttrVal,"wtaev-cc/dtmf",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_nt:
XML_AddHeadString(ppAttrVal,"wtaev-nt/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_nt_it:
XML_AddHeadString(ppAttrVal,"wtaev-nt/it",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_nt_st:
XML_AddHeadString(ppAttrVal,"wtaev-nt/st",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_pb:
XML_AddHeadString(ppAttrVal,"wtaev-pb/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_lg:
XML_AddHeadString(ppAttrVal,"wtaev-lg/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_ms:
XML_AddHeadString(ppAttrVal,"wtaev-ms/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_ms_ns:
XML_AddHeadString(ppAttrVal,"wtaev-ms/ns",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_gsm:
XML_AddHeadString(ppAttrVal,"wtaev-gsm/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_gsm_ru:
XML_AddHeadString(ppAttrVal,"wtaev-gsm/ru",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_gsm_ch:
XML_AddHeadString(ppAttrVal,"wtaev-gsm/ch",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_gsm_ca:
XML_AddHeadString(ppAttrVal,"wtaev-gsm/ca",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_pdc:
XML_AddHeadString(ppAttrVal,"wtaev-pdc/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_is136:
XML_AddHeadString(ppAttrVal,"wtaev-is136/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_is136_ia:
XML_AddHeadString(ppAttrVal,"wtaev-is136/ia",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_is136_if:
XML_AddHeadString(ppAttrVal,"wtaev-is136/if",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
case WTAATTRST_type_wtaev_cdma:
XML_AddHeadString(ppAttrVal,"wtaev-cdma/",pDecStr);
fResult=WML_SetType(pDecStr,pElement,ppAttrVal,fWTA);
break;
default:
/* Not valid attribute start token. */
fResult=FALSE;
break;
}
}
else
/* CONFIG_WTA */
#endif
{
/* Not valid attribute start token. */
fResult=FALSE;
break;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -