diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 20:48:59 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 21:05:13 +0900 |
| commit | 0ab867c1b880f6b59bba6899127a0b81be6c79ca (patch) | |
| tree | f50037ad9aeb57862039237f57f588d5a17d51b5 /crates/shirabe-php-shim/src/runtime.rs | |
| parent | 195e1d0ec893f4977a37ebb35dc7745dc8c8d3b6 (diff) | |
| download | php-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
