LCOV - code coverage report
Current view: top level - dom/xslt/base - txCore.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 8 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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/. */
       5             : 
       6             : #ifndef __txCore_h__
       7             : #define __txCore_h__
       8             : 
       9             : #include "nscore.h"
      10             : #include "nsDebug.h"
      11             : #include "nsISupportsImpl.h"
      12             : 
      13             : class nsAString;
      14             : 
      15             : class txObject
      16             : {
      17             : public:
      18           0 :     txObject()
      19           0 :     {
      20           0 :         MOZ_COUNT_CTOR(txObject);
      21           0 :     }
      22             : 
      23             :     /**
      24             :      * Deletes this txObject
      25             :      */
      26           0 :     virtual ~txObject()
      27           0 :     {
      28           0 :         MOZ_COUNT_DTOR(txObject);
      29           0 :     }
      30             : };
      31             : 
      32             : /**
      33             :  * Utility class for doubles
      34             :  */
      35             : class txDouble
      36             : {
      37             : public:
      38             :     /**
      39             :      * Converts the value of the given double to a string, and appends
      40             :      * the result to the destination string.
      41             :      */
      42             :     static void toString(double aValue, nsAString& aDest);
      43             : 
      44             :     /**
      45             :      * Converts the given String to a double, if the string value does not
      46             :      * represent a double, NaN will be returned.
      47             :      */
      48             :     static double toDouble(const nsAString& aStr);
      49             : };
      50             : 
      51             : #endif

Generated by: LCOV version 1.13