📄 wsp_strings.def
字号:
/* ==================================================================== * The Kannel Software License, Version 1.0 * * Copyright (c) 2001-2004 Kannel Group * Copyright (c) 1998-2001 WapIT Ltd. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Kannel Group (http://www.kannel.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Kannel" and "Kannel Group" must not be used to * endorse or promote products derived from this software without * prior written permission. For written permission, please * contact org@kannel.org. * * 5. Products derived from this software may not be called "Kannel", * nor may "Kannel" appear in their name, without prior written * permission of the Kannel Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Kannel Group. For more information on * the Kannel Group, please see <http://www.kannel.org/>. * * Portions of this software are based upon software originally written at * WapIT Ltd., Helsinki, Finland for the Kannel project. */ /**** Preprocessor magic ****//* String table with entries starting at 0 and numbered upwards. */#if !defined(LINEAR)#error "Required macro LINEAR is missing."#endif/* Entry in a LINEAR table. Default is to do nothing for it. */#if !defined(STRING)#define STRING#endif/* String table where entries have assigned numbers. Multiple * entries can have the same number (the first listed entry is used * when looking up by number). */#if !defined(NUMBERED)#define NUMBERED LINEAR#endif/* Entry in a NUMBERED table */#if !defined(ASSIGN)#define ASSIGN(string, number) STRING(string)#endif/* Entry in a versioned NUMBERED table */#if !defined(VASSIGN)#define VASSIGN(version, string, number) VSTRING(version, string)#endif/* Just like LINEAR, but an enumerated type name##_enum is defined for * the entries. */#if !defined(NAMED)#define NAMED LINEAR#endif/* Entry in a NAMED table */#if !defined(NSTRING)#define NSTRING(string, name) STRING(string)#endif/* Entry in a versioned NAMED table */#if !defined(VNSTRING)#define VNSTRING(version, string, name) VSTRING(version, string)#endif/**** End of preprocessor magic. Tables start here. ****//* Table 39. Header Field Name Assignments. Note that headers Accept-Charset, Accept-Encoding, * Cache-Control and Content-Range are defined twice. First ones should be used only for com- * pability reasons. */NAMED(header,VNSTRING(WSP_1_1, "Accept", WSP_HEADER_ACCEPT)VNSTRING(WSP_1_1, "Accept-Charset", WSP_HEADER_ACCEPT_CHARSET)VNSTRING(WSP_1_1, "Accept-Encoding", WSP_HEADER_ACCEPT_ENCODING)VNSTRING(WSP_1_1, "Accept-Language", WSP_HEADER_ACCEPT_LANGUAGE)VNSTRING(WSP_1_1, "Accept-Ranges", WSP_HEADER_ACCEPT_RANGES)VNSTRING(WSP_1_1, "Age", WSP_HEADER_AGE)VNSTRING(WSP_1_1, "Allow", WSP_HEADER_ALLOW)VNSTRING(WSP_1_1, "Authorization", WSP_HEADER_AUTHORIZATION)VNSTRING(WSP_1_1, "Cache-Control", WSP_HEADER_CACHE_CONTROL)VNSTRING(WSP_1_1, "Connection", WSP_HEADER_CONNECTION)VNSTRING(WSP_1_1, "Content-Base", WSP_HEADER_CONTENT_BASE)VNSTRING(WSP_1_1, "Content-Encoding", WSP_HEADER_CONTENT_ENCODING)VNSTRING(WSP_1_1, "Content-Language", WSP_HEADER_CONTENT_LANGUAGE)VNSTRING(WSP_1_1, "Content-Length", WSP_HEADER_CONTENT_LENGTH)VNSTRING(WSP_1_1, "Content-Location", WSP_HEADER_CONTENT_LOCATION)VNSTRING(WSP_1_1, "Content-MD5", WSP_HEADER_CONTENT_MD5)VNSTRING(WSP_1_1, "Content-Range", WSP_HEADER_CONTENT_RANGE)VNSTRING(WSP_1_1, "Content-Type", WSP_HEADER_CONTENT_TYPE)VNSTRING(WSP_1_1, "Date", WSP_HEADER_DATE)VNSTRING(WSP_1_1, "Etag", WSP_HEADER_ETAG)VNSTRING(WSP_1_1, "Expires", WSP_HEADER_EXPIRES)VNSTRING(WSP_1_1, "From", WSP_HEADER_FROM)VNSTRING(WSP_1_1, "Host", WSP_HEADER_HOST)VNSTRING(WSP_1_1, "If-Modified-Since", WSP_HEADER_IF_MODIFIED_SINCE)VNSTRING(WSP_1_1, "If-Match", WSP_HEADER_IF_MATCH)VNSTRING(WSP_1_1, "If-None-Match", WSP_HEADER_IF_NONE_MATCH)VNSTRING(WSP_1_1, "If-Range", WSP_HEADER_IF_RANGE)VNSTRING(WSP_1_1, "If-Unmodified-Since", WSP_HEADER_IF_UNMODIFIED_SINCE)VNSTRING(WSP_1_1, "Location", WSP_HEADER_LOCATION)VNSTRING(WSP_1_1, "Last-Modified", WSP_HEADER_LAST_MODIFIED)VNSTRING(WSP_1_1, "Max-Forwards", WSP_HEADER_MAX_FORWARDS)VNSTRING(WSP_1_1, "Pragma", WSP_HEADER_PRAGMA)VNSTRING(WSP_1_1, "Proxy-Authenticate", WSP_HEADER_PROXY_AUTHENTICATE)VNSTRING(WSP_1_1, "Proxy-Authorization", WSP_HEADER_PROXY_AUTHORIZATION)VNSTRING(WSP_1_1, "Public", WSP_HEADER_PUBLIC)VNSTRING(WSP_1_1, "Range", WSP_HEADER_RANGE)VNSTRING(WSP_1_1, "Referer", WSP_HEADER_REFERER)VNSTRING(WSP_1_1, "Retry-After", WSP_HEADER_RETRY_AFTER)VNSTRING(WSP_1_1, "Server", WSP_HEADER_SERVER)VNSTRING(WSP_1_1, "Transfer-Encoding", WSP_HEADER_TRANSFER_ENCODING)VNSTRING(WSP_1_1, "Upgrade", WSP_HEADER_UPGRADE)VNSTRING(WSP_1_1, "User-Agent", WSP_HEADER_USER_AGENT)VNSTRING(WSP_1_1, "Vary", WSP_HEADER_VARY)VNSTRING(WSP_1_1, "Via", WSP_HEADER_VIA)VNSTRING(WSP_1_1, "Warning", WSP_HEADER_WARNING)VNSTRING(WSP_1_1, "WWW-Authenticate", WSP_HEADER_WWW_AUTHENTICATE)VNSTRING(WSP_1_1, "Content-Disposition", WSP_HEADER_CONTENT_DISPOSITION)VNSTRING(WSP_1_2, "X-Wap-Application-Id", WSP_HEADER_X_WAP_APPLICATION_ID)VNSTRING(WSP_1_2, "X-Wap-Content-URI", WSP_HEADER_X_WAP_CONTENT_URI)VNSTRING(WSP_1_2, "X-Wap-Initiator-URI", WSP_HEADER_X_WAP_INITIATOR_URI)VNSTRING(WSP_1_2, "Accept-Application", WSP_HEADER_ACCEPT_APPLICATION)VNSTRING(WSP_1_2, "Bearer-Indication", WSP_HEADER_BEARER_INDICATION)VNSTRING(WSP_1_2, "Push-Flag", WSP_HEADER_PUSH_FLAG)VNSTRING(WSP_1_2, "Profile", WSP_HEADER_PROFILE)VNSTRING(WSP_1_2, "Profile-Diff", WSP_HEADER_PROFILE_DIFF)VNSTRING(WSP_1_2, "Profile-Warning", WSP_HEADER_PROFILE_WARNING)VNSTRING(WSP_1_3, "Expect", WSP_HEADER_EXPECT)VNSTRING(WSP_1_3, "TE", WSP_HEADER_TE)VNSTRING(WSP_1_3, "Trailer", WSP_HEADER_TRAILER)VNSTRING(WSP_1_3, "Accept-Charset", WSP_HEADER_ACCEPT_CHARSET_V13)VNSTRING(WSP_1_3, "Accept-Encoding", WSP_HEADER_ACCEPT_ENCODING_V13)VNSTRING(WSP_1_3, "Cache-Control", WSP_HEADER_CACHE_CONTROL_V13)VNSTRING(WSP_1_3, "Content-Range", WSP_HEADER_CONTENT_RANGE_V13)VNSTRING(WSP_1_3, "X-WAP-Tod", WSP_HEADER_X_WAP_TOD)VNSTRING(WSP_1_3, "Content-ID", WSP_HEADER_CONTENT_ID)VNSTRING(WSP_1_3, "Set-Cookie", WSP_HEADER_SET_COOKIE)VNSTRING(WSP_1_3, "Cookie", WSP_HEADER_COOKIE)VNSTRING(WSP_1_3, "Encoding-Version", WSP_HEADER_ENCODING_VERSION)VNSTRING(WSP_1_4, "Profile-Warning", WSP_HEADER_PROFILE_WARNING_V14)VNSTRING(WSP_1_4, "Content-Disposition", WSP_HEADER_CONTENT_DISPOSITION_V14)VNSTRING(WSP_1_4, "X-WAP-Security", WSP_HEADER_X_WAP_SECURITY)VNSTRING(WSP_1_4, "Cache-Control", WSP_HEADER_CACHE_CONTROL_V14))/* Table 40. Content Type Assignments. These are defined by WINA, * see http://www.wapforum.org/wina/wsp-content-type.htm */LINEAR(content_type,VSTRING(WSP_1_1, "*/*")VSTRING(WSP_1_1, "text/*")VSTRING(WSP_1_1, "text/html")VSTRING(WSP_1_1, "text/plain")VSTRING(WSP_1_1, "text/x-hdml")VSTRING(WSP_1_1, "text/x-ttml")VSTRING(WSP_1_1, "text/x-vCalendar")VSTRING(WSP_1_1, "text/x-vCard")VSTRING(WSP_1_1, "text/vnd.wap.wml")VSTRING(WSP_1_1, "text/vnd.wap.wmlscript")VSTRING(WSP_1_1, "application/vnd.wap.catc")VSTRING(WSP_1_1, "multipart/*")VSTRING(WSP_1_1, "multipart/mixed")VSTRING(WSP_1_1, "multipart/form-data")VSTRING(WSP_1_1, "multipart/byteranges")VSTRING(WSP_1_1, "multipart/alternative")VSTRING(WSP_1_1, "application/*")VSTRING(WSP_1_1, "application/java-vm")VSTRING(WSP_1_1, "application/x-www-form-urlencoded")VSTRING(WSP_1_1, "application/x-hdmlc")VSTRING(WSP_1_1, "application/vnd.wap.wmlc")VSTRING(WSP_1_1, "application/vnd.wap.wmlscriptc")VSTRING(WSP_1_1, "application/vnd.wap.wsic")VSTRING(WSP_1_1, "application/vnd.wap.uaprof")VSTRING(WSP_1_1, "application/vnd.wap.wtls-ca-certificate")VSTRING(WSP_1_1, "application/vnd.wap.wtls-user-certificate")VSTRING(WSP_1_1, "application/x-x509-ca-cert")VSTRING(WSP_1_1, "application/x-x509-user-cert")VSTRING(WSP_1_1, "image/*")VSTRING(WSP_1_1, "image/gif")VSTRING(WSP_1_1, "image/jpeg")VSTRING(WSP_1_1, "image/tiff")VSTRING(WSP_1_1, "image/png")VSTRING(WSP_1_1, "image/vnd.wap.wbmp")VSTRING(WSP_1_1, "application/vnd.wap.multipart.*")VSTRING(WSP_1_1, "application/vnd.wap.multipart.mixed")VSTRING(WSP_1_1, "application/vnd.wap.multipart.form-data")VSTRING(WSP_1_1, "application/vnd.wap.multipart.byteranges")VSTRING(WSP_1_1, "application/vnd.wap.multipart.alternative")VSTRING(WSP_1_1, "application/xml")VSTRING(WSP_1_1, "text/xml")VSTRING(WSP_1_1, "application/vnd.wap.wbxml")VSTRING(WSP_1_1, "application/x-x968-cross-cert")VSTRING(WSP_1_1, "application/x-x968-ca-cert")VSTRING(WSP_1_1, "application/x-x968-user-cert")VSTRING(WSP_1_1, "text/vnd.wap.si")VSTRING(WSP_1_2, "application/vnd.wap.sic")VSTRING(WSP_1_2, "text/vnd.wap.sl")VSTRING(WSP_1_2, "application/vnd.wap.slc")VSTRING(WSP_1_2, "text/vnd.wap.co")VSTRING(WSP_1_2, "application/vnd.wap.coc")VSTRING(WSP_1_2, "application/vnd.wap.multipart.related")VSTRING(WSP_1_2, "application/vnd.wap.sia")VSTRING(WSP_1_3, "text/vnd.wap.connectivity-xml")VSTRING(WSP_1_3, "application/vnd.wap.connectivity-wbxml")VSTRING(WSP_1_4, "application/pkcs7-mime")VSTRING(WSP_1_4, "application/vnd.wap.hashed-certificate")VSTRING(WSP_1_4, "application/vnd.wap.signed-certificate")VSTRING(WSP_1_4, "application/vnd.wap.cert-response")VSTRING(WSP_1_4, "application/xhtml+xml")VSTRING(WSP_1_4, "application/wml+xml")VSTRING(WSP_1_4, "text/css")VSTRING(WSP_1_4, "application/vnd.wap.mms-message")VSTRING(WSP_1_4, "application/vnd.wap.rollover-certificate")VSTRING(WSP_1_5, "application/vnd.wap.locc+wbxml") VSTRING(WSP_1_5, "application/vnd.wap.loc+xml")VSTRING(WSP_1_5, "application/vnd.syncml.dm+wbxml") VSTRING(WSP_1_5, "application/vnd.syncml.dm+xml") VSTRING(WSP_1_5, "application/vnd.syncml.notification") VSTRING(WSP_1_5, "application/vnd.wap.xhtml+xml") VSTRING(WSP_1_5, "application/vnd.wv.csp.cir") VSTRING(WSP_1_5, "application/vnd.oma.dd+xml") VSTRING(WSP_1_5, "application/vnd.oma.drm.message") VSTRING(WSP_1_5, "application/vnd.oma.drm.content")VSTRING(WSP_1_5, "application/vnd.oma.drm.rights+xml") VSTRING(WSP_1_5, "application/vnd.oma.drm.rights+wbxml") )/* Table 42, Character Set Assignment (partial) *//* The full list is at * ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets * but the WSP standard lists these values explicitly. */NUMBERED(charset,ASSIGN("big5", 2026)ASSIGN("iso-10646-ucs-2", 1000)ASSIGN("iso-8859-1", 4)ASSIGN("iso-8859-2", 5)ASSIGN("iso-8859-3", 6)ASSIGN("iso-8859-4", 7)ASSIGN("iso-8859-5", 8)ASSIGN("iso-8859-6", 9)ASSIGN("iso-8859-7", 10)ASSIGN("iso-8859-8", 11)ASSIGN("iso-8859-9", 12)ASSIGN("shift_JIS", 17)ASSIGN("us-ascii", 3)ASSIGN("utf-8", 106))/* Table 38, Well-Known Parameter Assignments */NUMBERED(parameter,VASSIGN(WSP_1_1, "q", 0)VASSIGN(WSP_1_1, "charset", 1)VASSIGN(WSP_1_1, "level", 2)VASSIGN(WSP_1_1, "type", 3)VASSIGN(WSP_1_1, "name", 5)VASSIGN(WSP_1_1, "filename", 6)VASSIGN(WSP_1_1, "differences", 7)VASSIGN(WSP_1_1, "padding", 8)VASSIGN(WSP_1_2, "type", 9)VASSIGN(WSP_1_2, "start", 10)VASSIGN(WSP_1_2, "start-info", 11)VASSIGN(WSP_1_3, "comment", 12)VASSIGN(WSP_1_3, "domain", 13)VASSIGN(WSP_1_3, "max-age", 14)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -