24#include <boost/scoped_array.hpp>
32 : encode((
unsigned char*)
33 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
34 "abcdefghijklmnopqrstuvwxyz"
37 , decode(
new unsigned char[257]) {
38 memset( decode.get() , 0 , 256 );
39 for (
int i=0; i<64; i++ ) {
40 decode[ encode[i] ] = i;
49 return encode[x&0x3f];
53 const unsigned char * encode;
55 boost::scoped_array<unsigned char> decode;
61 void encode( std::stringstream& ss ,
const char * data ,
int size );
62 std::string encode(
const char * data ,
int size );
63 std::string encode(
const std::string& s );
65 void decode( std::stringstream& ss ,
const std::string& s );
66 std::string decode(
const std::string& s );
68 extern const char* chars;
the main MongoDB namespace
Definition bulk_operation_builder.h:24