Using strncmp() for comparing scheme and port numbers is inefficient
https://bugs.webkit.org/show_bug.cgi?id=75821
Reviewed by Darin Adler.
Replace the equal() function comparing 2 arbitrary strings by a template
comparing the string to an array, character by character.
This is only used for small strings: the schemes and the ports.
* platform/KURL.cpp:
(WebCore::equal):
(WebCore::isDefaultPortForScheme):
(WebCore::isNonFileHierarchicalScheme):
(WebCore::isCanonicalHostnameLowercaseForScheme):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106025
268f45cc-cd09-0410-ab3c-
d52691b4dbfc