diff options
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 27 |
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!() } |
