From 2d42ac22612fdf2ce21994ba1f571bbeec540994 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 May 2026 21:24:58 +0900 Subject: feat(port): port ValidatingArrayLoader.php --- crates/shirabe-php-shim/src/lib.rs | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'crates/shirabe-php-shim') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index e9618e9..64da904 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -118,6 +118,56 @@ pub fn is_string(value: &PhpMixed) -> bool { todo!() } +pub fn is_int(value: &PhpMixed) -> bool { + todo!() +} + +pub fn is_scalar(value: &PhpMixed) -> bool { + todo!() +} + +pub fn is_numeric(value: &PhpMixed) -> bool { + todo!() +} + +pub fn trim(s: &str, chars: &str) -> String { + todo!() +} + +pub fn strtotime(time: &str) -> Option { + todo!() +} + +pub fn strcasecmp(s1: &str, s2: &str) -> i64 { + todo!() +} + +pub fn sprintf(format: &str, args: &[PhpMixed]) -> String { + todo!() +} + +pub fn array_values(array: &IndexMap) -> Vec { + todo!() +} + +pub fn array_keys(array: &IndexMap) -> Vec { + todo!() +} + +pub fn str_replace(search: &str, replace: &str, subject: &str) -> String { + todo!() +} + +pub fn php_to_string(value: &PhpMixed) -> String { + todo!() +} + +pub fn substr(s: &str, start: i64, length: Option) -> String { + todo!() +} + +pub const FILTER_VALIDATE_EMAIL: i64 = 274; + pub fn empty(value: &PhpMixed) -> bool { todo!() } -- cgit v1.3.1