blob: 1e2c2a0f2ca3b62ab08927b509d96fc4dc21be8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//! Rust port from the original C implementation in php-src.
//! See `LICENSE.md` at the repository root.
//!
//! Rules for this crate:
//!
//! * Any code written while looking at php-src belongs here, and nowhere else. `shirabe-php-shim`
//! must not contain php-src derived code; it depends on this crate instead.
//! * The dependency direction is `shirabe-php-shim` -> `shirabe-php-src` only. This crate must not
//! depend on any other crate in the workspace, so that BSD-derived code cannot pull in
//! MIT-licensed types.
//! * The module layout mirrors php-src's own tree (`src/standard/string.rs` holds code derived
//! from `ext/standard/string.c`), so the origin of a function is visible from its path.
//! * Every item carries a fixed-format origin comment:
//!
//! ```text
//! /// php-src: ext/standard/strnatcmp.c `strnatcmp_ex` (PHP 8.5.2)
//! ```
pub mod standard;
|