update address standardization for cust_location changes
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / _source / classes / fckhtmliterator.js
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/classes/fckhtmliterator.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/classes/fckhtmliterator.js
deleted file mode 100644 (file)
index 2fb3a90..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-/*\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
- *\r
- * == BEGIN LICENSE ==\r
- *\r
- * Licensed under the terms of any of the following licenses at your\r
- * choice:\r
- *\r
- *  - GNU General Public License Version 2 or later (the "GPL")\r
- *    http://www.gnu.org/licenses/gpl.html\r
- *\r
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
- *    http://www.gnu.org/licenses/lgpl.html\r
- *\r
- *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
- *    http://www.mozilla.org/MPL/MPL-1.1.html\r
- *\r
- * == END LICENSE ==\r
- *\r
- * This class can be used to interate through nodes inside a range.\r
- *\r
- * During interation, the provided range can become invalid, due to document\r
- * mutations, so CreateBookmark() used to restore it after processing, if\r
- * needed.\r
- */\r
-\r
-var FCKHtmlIterator = function( source )\r
-{\r
-       this._sourceHtml = source ;\r
-}\r
-FCKHtmlIterator.prototype =\r
-{\r
-       Next : function()\r
-       {\r
-               var sourceHtml = this._sourceHtml ;\r
-               if ( sourceHtml == null )\r
-                       return null ;\r
-\r
-               var match = FCKRegexLib.HtmlTag.exec( sourceHtml ) ;\r
-               var isTag = false ;\r
-               var value = "" ;\r
-               if ( match )\r
-               {\r
-                       if ( match.index > 0 )\r
-                       {\r
-                               value = sourceHtml.substr( 0, match.index ) ;\r
-                               this._sourceHtml = sourceHtml.substr( match.index ) ;\r
-                       }\r
-                       else\r
-                       {\r
-                               isTag = true ;\r
-                               value = match[0] ;\r
-                               this._sourceHtml = sourceHtml.substr( match[0].length ) ;\r
-                       }\r
-               }\r
-               else\r
-               {\r
-                       value = sourceHtml ;\r
-                       this._sourceHtml = null ;\r
-               }\r
-               return { 'isTag' : isTag, 'value' : value } ;\r
-       },\r
-\r
-       Each : function( func )\r
-       {\r
-               var chunk ;\r
-               while ( ( chunk = this.Next() ) )\r
-                       func( chunk.isTag, chunk.value ) ;\r
-       }\r
-} ;\r
-/*\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
- *\r
- * == BEGIN LICENSE ==\r
- *\r
- * Licensed under the terms of any of the following licenses at your\r
- * choice:\r
- *\r
- *  - GNU General Public License Version 2 or later (the "GPL")\r
- *    http://www.gnu.org/licenses/gpl.html\r
- *\r
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
- *    http://www.gnu.org/licenses/lgpl.html\r
- *\r
- *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
- *    http://www.mozilla.org/MPL/MPL-1.1.html\r
- *\r
- * == END LICENSE ==\r
- *\r
- * This class can be used to interate through nodes inside a range.\r
- *\r
- * During interation, the provided range can become invalid, due to document\r
- * mutations, so CreateBookmark() used to restore it after processing, if\r
- * needed.\r
- */\r
-\r
-var FCKHtmlIterator = function( source )\r
-{\r
-       this._sourceHtml = source ;\r
-}\r
-FCKHtmlIterator.prototype =\r
-{\r
-       Next : function()\r
-       {\r
-               var sourceHtml = this._sourceHtml ;\r
-               if ( sourceHtml == null )\r
-                       return null ;\r
-\r
-               var match = FCKRegexLib.HtmlTag.exec( sourceHtml ) ;\r
-               var isTag = false ;\r
-               var value = "" ;\r
-               if ( match )\r
-               {\r
-                       if ( match.index > 0 )\r
-                       {\r
-                               value = sourceHtml.substr( 0, match.index ) ;\r
-                               this._sourceHtml = sourceHtml.substr( match.index ) ;\r
-                       }\r
-                       else\r
-                       {\r
-                               isTag = true ;\r
-                               value = match[0] ;\r
-                               this._sourceHtml = sourceHtml.substr( match[0].length ) ;\r
-                       }\r
-               }\r
-               else\r
-               {\r
-                       value = sourceHtml ;\r
-                       this._sourceHtml = null ;\r
-               }\r
-               return { 'isTag' : isTag, 'value' : value } ;\r
-       },\r
-\r
-       Each : function( func )\r
-       {\r
-               var chunk ;\r
-               while ( ( chunk = this.Next() ) )\r
-                       func( chunk.isTag, chunk.value ) ;\r
-       }\r
-} ;\r