From 3a904ed05c7abae058a0a6afc730d1a902e8b9a4 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 24 Jul 2004 01:52:45 +0000 Subject: [PATCH] added trim() --- plugins/include/string.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/include/string.inc b/plugins/include/string.inc index 0dc0af42..886c7a34 100755 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -76,6 +76,9 @@ native parse(const text[], ... ); any number of arguments */ native strbreak(const text[], Left[], leftLen, Right[], rightLen); +/* Strips spaces from the beginning and end of a string. */ +native trim(text[]); + /* Converts all chars in string to lower case. */ native strtolower(string[]);