tcl.lang
Class StrtoulResult

java.lang.Object
  extended by tcl.lang.StrtoulResult

public class StrtoulResult
extends Object

This class stores the result of the Util.strtoul() method.


Field Summary
 int errno
          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.INTEGER_RANGE or TCL.INVALID_INTEGER).
 int index
          If errno is 0, points to the character right after the number
 long value
          If errno is 0, contains the value of the number.
 
Constructor Summary
StrtoulResult()
           
 
Method Summary
 void update(long v, int i, int e)
          Update a StrtoulResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errno

public int errno
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.INTEGER_RANGE or TCL.INVALID_INTEGER).


index

public int index
If errno is 0, points to the character right after the number


value

public long value
If errno is 0, contains the value of the number.

Constructor Detail

StrtoulResult

public StrtoulResult()
Method Detail

update

public void update(long v,
                   int i,
                   int e)
Update a StrtoulResult. Note that there is typically just one StrtoulResult for each interp.

Parameters:
v - value for the value field.
i - value for the index field.
e - value for the errno field.


Copyright © 2015. All rights reserved.