日期:2014-05-16 浏览次数:20528 次
static JSBool str_localeCompare(JSContext *cx, uintN argc, jsval *vp) { JSString *str, *thatStr; NORMALIZE_THIS(cx, vp, str); if (argc == 0) { *vp = JSVAL_ZERO; } else { thatStr = js_ValueToString(cx, vp[2]); if (!thatStr) return JS_FALSE; if (cx->localeCallbacks && cx->localeCallbacks->localeCompare) { vp[2] = STRING_TO_JSVAL(thatStr); return cx->localeCallbacks->localeCompare(cx, str, thatStr, vp); } *vp = INT_TO_JSVAL(js_CompareStrings(str, thatStr)); } return JS_TRUE; }
------解决方案--------------------
http://mxr.mozilla.org/mozilla/source/
------解决方案--------------------
只要是带“java” 的都是开元的。。~~!??