From 38621c67917fd015f884ea04517791cdc5058c6d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 11 Aug 2026 23:28:40 +0900 Subject: chore(php-shim): drop the substring predicate ports str_contains(), str_starts_with() and str_ends_with() were thin wrappers over the str methods of the same semantics. Call sites now use contains()/starts_with()/ends_with() directly. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe-php-shim/src/string.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'crates/shirabe-php-shim/src/string.rs') diff --git a/crates/shirabe-php-shim/src/string.rs b/crates/shirabe-php-shim/src/string.rs index 8cab6eca..e53fc02c 100644 --- a/crates/shirabe-php-shim/src/string.rs +++ b/crates/shirabe-php-shim/src/string.rs @@ -14,18 +14,6 @@ pub fn str_replace(search: &str, replace: &str, subject: &str) -> String { subject.replace(search, replace) } -pub fn str_contains(haystack: &str, needle: &str) -> bool { - haystack.contains(needle) -} - -pub fn str_starts_with(haystack: &str, needle: &str) -> bool { - haystack.starts_with(needle) -} - -pub fn str_ends_with(haystack: &str, needle: &str) -> bool { - haystack.ends_with(needle) -} - pub fn substr_count(haystack: &str, needle: &str) -> i64 { if needle.is_empty() { panic!("substr_count(): Argument #2 ($needle) cannot be empty"); -- cgit v1.3.1-4-g156e