Update String::containsOnlyLatin1() to avoid converting to 16 bits
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Dec 2011 20:27:47 +0000 (20:27 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Dec 2011 20:27:47 +0000 (20:27 +0000)
commit25ee5147b4284162e155634f09c2a97501d6f747
tree8a82c55580756ab5f9db2ea8c19352394b5fe431
parenta9e6be6b215ceece9d55070212e4ac34050613c2
Update String::containsOnlyLatin1() to avoid converting to 16 bits
https://bugs.webkit.org/show_bug.cgi?id=73797

Reviewed by Andreas Kling.

When the String use 8bits StringImpl, there is no need to iterate
over the string.

The function charactersAreAllLatin1() is removed because it is not
used anywhere.

* wtf/text/WTFString.h:
(WTF::String::containsOnlyLatin1):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@102028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/text/WTFString.h