aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/runtime.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 20:48:59 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 21:05:13 +0900
commit0ab867c1b880f6b59bba6899127a0b81be6c79ca (patch)
treef50037ad9aeb57862039237f57f588d5a17d51b5 /crates/shirabe-php-shim/src/runtime.rs
parent195e1d0ec893f4977a37ebb35dc7745dc8c8d3b6 (diff)
downloadphp-shirabe-0ab867c1b880f6b59bba6899127a0b81be6c79ca.tar.gz
php-shirabe-0ab867c1b880f6b59bba6899127a0b81be6c79ca.tar.zst
php-shirabe-0ab867c1b880f6b59bba6899127a0b81be6c79ca.zip
feat(php-shim): implement sprintf/pack/unpack/base64/strip_tags and more
Implement the bulk of string.rs shims: - sprintf() with flags/width/precision/positional args for the common conversions (s/d/u/b/o/x/X/c/f/F) - pack()/unpack() for the C/c/n/v/N/V (+ s/S/i/I unpack) format codes - base64_encode()/base64_decode() (non-strict) - substr_replace, str_bitand, chr, hexdec, stripcslashes, addcslashes, number_format (round-half-away-from-zero), uniqid, strip_tags, html_entity_decode, iconv (UTF-8/ASCII identity) %e/%E/%g/%G, wordwrap, sscanf, php_strip_whitespace and non-UTF-8 iconv remain TODO(phase-d) (exact float-exponent/tokenizer/encoding-table behavior not yet ported). Divergences in ported functions are noted with TODO(phase-d) comments. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/runtime.rs')
0 files changed, 0 insertions, 0 deletions