Lucene++ - a full-featured, c++ search engine
API Documentation

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NumberTools.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6
7 #ifndef NUMBERTOOLS_H
8 #define NUMBERTOOLS_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
26 class LPPAPI NumberTools : public LuceneObject
27 {
28 public:
29 virtual ~NumberTools();
30
31 LUCENE_CLASS(NumberTools);
32
33 protected:
34 static const int32_t RADIX;
35
36 static const wchar_t NEGATIVE_PREFIX;
37
38 // NB: NEGATIVE_PREFIX must be < POSITIVE_PREFIX
39 static const wchar_t POSITIVE_PREFIX;
40
41 public:
43 static const String& MIN_STRING_VALUE();
44
46 static const String& MAX_STRING_VALUE();
47
49 static int32_t STR_SIZE();
50
52 static String longToString(int64_t l);
53
55 static int64_t stringToLong(const String& str);
56 };
57 }
58
59 #endif

clucene.sourceforge.net