Changeset 2487 for trunk/gsdl/lib


Ignore:
Timestamp:
2001-06-01T14:51:29+12:00 (23 years ago)
Author:
sjboddie
Message:

Changes to get phind working under windows

Location:
trunk/gsdl/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/text_t.cpp

    r1860 r2487  
    2828/*
    2929   $Log$
     30   Revision 1.21  2001/06/01 02:51:28  sjboddie
     31   Changes to get phind working under windows
     32
    3033   Revision 1.20  2001/01/25 18:26:44  cs025
    3134   Included CORBA branch for first time
     
    262265}
    263266
    264 
     267unsigned long text_t::getulong () const
     268{
     269  unsigned long i = 0;
     270
     271  const_iterator here = text.begin();
     272  const_iterator end = text.end();
     273
     274  while ((here != end) && (*here >= '0') && (*here <= '9'))
     275    {
     276      i = 10*i + (*here - '0');
     277      here++;
     278    }
     279
     280  return i;
     281}
    265282
    266283void text_t::appendcarr (char *s, size_type len)
  • trunk/gsdl/lib/text_t.h

    r2423 r2487  
    147147  int getint () const;
    148148
     149  // same as getint but returns an unsigned long
     150  unsigned long getulong () const;
     151
    149152  // support for arrays of chars
    150153  void appendcarr (char *s, size_type len);
Note: See TracChangeset for help on using the changeset viewer.