aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim/src')
-rw-r--r--crates/shirabe-php-shim/src/string.rs12
1 files changed, 0 insertions, 12 deletions
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");