1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
11 #include "nsISupportsImpl.h"
20 MOZ_COUNT_CTOR(txObject
);
24 * Deletes this txObject
28 MOZ_COUNT_DTOR(txObject
);
33 * Utility class for doubles
39 * Converts the value of the given double to a string, and appends
40 * the result to the destination string.
42 static void toString(double aValue
, nsAString
& aDest
);
45 * Converts the given String to a double, if the string value does not
46 * represent a double, NaN will be returned.
48 static double toDouble(const nsAString
& aStr
);