My Project
|
converting XML to string and vice versa. More...
Static Public Member Functions | |
static string | EncodeStringInQuotationFix (string str) |
this version is the same as EncodeStringInQuotation, except that it is in use on the server side. More... | |
static void | EncodeStringInQuotation (ref StringBuilder buff, int nOutputOffset, string input) |
this is something like string.format("%q") in NPL. More... | |
static string | EncodeStringInQuotation (string str) |
replace quotation mark in string e.g. More... | |
static bool | DeserializePureNPLDataBlock (NPLLex.LexState ls, ref NPLObjectProxy objProxy) |
static NPLObjectProxy | MsgStringToNPLTable (string input) |
same as StringToNPLTable(), except that it begins with "msg={...}" More... | |
static NPLObjectProxy | StringToNPLTable (string input) |
converting string to NPL table object More... | |
static bool | SerializeNPLTableToString (string sStorageVar, NPLObjectProxy input, StringBuilder sCode, int nCodeOffset) |
safe convert the NPL table to string. More... | |
static bool | NPLTableToString (string sStorageVar, NPLObjectProxy input, StringBuilder sCode) |
static bool | NPLTableToString (string sStorageVar, NPLObjectProxy input, StringBuilder sCode, int nCodeOffset) |
static string | EncodeStringInQuotationFix (string str) |
this version is the same as EncodeStringInQuotation, except that it is in use on the server side. More... | |
static void | EncodeStringInQuotation (ref StringBuilder buff, int nOutputOffset, string input) |
this is something like string.format("%q") in NPL. More... | |
static string | EncodeStringInQuotation (string str) |
replace quotation mark in string e.g. More... | |
static bool | DeserializePureNPLDataBlock (NPLLex.LexState ls, ref NPLObjectProxy objProxy) |
static NPLObjectProxy | MsgStringToNPLTable (string input) |
same as StringToNPLTable(), except that it begins with "msg={...}" More... | |
static NPLObjectProxy | StringToNPLTable (string input) |
converting string to NPL table object More... | |
static bool | SerializeNPLTableToString (string sStorageVar, NPLObjectProxy input, StringBuilder sCode, int nCodeOffset) |
safe convert the NPL table to string. More... | |
static bool | NPLTableToString (string sStorageVar, NPLObjectProxy input, StringBuilder sCode) |
static bool | NPLTableToString (string sStorageVar, NPLObjectProxy input, StringBuilder sCode, int nCodeOffset) |
converting XML to string and vice versa.
|
inlinestatic |
Fixed: 2008.6.3 LiXizhi the following is for auto indexed table items {"string1", "string2\r\n", 213, nil,["A"]="B", true, false, {"another table", "field1"}}
|
inlinestatic |
Fixed: 2008.6.3 LiXizhi the following is for auto indexed table items {"string1", "string2\r\n", 213, nil,["A"]="B", true, false, {"another table", "field1"}}
|
inlinestatic |
this is something like string.format("%q") in NPL.
[thread-safe] replace quotation mark in string. e.g. "\" will be converted to "\"
buff | into which buffer to write the output |
nOutputOffset | the output will be written to output[nOutputOffset]. default to 0,which is the beginning |
input | the input string to be encoded |
|
inlinestatic |
this is something like string.format("%q") in NPL.
[thread-safe] replace quotation mark in string. e.g. "\" will be converted to "\"
buff | into which buffer to write the output |
nOutputOffset | the output will be written to output[nOutputOffset]. default to 0,which is the beginning |
input | the input string to be encoded |
|
inlinestatic |
replace quotation mark in string e.g.
"\" will be converted to "\"
str | if nil, it will return "nil" |
|
inlinestatic |
replace quotation mark in string e.g.
"\" will be converted to "\"
str | if nil, it will return "nil" |
|
inlinestatic |
this version is the same as EncodeStringInQuotation, except that it is in use on the server side.
the server side sees as "
". This is a client/server fix for a bug of xml transmission of in .net 2.
str |
|
inlinestatic |
this version is the same as EncodeStringInQuotation, except that it is in use on the server side.
the server side sees as "
". This is a client/server fix for a bug of xml transmission of in .net 2.
str |
|
inlinestatic |
same as StringToNPLTable(), except that it begins with "msg={...}"
input | such as "msg={nid=10, name=\"value", tab={name1="value1"}}" |
|
inlinestatic |
same as StringToNPLTable(), except that it begins with "msg={...}"
input | such as "msg={nid=10, name=\"value", tab={name1="value1"}}" |
|
inlinestatic |
safe convert the NPL table to string.
if the input is nil, output is not assigned.
sStorageVar | if null, output is pure table{}, otherwise it is sStorageVar={} |
input | |
sCode | |
nCodeOffset |
|
inlinestatic |
safe convert the NPL table to string.
if the input is nil, output is not assigned.
sStorageVar | if null, output is pure table{}, otherwise it is sStorageVar={} |
input | |
sCode | |
nCodeOffset |
|
inlinestatic |
converting string to NPL table object
input | such as "{nid=10, name=\"value", tab={name1="value1"}}" |
|
inlinestatic |
converting string to NPL table object
input | such as "{nid=10, name=\"value", tab={name1="value1"}}" |