ScEncodingRange Struct Reference

Public Member Functions

void sc_encoding_range_free (ScEncodingRange encoding_range)
 
ScEncodingRange sc_encoding_range_new (char const *c_str, uint32_t start, uint32_t end)
 

Data Fields

ScData encoding
 
uint32_t start
 
uint32_t end
 

Detailed Description

Character encoding of a range of bytes.

Since
5.8.0

Member Function Documentation

void sc_encoding_range_free ( ScEncodingRange  encoding_range)

Frees the data of the encoding range.

Parameters
encoding_rangeThe encoding range.
Since
5.8.0
ScEncodingRange sc_encoding_range_new ( char const *  c_str,
uint32_t  start,
uint32_t  end 
)

Create new ScEncodingRange.

Returns
The created ScEncodingRange.
Parameters
c_strThe encoding string (e.g. ASCII), the encoding string will be truncated if more than 255 characters.
startstarting index of the encoding string in the code
endending index of the encoding string in the code
Since
5.8.0

Field Documentation

ScData ScEncodingRange::encoding

encapsulates a charset encoding name as defined by IANA (http://www.iana.org/assignments/character-sets/character-sets.xhtml)


The documentation for this struct was generated from the following file: