Botan  2.1.0
Crypto and TLS for C++11
charset.h
Go to the documentation of this file.
1 /*
2 * Character Set Handling
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
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 uint8_t BOTAN_DLL char2digit(char c);
40 char BOTAN_DLL digit2char(uint8_t 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
char digit2char(uint8_t b)
Definition: charset.cpp:171
std::string transcode(const std::string &str, Character_Set to, Character_Set from)
Definition: charset.cpp:103
Definition: alg_id.cpp:13
uint8_t 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