diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-16 21:24:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-16 22:17:14 +0900 |
| commit | 2d42ac22612fdf2ce21994ba1f571bbeec540994 (patch) | |
| tree | d87e0107fe6f095e852cc6306bdbb231652e25cc /crates/shirabe-php-shim | |
| parent | 312203b6ece426dc4c678da76f66a43cca2ebc0f (diff) | |
| download | php-shirabe-2d42ac22612fdf2ce21994ba1f571bbeec540994.tar.gz php-shirabe-2d42ac22612fdf2ce21994ba1f571bbeec540994.tar.zst php-shirabe-2d42ac22612fdf2ce21994ba1f571bbeec540994.zip | |
feat(port): port ValidatingArrayLoader.php
Diffstat (limited to 'crates/shirabe-php-shim')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 50 |
1 files changed, 50 insertions, 0 deletions
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<i64> { + todo!() +} + +pub fn strcasecmp(s1: &str, s2: &str) -> i64 { + todo!() +} + +pub fn sprintf(format: &str, args: &[PhpMixed]) -> String { + todo!() +} + +pub fn array_values<V: Clone>(array: &IndexMap<String, V>) -> Vec<V> { + todo!() +} + +pub fn array_keys<V>(array: &IndexMap<String, V>) -> Vec<String> { + 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<i64>) -> String { + todo!() +} + +pub const FILTER_VALIDATE_EMAIL: i64 = 274; + pub fn empty(value: &PhpMixed) -> bool { todo!() } |
