[Laszlo-checkins] r10843 - in openlaszlo/trunk: WEB-INF/lps/lfc/core WEB-INF/lps/lfc/helpers WEB-INF/lps/lfc/kernel/swf lps/includes/source test
bargull@openlaszlo.org
bargull at openlaszlo.org
Mon Sep 1 13:20:30 PDT 2008
Author: bargull
Date: 2008-09-01 13:20:19 -0700 (Mon, 01 Sep 2008)
New Revision: 10843
Added:
openlaszlo/trunk/WEB-INF/lps/lfc/core/LzCache.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzRegExp.lzs
openlaszlo/trunk/lps/includes/source/regexp.js
openlaszlo/trunk/test/regexp.lzx
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/core/Library.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/helpers/Library.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/Library.lzs
openlaszlo/trunk/lps/includes/source/embed-library.lzs
Log:
Change 20080823-bargull-ZMZ by bargull at dell--p4--2-53 on 2008-08-23 21:13:55
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: add RegExp support to swf8
New Features: LPP-1584, LPP-6546
Bugs Fixed:
Technical Reviewer: max
QA Reviewer: rbitter
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Adds support for RegExp to swf8 by using Flash's ExternalInterface to proxy regular expressions to the browser.
Also defines "String.prototype.match", "String.prototype.replace" and "String.prototype.search".
Internally a simple cache is used to reuse compiled RegExps on the browser-part (LzCache).
Some extra work was necessary to workaround ExternalInterface bugs, this is documented in "LzRegExp.lzs".
UPDATES:
- LzCache: changed type from "Object" to "*" for swf9
- LzCache: fixed braino in LzCache#clear()
- LzCache: moved class from lfc/helpers to lfc/core, because it is needed in the kernel/swf8, but lfc/helpers is included after the kernel-files
- RegExp: changed "is RegExp" to "instanceof RegExp" for a small performance improvement (cf. LPP-6692)
- RegExp: added indexOf-test for a small performance improvement
Tests:
buildlfc swf8 + cd lps/includes/source; ant clean build
test/regexp.lzx
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/Library.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/Library.lzs 2008-08-30 18:31:13 UTC (rev 10842)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/Library.lzs 2008-09-01 20:20:19 UTC (rev 10843)
@@ -9,6 +9,7 @@
#include "core/LzConstants.lzs"
#include "core/LzDefs.lzs"
+#include "core/LzCache.lzs"
if ($swf9) {
#include "core/dummyclasses.js"
@@ -17,7 +18,6 @@
#include "core/PresentationTypes.lzs"
#include "core/LzNode.lzs"
-
if ($swf9) {
} else {
#include "core/UserClass.lzs"
Added: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzCache.lzs
Property changes on: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzCache.lzs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/helpers/Library.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/helpers/Library.lzs 2008-08-30 18:31:13 UTC (rev 10842)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/helpers/Library.lzs 2008-09-01 20:20:19 UTC (rev 10843)
@@ -7,7 +7,6 @@
* @access private
*/
-
#include "helpers/LzFont.lzs"
#include "helpers/LzSelectionManager.lzs"
#include "helpers/LzDataSelectionManager.lzs"
@@ -16,16 +15,8 @@
if ($as2) {
} else if ($swf9) {
} else if ($js1) {
- //
} else {
Debug.error('helpers/Library.lzs unsupported runtime %s', $runtime);
}
-
#include "helpers/LzState.lzs"
-
-
-
-
-
-
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/Library.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/Library.lzs 2008-08-30 18:31:13 UTC (rev 10842)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/Library.lzs 2008-09-01 20:20:19 UTC (rev 10843)
@@ -32,3 +32,4 @@
#include "kernel/swf/LzScreenKernel.as"
#include "kernel/swf/LzContextMenuKernel.lzs"
#include "kernel/swf/dojo/Library.lzs"
+#include "kernel/swf/LzRegExp.lzs"
Added: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzRegExp.lzs
Property changes on: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzRegExp.lzs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified: openlaszlo/trunk/lps/includes/source/embed-library.lzs
===================================================================
--- openlaszlo/trunk/lps/includes/source/embed-library.lzs 2008-08-30 18:31:13 UTC (rev 10842)
+++ openlaszlo/trunk/lps/includes/source/embed-library.lzs 2008-09-01 20:20:19 UTC (rev 10843)
@@ -9,5 +9,6 @@
#include "iframemanager.js"
#include "mousewheel.js"
#include "lzhistory.js"
+#include "regexp.js"
// Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is
// subject to license terms.
Added: openlaszlo/trunk/lps/includes/source/regexp.js
Property changes on: openlaszlo/trunk/lps/includes/source/regexp.js
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: openlaszlo/trunk/test/regexp.lzx
Property changes on: openlaszlo/trunk/test/regexp.lzx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
More information about the Laszlo-checkins
mailing list