1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
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"
12 #include "nsStringFwd.h"
16 MOZ_COUNTED_DEFAULT_CTOR(txObject
)
19 * Deletes this txObject
21 MOZ_COUNTED_DTOR_VIRTUAL(txObject
)
25 * Utility class for doubles
30 * Converts the value of the given double to a string, and appends
31 * the result to the destination string.
33 static void toString(double aValue
, nsAString
& aDest
);
36 * Converts the given String to a double, if the string value does not
37 * represent a double, NaN will be returned.
39 static double toDouble(const nsAString
& aStr
);