wasCSharpSQLite – Rev 1

Subversion Repositories:
Rev:
/*
* StrtodResult.java --
*
*       Stores the result of the Util.strtod() method.
*
* Copyright (c) 1997 Cornell University.
* Copyright (c) 1997 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and
* redistribution of this file, and for a DISCLAIMER OF ALL
* WARRANTIES.
* 
* Included in SQLite3 port to C# for use in testharness only;  2008 Noah B Hart
*
* RCS @(#) $Id: StrtodResult.java,v 1.1.1.1 1998/10/14 21:09:21 cvsadmin Exp $
*
*/
using System;
namespace tcl.lang
{

  /*
  * This class stores the result of the Util.strtod() method.
  */

  class StrtodResult
  {

    /*
    * If the conversion is successful, errno = 0;
    *
    * If the number cannot be converted to a valid unsigned 32-bit integer,
    * contains the error code (TCL.DOUBLE_RANGE or TCL.UNVALID_DOUBLE).
    */

    internal int errno;

    /*
    * If errno is 0, points to the character right after the number
    */

    internal int index;

    /*
    * If errno is 0, contains the value of the number.
    */

    internal double value;

    internal StrtodResult( double v, int i, int e )
    {
      value = v;
      index = i;
      errno = e;
    }
  } // end StrtodResult
}