Logo Search packages:      
Sourcecode: wims version File versions  Download package

int rene::util::parser::StringParser::parseint ( char  c  )  [inline]

Parse an int upto a blank or c. The int may be negative.

the int

Definition at line 151 of file StringParser.java.

References parsedigits(), and skipblanks().

      {     int sig=1;
            {     skipblanks(); if (Error) return 0;
                  if (C[N]=='-')
                  {     sig=-1;
                        if (N>L) { Error=true; return 0; }
                  return sig*Integer.parseInt(parsedigits(c),10);
            catch (NumberFormatException e)
            {     return 0;

Generated by  Doxygen 1.6.0   Back to index