Botan
1.10.9
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
utils
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
*/
19
enum
Character_Set
{
20
LOCAL_CHARSET
,
21
UCS2_CHARSET
,
22
UTF8_CHARSET
,
23
LATIN1_CHARSET
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
Botan::Charset::caseless_cmp
bool caseless_cmp(char a, char b)
Definition:
charset.cpp:193
Botan::UTF8_CHARSET
Definition:
charset.h:22
Botan::Character_Set
Character_Set
Definition:
charset.h:19
Botan::byte
unsigned char byte
Definition:
types.h:22
Botan::Charset::transcode
std::string transcode(const std::string &str, Character_Set to, Character_Set from)
Definition:
charset.cpp:103
Botan::Charset::char2digit
byte char2digit(char c)
Definition:
charset.cpp:149
Botan::LATIN1_CHARSET
Definition:
charset.h:23
Botan
Definition:
algo_base.h:14
Botan::Charset::is_digit
bool is_digit(char c)
Definition:
charset.cpp:128
Botan::LOCAL_CHARSET
Definition:
charset.h:20
Botan::Charset::is_space
bool is_space(char c)
Definition:
charset.cpp:139
Botan::Charset::digit2char
char digit2char(byte b)
Definition:
charset.cpp:171
Botan::UCS2_CHARSET
Definition:
charset.h:21
Generated on Sat Aug 20 2016 08:18:49 for Botan by
1.8.9.1