diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-16 15:26:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-16 15:26:44 +0900 |
| commit | fe461d7eec72881f2e25d73f2719138fa88b3689 (patch) | |
| tree | c5c4cceb376d9f644440a508639997eda6a3a2a1 /crates/shirabe-php-shim | |
| parent | db14ddcaef545fe47b5c98dc134ae67fb8483e41 (diff) | |
| download | php-shirabe-fe461d7eec72881f2e25d73f2719138fa88b3689.tar.gz php-shirabe-fe461d7eec72881f2e25d73f2719138fa88b3689.tar.zst php-shirabe-fe461d7eec72881f2e25d73f2719138fa88b3689.zip | |
feat(port): port FilesystemRepository.php
Diffstat (limited to 'crates/shirabe-php-shim')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 12972b5..2dbeab6 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1105,6 +1105,43 @@ pub fn str_ends_with(haystack: &str, needle: &str) -> bool { todo!() } +pub fn sort<T: Ord>(array: &mut Vec<T>) { + todo!() +} + +pub fn sort_with_flags<T: Ord>(array: &mut Vec<T>, flags: i64) { + todo!() +} + +pub const SORT_REGULAR: i64 = 0; +pub const SORT_NUMERIC: i64 = 1; +pub const SORT_STRING: i64 = 2; +pub const SORT_NATURAL: i64 = 6; +pub const SORT_FLAG_CASE: i64 = 8; + +pub fn usort<T, F>(array: &mut Vec<T>, compare: F) +where + F: FnMut(&T, &T) -> i64, +{ + todo!() +} + +pub fn ksort<V>(array: &mut IndexMap<String, V>) { + todo!() +} + +pub fn is_int(value: &PhpMixed) -> bool { + todo!() +} + +pub fn is_null(value: &PhpMixed) -> bool { + todo!() +} + +pub fn r#eval(code: &str) -> PhpMixed { + todo!() +} + pub fn call_user_func_array(callback: &str, args: &PhpMixed) -> PhpMixed { todo!() } |
