Search completed in 1.23 seconds.
4 results for "displayid":
JS_GetFunctionId
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS GetFunctionId
Get a function's name as a JSString. Syntax JSString * JS_GetFunctionId(JSFunction *fun); JSString * JS_GetFunctionDisplayId(JSFunction *fun); // Added in Spidermonkey 17 Name Type Description fun JSFunction * A JavaScript function. Description JS_GetFunctionId returns the name of a function, fun, as a JSString, or NULL if fun is unnamed. The returned string lives as long as fun, so you don't need to root a saved reference to it if fun is well-connected or rooted, and provided you bound the use of the saved reference by fun's lifetime. JS_GetFunctionDisplayId returns the display name of a function, fun. This is the defined name if one was given where the function was defined, or it could be an inferred name by the JS engine in the case that the fu...
... name of a function, fun. This is the defined name if one was given where the function was defined, or it could be an inferred name by the JS engine in the case that the function was defined to be anonymous. This can still return nullptr if a useful display name could not be inferred. The same restrictions on rooting as those in JS_GetFunctionId apply. Examples The name returned by JS_GetFunctionDisplayId is the same as returned by JS_GetFunctionId if the function explicitly has a name listed in the source, or if not it is an intelligently guessed name for the function based on its context in the source. If no smart name could be guessed for the function, then NULL is returned. The returned string is guaranteed to live as long as fun, so the application often does not need to root the string. func...
... // x var a = { b: function() {} }; // a.b a.c = function() {}; // a.c a.d = (function() { // a.d< -- the '<' loosely means "contributor to" return function() {}; // a.d })(); var Foo = function() { // Foo var bar = function() {}; // Foo/bar }; setTimeout(function() {}, 100); // no name, JS_GetFunctionDisplayId returns NULL See Also MXR ID Search for JS_GetFunctionId MXR ID Search for JS_GetFunctionDisplayId bug 433529 - added JS_GetFunctionDisplayId ...
nsIIDNService
Mozilla › Tech › XPCOM › Reference › Interface › nsIIDNService
according to IETF specification. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Implemented by: @mozilla.org/network/idn-service;1 as a service: var idnService = Components.classes["@mozilla.org/network/idn-service;1"] .getService(Components.interfaces.nsIIDNService); Method overview AUTF8String convertACEtoUTF8(in ACString input); AUTF8String convertToDisplayIDN(in AUTF8String input, out boolean isASCII); ACString convertUTF8toACE(in AUTF8String input); boolean isACE(in ACString input); AUTF8String normalize(in AUTF8String input); Methods convertACEtoUTF8() Converts an ACE (ASCII Compatible Encoding) hostname into Unicode format, returning a UTF-8 format string. This combines two operations: running the RFC 3490 "ToUnicode" operation on the or...
...e format, returning a UTF-8 format string. This combines two operations: running the RFC 3490 "ToUnicode" operation on the original string, then converting the resulting Unicode string into UTF-8 format. AUTF8String convertACEtoUTF8( in ACString input ); Parameters input The ACE encoded hostname to convert into UTF-8 format. Return value The UTF-8 encoded equivalent of the hostname. ...
...isASCII On return, this is set to true if the result is ASCII or ACE encoded; otherwise it's false. Return value The display formatted hostname. ...
JS_GetFunctionName
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS GetFunctionName
Description JS_GetFunctionName retrieves the function name associated with a function pointer, fun. The return value is either the name of a function, or the string "anonymous", which indicates that the function was not assigned a name when created. The pointer returned by this function is valid only as long as the specified function, fun, exists. See Also JS_GetFunctionId JS_GetFunctionDisplayId bug 617215 ...
JSAPI reference
Mozilla › Projects › SpiderMonkey › JSAPI reference
SpiderMonkey 38 JS::IsConstructor Added in SpiderMonkey 38 JS_IsNativeFunction Added in SpiderMonkey 17 JS_IsConstructor Added in SpiderMonkey 24 JS_BindCallable Added in SpiderMonkey 17 JS_IsBuiltinEvalFunction Added in SpiderMonkey 17 JS_IsBuiltinFunctionConstructor Added in SpiderMonkey 17 Function accessors: JS_ObjectIsFunction JS_GetFunctionArity JS_GetFunctionId JS_GetFunctionDisplayId Added in SpiderMonkey 17 JS_GetFunctionScript Added in SpiderMonkey 38 JS_GetFunctionObject JS_GetFunctionFlags Obsolete since JSAPI 19 JS_GetFunctionName Obsolete since JavaScript 1.8.5 Creating functions: JS::CloneFunctionObject Added in SpiderMonkey 36 JS_DefineFunction JS_DefineUCFunction JS_DefineFunctionById Added in SpiderMonkey 17 JS_DefineFunctions enum PropertyDefi...