monotone

monotone Mtn Source Tree

Root/botan/charset.h

1/*************************************************
2* Character Set Handling Header File *
3* (C) 1999-2007 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_CHARSET_H__
7#define BOTAN_CHARSET_H__
8
9#include <botan/types.h>
10#include <botan/enums.h>
11#include <string>
12
13namespace Botan {
14
15/*************************************************
16* Character Set Transcoder Interface *
17*************************************************/
18class Charset_Transcoder
19 {
20 public:
21 virtual std::string transcode(const std::string&,
22 Character_Set, Character_Set) const = 0;
23
24 virtual ~Charset_Transcoder() {}
25 };
26
27namespace Charset {
28
29/*************************************************
30* Character Set Handling *
31*************************************************/
32std::string transcode(const std::string&, Character_Set, Character_Set);
33
34bool is_digit(char);
35bool is_space(char);
36bool caseless_cmp(char, char);
37
38byte char2digit(char);
39char digit2char(byte);
40
41}
42
43}
44
45#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status