From 51e97c79cc117f739835dfe124f017d97b0f2c30 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 May 2026 19:56:12 +0900 Subject: feat(port): port Auditor.php --- crates/shirabe-php-shim/src/lib.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'crates/shirabe-php-shim/src/lib.rs') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 0d749fd..99ab4f0 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -864,6 +864,12 @@ pub fn str_contains(haystack: &str, needle: &str) -> bool { todo!() } +pub fn str_starts_with(haystack: &str, needle: &str) -> bool { + todo!() +} + +pub const DATE_ATOM: &str = "Y-m-d\\TH:i:sP"; + pub fn usleep(microseconds: u64) { todo!() } @@ -993,6 +999,27 @@ where todo!() } +pub fn array_all(array: &[T], callback: F) -> bool +where + F: Fn(&T) -> bool, +{ + todo!() +} + +pub fn array_any(array: &[T], callback: F) -> bool +where + F: Fn(&T) -> bool, +{ + todo!() +} + +pub fn array_reduce(array: &[T], callback: F, initial: U) -> U +where + F: Fn(U, &T) -> U, +{ + todo!() +} + pub fn array_intersect(array1: &[T], array2: &[T]) -> Vec { todo!() } -- cgit v1.3.1