Botan 1.10.17
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
14namespace Botan {
15
16/**
17* The different charsets (nominally) supported by Botan.
18*/
25
26namespace Charset {
27
28/*
29* Character Set Handling
30*/
31std::string BOTAN_DLL transcode(const std::string& str,
33 Character_Set from);
34
35bool BOTAN_DLL is_digit(char c);
36bool BOTAN_DLL is_space(char c);
37bool BOTAN_DLL caseless_cmp(char x, char y);
38
39byte BOTAN_DLL char2digit(char c);
40char BOTAN_DLL digit2char(byte b);
41
42}
43
44}
45
46#endif
bool is_space(char c)
Definition charset.cpp:139
byte char2digit(char c)
Definition charset.cpp:149
std::string transcode(const std::string &str, Character_Set to, Character_Set from)
Definition charset.cpp:103
bool caseless_cmp(char a, char b)
Definition charset.cpp:193
char digit2char(byte b)
Definition charset.cpp:171
bool is_digit(char c)
Definition charset.cpp:128
Character_Set
Definition charset.h:19
@ UCS2_CHARSET
Definition charset.h:21
@ LOCAL_CHARSET
Definition charset.h:20
@ LATIN1_CHARSET
Definition charset.h:23
@ UTF8_CHARSET
Definition charset.h:22