wasCSharpSQLite – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * StrtodResult.java -- |
||
3 | * |
||
4 | * Stores the result of the Util.strtod() 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: StrtodResult.java,v 1.1.1.1 1998/10/14 21:09:21 cvsadmin Exp $ |
||
16 | * |
||
17 | */ |
||
18 | using System; |
||
19 | namespace tcl.lang |
||
20 | { |
||
21 | |||
22 | /* |
||
23 | * This class stores the result of the Util.strtod() method. |
||
24 | */ |
||
25 | |||
26 | class StrtodResult |
||
27 | { |
||
28 | |||
29 | /* |
||
30 | * If the conversion is successful, errno = 0; |
||
31 | * |
||
32 | * If the number cannot be converted to a valid unsigned 32-bit integer, |
||
33 | * contains the error code (TCL.DOUBLE_RANGE or TCL.UNVALID_DOUBLE). |
||
34 | */ |
||
35 | |||
36 | internal int errno; |
||
37 | |||
38 | /* |
||
39 | * If errno is 0, points to the character right after the number |
||
40 | */ |
||
41 | |||
42 | internal int index; |
||
43 | |||
44 | /* |
||
45 | * If errno is 0, contains the value of the number. |
||
46 | */ |
||
47 | |||
48 | internal double value; |
||
49 | |||
50 | internal StrtodResult( double v, int i, int e ) |
||
51 | { |
||
52 | value = v; |
||
53 | index = i; |
||
54 | errno = e; |
||
55 | } |
||
56 | } // end StrtodResult |
||
57 | } |