Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JS_CallFunctionName For Unicode Name

25 views
Skip to first unread message

Masquerade

unread,
Feb 23, 2012, 12:07:26 PM2/23/12
to
If I got a non-ASCII method name in my target object, how do I invoke
it in my C++ code? JS_CallFunctionName only takes a const char *name
argument. Is there some corresponding UC version that takes a const
jschar*?

Wes Garland

unread,
Feb 23, 2012, 12:20:31 PM2/23/12
to Masquerade, dev-tech-...@lists.mozilla.org
That's a really interesting question.

What happens if you run your embedding in JS_CStringsAreUTF8() mode, and
you try to invoke it by it's name encoded in UTF8?

(I don't know if that's the right way or even if it will work, just
throwing out the idea)

Wes
> _______________________________________________
> dev-tech-js-engine mailing list
> dev-tech-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>



--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
0 new messages