aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/string.rs
AgeCommit message (Collapse)Author
2026-06-27refactor: fix compiler warnings and clippy warningsnsfisis
2026-06-26test: port 59 autoload/vcs/installer/util/command tests; fix output capturensfisis
Port autoload_generator (24), bitbucket (14), suggested_packages (11), git_driver (6), archive_manager (3), and a bump command test. Fix the ApplicationTester output-capture root cause (php://memory streams must be readable regardless of fopen mode). Implement posix_getuid/geteuid, the PCRE 'A' anchored modifier, php_strip_whitespace, stream_get_wrappers, is_callable scalars; fix preg_quote angle-bracket escaping and class-map parser regexes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21feat(php-shim): implement sprintf/pack/unpack/base64/strip_tags and morensfisis
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>
2026-06-21feat(php-shim): implement array sort/merge/unique/splice helpersnsfisis
Implement array_unique, array_splice, array_merge_recursive, krsort, ksort, asort, sort_with_flags and sort_natural_flag_case, plus the strnatcmp/strnatcasecmp port they rely on. Drop array_key_last and array_splice_mixed in favour of existing helpers at the call sites. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21refactor(php-shim): split lib.rsnsfisis