cout << "createExpr returned " << hex << rv  << dec;
cout << "createExpr returned " << ios::hex << rv  << ios::dec;
static void doTest(const nsASingleFragmentString& aExpr){    ParseContextImpl ct;    nsAutoPtr<Expr> expression;    cout << NS_LossyConvertUTF16toASCII(aExpr).get() << endl;    ct.mOff = 0;    nsresult rv = txExprParser::createExpr(aExpr, &ct,                                           getter_Transfers(expression));    cout << "createExpr returned " << hex << rv  << dec;    cout << " at " << ct.mOff << endl;    if (NS_FAILED(rv)) {        NS_LossyConvertUTF16toASCII cstring(aExpr);        cout << NS_LossyConvertUTF16toASCII(StringHead(aExpr, ct.mOff)).get();        cout << " ^ ";        cout << NS_LossyConvertUTF16toASCII(StringTail(aExpr, aExpr.Length()-ct.mOff)).get();        cout << endl << endl;    }    else {        nsAutoString expr;        expression->toString(expr);        cout << "parsed expression: ";        cout << NS_LossyConvertUTF16toASCII(expr).get() << endl << endl;    }}