Move stringMatchesWildcardString from WebKit2 to WebCore
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Mar 2017 23:56:03 +0000 (23:56 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Mar 2017 23:56:03 +0000 (23:56 +0000)
commitaf893aa0895204d06d72a51156278f5d48ac9f69
tree00466cae462006f532760c5b1703427af5fc3e43
parent26e4ab5278d1949d3a0a88bc0a640d9c24bfc7f4
Move stringMatchesWildcardString from WebKit2 to WebCore
https://bugs.webkit.org/show_bug.cgi?id=169065

Reviewed by Alexey Proskuryakov.

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj: Added StringUtilities.h and StringUtilities.mm
* PlatformMac.cmake: Added StringUtilities.mm
* platform/mac/StringUtilities.h: Added.
* platform/mac/StringUtilities.mm: Added.
(WebCore::wildcardRegexPatternString): Added.
(WebCore::stringMatchesWildcardString): Added.

Source/WebKit2:

* Platform/mac/StringUtilities.h: Moved stringMatchesWildcardString to WebCore.
* WebKit2.xcodeproj/project.pbxproj: Make StringUtilities.h a project header.
* Platform/mac/StringUtilities.mm:
(WebKit::wildcardRegexPatternString): Moved to WebCore.
(WebKit::stringMatchesWildcardString): Ditto.
* WebProcess/Plugins/WebPluginInfoProvider.cpp: Using stringMatchesWildcardString from WebCore.

Tools:

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Moved StringUtilities.mm
* TestWebKitAPI/Tests/WebCore/StringUtilities.mm: Copied from Tools/TestWebKitAPI/Tests/WebKit2/mac/StringUtilities.mm.
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit2/mac/StringUtilities.mm: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
Source/WebCore/ChangeLog
Source/WebCore/PlatformMac.cmake
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/platform/mac/StringUtilities.h [new file with mode: 0644]
Source/WebCore/platform/mac/StringUtilities.mm [new file with mode: 0644]
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/mac/StringUtilities.h
Source/WebKit2/Platform/mac/StringUtilities.mm
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/WebProcess/Plugins/WebPluginInfoProvider.cpp
Tools/ChangeLog
Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
Tools/TestWebKitAPI/Tests/WebCore/StringUtilities.mm [new file with mode: 0644]
Tools/TestWebKitAPI/Tests/WebKit2/mac/StringUtilities.mm [deleted file]