Home | History | Annotate | Download | only in Shared

Lines Matching refs:WebString

37 // WebString - A string type suitable for vending to an API.
39 class WebString : public APIObject {
43 static PassRefPtr<WebString> create(const String& string)
45 return adoptRef(new WebString(string));
48 static PassRefPtr<WebString> create(JSStringRef jsStringRef)
50 return adoptRef(new WebString(String(JSStringGetCharactersPtr(jsStringRef), JSStringGetLength(jsStringRef))));
53 static PassRefPtr<WebString> createFromUTF8String(const char* string)
55 return adoptRef(new WebString(String::fromUTF8(string)));
85 bool equal(WebString* other) { return m_string == other->m_string; }
94 WebString(const String& string)