Name_Value_Pair.cpp File Reference

#include "orbsvcs/Notify/Name_Value_Pair.h"
#include "orbsvcs/Notify/Property_T.h"
#include "ace/OS_String.h"
#include "ace/OS_NS_stdio.h"

Include dependency graph for Name_Value_Pair.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  TAO_Notify

Functions

ACE_UINT64 string_to_uint64 (const char *s)


Function Documentation

ACE_UINT64 string_to_uint64 const char *  s  )  [static]
 

Definition at line 10 of file Name_Value_Pair.cpp.

References ACE_UINT64, and ACE_OS::strlen().

Referenced by TAO_Notify::NVPList::load().

00011   {
00012     size_t const len = ACE_OS::strlen (s);
00013     if (len == 0)
00014       return 0;
00015     if (! isdigit(s[0]))
00016       return 0;
00017 
00018     ACE_UINT64 t = 0;
00019     for (size_t i = 0; i < len; ++i)
00020     {
00021       if (isdigit(s[i]) == 0)
00022       {
00023         break;
00024       }
00025       t *= 10;
00026       t += (s[i] - '0');
00027     }
00028     return t;
00029   }


Generated on Thu Nov 9 13:27:01 2006 for TAO_CosNotification by doxygen 1.3.6