Backed out changeset 9d8b4c0b99ed (bug 1945683) for causing btime failures. CLOSED...
[gecko.git] / dom / xslt / base / txCore.h
blob6e462a5a314f955835a1e841c8c3e01a12f6bbec
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/. */
6 #ifndef __txCore_h__
7 #define __txCore_h__
9 #include "nscore.h"
10 #include "nsDebug.h"
11 #include "nsISupportsImpl.h"
12 #include "nsStringFwd.h"
14 class txObject {
15 public:
16 MOZ_COUNTED_DEFAULT_CTOR(txObject)
18 /**
19 * Deletes this txObject
21 MOZ_COUNTED_DTOR_VIRTUAL(txObject)
24 /**
25 * Utility class for doubles
27 class txDouble {
28 public:
29 /**
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);
35 /**
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);
42 #endif