panthema / 2009 / cryptote / cryptote-0.5.390 / libenctain / botan-1.6 / include / charset.h (Download File)
/*************************************************
* Character Set Handling Header File             *
* (C) 1999-2007 The Botan Project                *
*************************************************/

#ifndef BOTAN_CHARSET_H__
#define BOTAN_CHARSET_H__

#include "botan-1.6/include/types.h"
#include "botan-1.6/include/enums.h"
#include <string>

namespace Enctain {
namespace Botan {

/*************************************************
* Character Set Transcoder Interface             *
*************************************************/
class Charset_Transcoder
   {
   public:
      virtual std::string transcode(const std::string&,
                                    Character_Set, Character_Set) const = 0;

      virtual ~Charset_Transcoder() {}
   };

namespace Charset {

/*************************************************
* Character Set Handling                         *
*************************************************/
std::string transcode(const std::string&, Character_Set, Character_Set);

bool is_digit(char);
bool is_space(char);
bool caseless_cmp(char, char);

byte char2digit(char);
char digit2char(byte);

}

}
}

#endif