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
Base64.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 BASE64_H
8 #define BASE64_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
14 class Base64 : public LuceneObject
15 {
16 public:
17 virtual ~Base64();
18 LUCENE_CLASS(Base64);
19
20 protected:
21 static const String BASE64_CHARS;
22
23 public:
24 static String encode(ByteArray bytes);
25 static String encode(const uint8_t* bytes, int32_t length);
26 static ByteArray decode(const String& str);
27
28 protected:
29 static bool isBase64(wchar_t ch);
30 };
31 }
32
33 #endif

clucene.sourceforge.net