aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-16 19:56:12 +0900
committernsfisis <nsfisis@gmail.com>2026-05-16 19:56:12 +0900
commit51e97c79cc117f739835dfe124f017d97b0f2c30 (patch)
treea52661170ab7d60424c6c11bafe2ca180f784704 /crates/shirabe-php-shim
parent99f69c58b35a1731bd09dbe8646899a295bd4c66 (diff)
downloadphp-shirabe-51e97c79cc117f739835dfe124f017d97b0f2c30.tar.gz
php-shirabe-51e97c79cc117f739835dfe124f017d97b0f2c30.tar.zst
php-shirabe-51e97c79cc117f739835dfe124f017d97b0f2c30.zip
feat(port): port Auditor.php
Diffstat (limited to 'crates/shirabe-php-shim')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs27
1 files changed, 27 insertions, 0 deletions
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<T, F>(array: &[T], callback: F) -> bool
+where
+ F: Fn(&T) -> bool,
+{
+ todo!()
+}
+
+pub fn array_any<T, F>(array: &[T], callback: F) -> bool
+where
+ F: Fn(&T) -> bool,
+{
+ todo!()
+}
+
+pub fn array_reduce<T, U, F>(array: &[T], callback: F, initial: U) -> U
+where
+ F: Fn(U, &T) -> U,
+{
+ todo!()
+}
+
pub fn array_intersect<T: Clone + PartialEq>(array1: &[T], array2: &[T]) -> Vec<T> {
todo!()
}