Home
last modified time | relevance | path

Searched refs:UTF8Length (Results 1 – 20 of 20) sorted by relevance

/external/webkit/Source/WebCore/bridge/c/
Dc_utility.cpp49 static String convertUTF8ToUTF16WithLatin1Fallback(const NPUTF8* UTF8Chars, int UTF8Length) in convertUTF8ToUTF16WithLatin1Fallback() argument
51 ASSERT(UTF8Chars || UTF8Length == 0); in convertUTF8ToUTF16WithLatin1Fallback()
53 if (UTF8Length == -1) in convertUTF8ToUTF16WithLatin1Fallback()
54 UTF8Length = static_cast<int>(strlen(UTF8Chars)); in convertUTF8ToUTF16WithLatin1Fallback()
56 String result = String::fromUTF8(UTF8Chars, UTF8Length); in convertUTF8ToUTF16WithLatin1Fallback()
63 result = String(UTF8Chars, UTF8Length); in convertUTF8ToUTF16WithLatin1Fallback()
148 return String::fromUTF8WithLatin1Fallback(string->UTF8Characters, string->UTF8Length); in convertNPStringToUTF16()
/external/webkit/Source/WebCore/bridge/
Dnpruntime.cpp87 variant->value.stringValue.UTF8Length = value->UTF8Length; in NPN_InitializeVariantWithStringCopy()
88 … variant->value.stringValue.UTF8Characters = (NPUTF8 *)malloc(sizeof(NPUTF8) * value->UTF8Length); in NPN_InitializeVariantWithStringCopy()
91 …iant->value.stringValue.UTF8Characters, value->UTF8Characters, sizeof(NPUTF8) * value->UTF8Length); in NPN_InitializeVariantWithStringCopy()
104 variant->value.stringValue.UTF8Length = 0; in _NPN_ReleaseVariantValue()
Dtestbindings.cpp129 …strncpy (msgBuf, message->value.stringValue.UTF8Characters, message->value.stringValue.UTF8Length); in logMessage()
130 msgBuf[message->value.stringValue.UTF8Length] = 0; in logMessage()
147 aString.UTF8Length = strlen (msg); in setDoubleValue()
158 aString.UTF8Length = strlen (msg); in setIntValue()
175 aString.UTF8Length = strlen (msg); in setBooleanValue()
303 newInstance->stringValue.value.stringValue.UTF8Length = strlen ("Hello world"); in myAllocate()
Dnpruntime.h87 uint32_t UTF8Length; member
/external/webkit/Tools/DumpRenderTree/chromium/
DCppVariant.cpp88 uint32_t len = this_value->UTF8Length; in isEqual()
89 return len == other_value->UTF8Length in isEqual()
223 value.stringValue.UTF8Length); in toString()
290 NPVARIANT_TO_STRING(indexValue).UTF8Length); in toStringVector()
/external/webkit/Source/WebKit2/WebProcess/Plugins/Netscape/
DNPRuntimeUtilities.cpp54 npString.UTF8Length = string.length(); in createNPString()
124 variant->value.stringValue.UTF8Length = 0; in releaseNPVariantValue()
DNPRuntimeObjectMap.cpp134 … variant.value.stringValue.UTF8Length)); in convertNPVariantToJSValue()
171 STRINGN_TO_NPVARIANT(npString.UTF8Characters, npString.UTF8Length, variant); in convertJSValueToNPVariant()
DNetscapeBrowserFuncs.cpp667 …ring scriptString = String::fromUTF8WithLatin1Fallback(script->UTF8Characters, script->UTF8Length); in NPN_Evaluate()
/external/webkit/Source/WebCore/bindings/v8/
Dnpruntime.cpp257 variant->value.stringValue.UTF8Length = 0; in _NPN_ReleaseVariantValue()
339 variant->value.stringValue.UTF8Length = value->UTF8Length; in _NPN_InitializeVariantWithStringCopy()
340 …stringValue.UTF8Characters = reinterpret_cast<NPUTF8*>(malloc(sizeof(NPUTF8) * value->UTF8Length)); in _NPN_InitializeVariantWithStringCopy()
341 …iant->value.stringValue.UTF8Characters, value->UTF8Characters, sizeof(NPUTF8) * value->UTF8Length); in _NPN_InitializeVariantWithStringCopy()
DV8NPUtils.cpp96 return v8::String::New(src.UTF8Characters, src.UTF8Length); in convertNPVariantToV8Object()
DNPV8Object.cpp289 String script = String::fromUTF8(npScript->UTF8Characters, npScript->UTF8Length); in _NPN_EvaluateHelper()
/external/chromium/webkit/glue/
Dcpp_variant.cc60 uint32_t len = this_value->UTF8Length; in isEqual()
61 return (len == other_value->UTF8Length && in isEqual()
184 value.stringValue.UTF8Length); in ToString()
Dcpp_variant_unittest.cc21 (*std_string).assign(chars, np.value.stringValue.UTF8Length); in MakeStdString()
/external/webkit/Source/WebKit2/Shared/Plugins/
DNPRemoteObjectMap.cpp111 …ntData::makeString(variant.value.stringValue.UTF8Characters, variant.value.stringValue.UTF8Length); in npVariantToNPVariantData()
158 STRINGN_TO_NPVARIANT(npString.UTF8Characters, npString.UTF8Length, npVariant); in npVariantDataToNPVariant()
/external/webkit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/
DNPRuntimeRemoveProperty.cpp62 arguments[1].value.stringValue.UTF8Length); in invoke()
/external/webkit/Tools/DumpRenderTree/TestNetscapePlugIn/
DPluginObject.cpp254 size_t length = NPVARIANT_TO_STRING(*variant).UTF8Length; in createCStringFromNPVariant()
755 char* result = static_cast<char*>(malloc(string.UTF8Length + 1)); in toCString()
756 memcpy(result, string.UTF8Characters, string.UTF8Length); in toCString()
757 result[string.UTF8Length] = '\0'; in toCString()
782 if (!fwrite(contentsString.UTF8Characters, contentsString.UTF8Length, 1, tempFile)) in testPostURLFile()
787 NPError error = browser->posturl(obj->npp, url, target, pathString.UTF8Length, path, TRUE); in testPostURLFile()
866 script.UTF8Length = strlen("javascript:window.layoutTestController.notifyDone();"); in notifyTestCompletion()
DPluginTest.cpp165 npScript.UTF8Length = strlen(script); in executeScript()
Dmain.cpp381 npScript.UTF8Length = strlen(script); in executeScript()
/external/webkit/Tools/DumpRenderTree/unix/TestNetscapePlugin/
DTestNetscapePlugin.cpp178 npScript.UTF8Length = strlen(script); in executeScript()
/external/webkit/Source/JavaScriptCore/
DChangeLog-2007-10-1413654 UTF8Length is 0.