Botan  1.10.9
charset.h
Go to the documentation of this file.
1 /*
2 * Character Set Handling
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_CHARSET_H__
9 #define BOTAN_CHARSET_H__
10 
11 #include <botan/types.h>
12 #include <string>
13 
14 namespace Botan {
15 
16 /**
17 * The different charsets (nominally) supported by Botan.
18 */
24 };
25 
26 namespace Charset {
27 
28 /*
29 * Character Set Handling
30 */
31 std::string BOTAN_DLL transcode(const std::string& str,
32  Character_Set to,
33  Character_Set from);
34 
35 bool BOTAN_DLL is_digit(char c);
36 bool BOTAN_DLL is_space(char c);
37 bool BOTAN_DLL caseless_cmp(char x, char y);
38 
39 byte BOTAN_DLL char2digit(char c);
40 char BOTAN_DLL digit2char(byte b);
41 
42 }
43 
44 }
45 
46 #endif
bool caseless_cmp(char a, char b)
Definition: charset.cpp:193
Character_Set
Definition: charset.h:19
unsigned char byte
Definition: types.h:22
std::string transcode(const std::string &str, Character_Set to, Character_Set from)
Definition: charset.cpp:103
byte char2digit(char c)
Definition: charset.cpp:149
bool is_digit(char c)
Definition: charset.cpp:128
bool is_space(char c)
Definition: charset.cpp:139
char digit2char(byte b)
Definition: charset.cpp:171