diff options
author | alonso <alonso@us.es> | 2009-11-04 11:04:54 +0000 |
---|---|---|
committer | alonso <alonso@us.es> | 2009-11-04 11:04:54 +0000 |
commit | 7b3bc4abe41dff4402ee433a7eab47c2b36c47bc (patch) | |
tree | 8830f3b0fbec41b03f207273eb6f5ff90eaa09ce /admin/WebConsole/jscripts/cadenas.js | |
parent | 3acdc93388ab0907242a9a074df54e1cc93b7908 (diff) |
git-svn-id: https://opengnsys.es/svn/trunk@481 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/jscripts/cadenas.js')
-rw-r--r-- | admin/WebConsole/jscripts/cadenas.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/admin/WebConsole/jscripts/cadenas.js b/admin/WebConsole/jscripts/cadenas.js deleted file mode 100644 index eb8b7ede..00000000 --- a/admin/WebConsole/jscripts/cadenas.js +++ /dev/null @@ -1,45 +0,0 @@ -// ************************************************************************************************************************************************* -// Libreria de scripts de Javascript -// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla -// Fecha Creación:2003-2004 -// Fecha Última modificación: Noviembre-2005 -// Nombre del fichero: cadenas.js -// Descripción : -// Este fichero implementa funciones de uso común para cadenas -// ************************************************************************************************************************************************* -function TrimLeft( str ) { - var resultStr = ""; - var i = len = 0; - if (str+"" == "undefined" || str == null) return null; - str += ""; - if (str.length == 0) - resultStr = ""; - else { - len = str.length; - while ((i <= len) && (str.charAt(i) == " ")) i++; - resultStr = str.substring(i, len); - } - return resultStr; -} -//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -function TrimRight( str ) { - var resultStr = ""; - var i = 0; - if (str+"" == "undefined" || str == null) return null; - str += ""; - if (str.length == 0) - resultStr = ""; - else { - i = str.length - 1; - while ((i >= 0) && (str.charAt(i) == " ")) i--; - resultStr = str.substring(0, i + 1); - } - return resultStr; - } -//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -function Trim( str ) { - var resultStr = ""; - resultStr = TrimLeft(str); - resultStr = TrimRight(resultStr); - return resultStr; -}
\ No newline at end of file |