Property | Type | Description | |
---|---|---|---|
$_entity_lookup | Reference to entity lookup table. | ||
$_special_dec2str | Decimal to parsed string conversion table for special entities. | ||
$_special_ent2dec | Stripped entity names to decimal conversion table for special entities. | ||
$_substituteEntitiesRegex | Callback regex string for parsing entities. |
Method | Description | |
---|---|---|
substituteNonSpecialEntities ( string $string ) : string | Substitutes non-special entities with their parsed equivalents. Since running this whenever you have parsed character is t3h 5uck, we run it before everything else. | |
substituteSpecialEntities ( string $string ) : string | Substitutes only special entities with their parsed equivalents. |
Method | Description | |
---|---|---|
nonSpecialEntityCallback ( array $matches ) : string | Callback function for substituteNonSpecialEntities() that does the work. | |
specialEntityCallback ( array $matches ) : string | Callback function for substituteSpecialEntities() that does the work. |
protected nonSpecialEntityCallback ( array $matches ) : string | ||
$matches | array | PCRE matches array, with 0 the entire match, and either index 1, 2 or 3 set with a hex value, dec value, or string (respectively). |
return | string | Replacement string. |
protected specialEntityCallback ( array $matches ) : string | ||
$matches | array | PCRE-style matches array, with 0 the entire match, and either index 1, 2 or 3 set with a hex value, dec value, or string (respectively). |
return | string | Replacement string. |
public substituteNonSpecialEntities ( string $string ) : string | ||
$string | string | String to have non-special entities parsed. |
return | string | Parsed string. |
public substituteSpecialEntities ( string $string ) : string | ||
$string | string | String to have non-special entities parsed. |
return | string | Parsed string. |
protected $_special_dec2str |
protected $_special_ent2dec |