source: trunk/lib/utility/utility.h @ 389

Last change on this file since 389 was 389, checked in by Peter, 18 years ago

moved kernel to regression namespace and tried to fix some dox issues

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 786 bytes
Line 
1// $Id: utility.h 389 2005-08-15 11:37:07Z peter $
2
3#ifndef _theplu_utility_utility_
4#define _theplu_utility_utility_
5
6///
7/// @file utility/utility.h
8///
9/// Some useful functions are placed here
10///
11
12#include <string>
13
14namespace theplu {
15namespace utility {
16
17
18  ///
19  /// Function return true if string is a number. A number is defined
20  /// to start with plus(+), minus(-), deimal point(.), or a
21  /// digit(0-9). It must contain at most one decimal point(.). Also
22  /// it may contain 'E' or 'e' followed by an integer (see is_int).
23  ///
24  /// @return true if string is a number
25  ///
26  bool is_float(const std::string&);
27
28  ///
29  /// @return true if every character in string is a digit except the
30  /// first one that may be '+' or '-'
31  ///
32  bool is_int(const std::string&);
33
34
35}} // of namespace utility and namespace theplu
36
37#endif
Note: See TracBrowser for help on using the repository browser.