wasCSharpSQLite – Blame information for rev

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /*
2 * StrtoulResult.java
3 *
4 * Stores the result of the Util.strtoul() method.
5 *
6 * Copyright (c) 1997 Cornell University.
7 * Copyright (c) 1997 Sun Microsystems, Inc.
8 *
9 * See the file "license.terms" for information on usage and
10 * redistribution of this file, and for a DISCLAIMER OF ALL
11 * WARRANTIES.
12 *
13 * Included in SQLite3 port to C# for use in testharness only; 2008 Noah B Hart
14 *
15 * RCS @(#) $Id: StrtoulResult.java,v 1.2 1999/05/09 01:30:54 dejong Exp $
16 *
17 */
18 using System;
19 namespace tcl.lang
20 {
21  
22 /// <summary> This class stores the result of the Util.strtoul() method.</summary>
23  
24 class StrtoulResult
25 {
26  
27 // If the conversion is successful, errno = 0;
28 //
29 // If the number cannot be converted to a valid unsigned 32-bit integer,
30 // contains the error code (TCL.INTEGER_RANGE or TCL.INVALID_INTEGER).
31  
32 internal int errno;
33  
34 // If errno is 0, points to the character right after the number
35  
36 internal int index;
37  
38 // If errno is 0, contains the value of the number.
39  
40 internal long value;
41  
42 internal StrtoulResult( long v, int i, int e )
43 {
44 value = v;
45 index = i;
46 errno = e;
47 }
48 } // end StrtoulResult
49 }