Module legacy

Module legacy 

Source
Expand description

Legacy character encodings and fallback translation tables.

Functions§

dce2hex
Port of the legacy PHP dce2hex function. NOTE: Replicates the low-nibble-first hex decoding behavior of pack("h*", ...) in PHP.
dce2txt
Port of the legacy PHP dce2txt function. NOTE: The dce2txt function works correctly in PHP because it properly defines and initializes the $hex variable at the start, unlike the inline 3_0a_old branch.
dce_convert_1_43
get_dce_version_1_43
hex2dce
Port of the legacy PHP hex2dce function. NOTE: Replicates high-nibble-first / standard hex decoding of pack("H*", ...) in PHP.
legacy_cdce_to_html_snippet
Port of the legacy PHP legacy_cdce_to_html_snippet function. NOTE: Replicates PHP’s legacy_cdce_to_html_snippet, replacing @(\d+)@ patterns with formatting values from tables.cdce_html_legacy.
onestep_3_0a_old_to_none
NOTE: In the original PHP version (both v1/1.43 and 2.51 legacy code), there is a bug where the 3_0a_old case branch in dce_convert attempts to loop using a $hex variable that was never defined/initialized in that branch. This Rust implementation corrects this bug by properly initializing the hex string from data.
onestep_dce2hex_to_none
onestep_dce2txt_to_none
onestep_hex2dce_to_none
onestep_legacy_cdce_to_html_l
onestep_legacy_cdce_to_html_snippet_l