On second thought, this belongs in the Language swc.

Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/36cea4fc
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/36cea4fc
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/36cea4fc

Branch: refs/heads/browser-event
Commit: 36cea4fcf3c19760245d122b76f87a2995575520
Parents: 06675c9
Author: Harbs <[email protected]>
Authored: Wed Jul 19 14:12:21 2017 +0300
Committer: Harbs <[email protected]>
Committed: Wed Jul 19 14:12:21 2017 +0300

----------------------------------------------------------------------
 .../projects/Core/src/main/flex/CoreClasses.as  |  2 --
 .../org/apache/flex/language/string/match.as    | 33 --------------------
 .../org/apache/flex/language/string/search.as   | 33 --------------------
 .../Language/src/main/flex/LanguageClasses.as   |  3 ++
 .../org/apache/flex/language/string/match.as    | 33 ++++++++++++++++++++
 .../org/apache/flex/language/string/search.as   | 33 ++++++++++++++++++++
 6 files changed, 69 insertions(+), 68 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36cea4fc/frameworks/projects/Core/src/main/flex/CoreClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/CoreClasses.as 
b/frameworks/projects/Core/src/main/flex/CoreClasses.as
index 062db98..e062a8b 100644
--- a/frameworks/projects/Core/src/main/flex/CoreClasses.as
+++ b/frameworks/projects/Core/src/main/flex/CoreClasses.as
@@ -216,8 +216,6 @@ internal class CoreClasses
     import org.apache.flex.utils.Proxy; Proxy;
     import org.apache.flex.core.UIHTMLElementWrapper; UIHTMLElementWrapper;
        
-       import org.apache.flex.language.string.match; match;
-       import org.apache.flex.language.string.search; search;
        COMPILE::JS
        {
            import org.apache.flex.core.IFlexJSElement; IFlexJSElement;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36cea4fc/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/match.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/match.as
 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/match.as
deleted file mode 100644
index 06b51c3..0000000
--- 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/match.as
+++ /dev/null
@@ -1,33 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.language.string
-{
-    public function match(str:String,pattern:String):Array
-    {
-        trace("warning: String.match() should be called with a RegExp object 
rather than a String");
-        try
-        {
-            return str.match(pattern);
-        }
-        catch(err:Error)
-        {
-            return null;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36cea4fc/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/search.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/search.as
 
b/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/search.as
deleted file mode 100644
index 03c5cb5..0000000
--- 
a/frameworks/projects/Core/src/main/flex/org/apache/flex/language/string/search.as
+++ /dev/null
@@ -1,33 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.flex.language.string
-{
-    public function search(str:String,pattern:String):int
-    {
-        trace("warning: String.search() should be called with a RegExp object 
rather than a String");
-        try
-        {
-            return str.search(pattern);
-        }
-        catch(err:Error)
-        {
-            return -1;
-        }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36cea4fc/frameworks/projects/Language/src/main/flex/LanguageClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Language/src/main/flex/LanguageClasses.as 
b/frameworks/projects/Language/src/main/flex/LanguageClasses.as
index 4280e23..670a9cd 100644
--- a/frameworks/projects/Language/src/main/flex/LanguageClasses.as
+++ b/frameworks/projects/Language/src/main/flex/LanguageClasses.as
@@ -31,7 +31,10 @@ internal class LanguageClasses
            import org.apache.flex.utils.Language; Language;
                import QName; QName;
                import Namespace; Namespace;
+
        }
+       import org.apache.flex.language.string.match; match;
+       import org.apache.flex.language.string.search; search;
 }
 
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36cea4fc/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/match.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/match.as
 
b/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/match.as
new file mode 100644
index 0000000..06b51c3
--- /dev/null
+++ 
b/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/match.as
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.language.string
+{
+    public function match(str:String,pattern:String):Array
+    {
+        trace("warning: String.match() should be called with a RegExp object 
rather than a String");
+        try
+        {
+            return str.match(pattern);
+        }
+        catch(err:Error)
+        {
+            return null;
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36cea4fc/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/search.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/search.as
 
b/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/search.as
new file mode 100644
index 0000000..03c5cb5
--- /dev/null
+++ 
b/frameworks/projects/Language/src/main/flex/org/apache/flex/language/string/search.as
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.language.string
+{
+    public function search(str:String,pattern:String):int
+    {
+        trace("warning: String.search() should be called with a RegExp object 
rather than a String");
+        try
+        {
+            return str.search(pattern);
+        }
+        catch(err:Error)
+        {
+            return -1;
+        }
+    }
+}
\ No newline at end of file

Reply via email to