Property | Type | Description | |
---|---|---|---|
MAX_PARAMS | int | ||
TEXT_CAPACITY | int | ||
bClosure | bool | ||
bComments | bool | ||
bEndClosure | bool | ||
bEntities | bool | ||
bHashMode | bool | ||
bLtEntity | bool | ||
cParamChars | byte[] | ||
iChunkLength | int | ||
iChunkOffset | int | ||
iParams | int | ||
oEnc | Encoding | ||
oHTML | string | ||
oParams | object>.System.Collections.Generic.Dictionary | ||
oType | HTMLchunkType | ||
sParams | string[] | ||
sTag | string | ||
sValues | string[] |
Method | Description | |
---|---|---|
AddParam ( string sParam, string sValue, byte cParamChar ) : void |
Adds tag parameter to the chunk
|
|
Clear ( ) : void |
Clears chunk preparing it for
|
|
ConvertParamsToHash ( ) : void |
This function will convert parameters stored in sParams/sValues arrays into oParams hash Useful if generally parsing is done when bHashMode is FALSE. Hash operations are not the fastest, so its best not to use this function.
|
|
Dispose ( ) : void | ||
GenerateHTML ( ) : string |
Generates HTML based on current chunk's data Note: this is not a high performance method and if you want ORIGINAL HTML that was parsed to create this chunk then use relevant HTMLparser method to obtain such HTML then you should use function of parser: SetRawHTML
|
|
GenerateParamHTML ( string sParam, string sValue, char cParamChar ) : string |
Generates HTML for param/value pair
|
|
GenerateParamsHTML ( ) : string |
Generates HTML for params in this chunk
|
|
GetParamValue ( string sParam ) : string |
Returns value of a parameter
|
|
HTMLchunk ( bool p_bHashMode ) : System |
Initialises new HTMLchunk
|
|
MakeSafeParamValue ( string sLine, char cQuoteChar ) : string |
Makes parameter value safe to be used in param - this will check for any conflicting quote chars, but not full entity-encoding
|
|
SetEncoding ( |
Sets encoding to be used for conversion of binary data into string
|
Method | Description | |
---|---|---|
Dispose ( bool bDisposing ) : void |
public AddParam ( string sParam, string sValue, byte cParamChar ) : void | ||
sParam | string | Parameter name (ie color) |
sValue | string | Value of the parameter (ie white) |
cParamChar | byte | |
return | void |
public GenerateParamHTML ( string sParam, string sValue, char cParamChar ) : string | ||
sParam | string | Param |
sValue | string | Value (empty if not specified) |
cParamChar | char | |
return | string |
public GetParamValue ( string sParam ) : string | ||
sParam | string | Parameter |
return | string |
public HTMLchunk ( bool p_bHashMode ) : System | ||
p_bHashMode | bool | Sets |
return | System |
public static MakeSafeParamValue ( string sLine, char cQuoteChar ) : string | ||
sLine | string | Line of text |
cQuoteChar | char | Quote char used in param - any such chars in text will be entity-encoded |
return | string |
public SetEncoding ( |
||
p_oEnc | Encoding object | |
return | void |
public System.Collections.Generic.Dictionary |
||
return | object>.System.Collections.Generic.Dictionary |