aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/charset.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-28 23:53:01 +0000
committerlloyd <[email protected]>2008-09-28 23:53:01 +0000
commit7853a74932791f7760961ddeb3a6064721eeb8b4 (patch)
treed5a3cbccc143148af63757cdc78166d85416eb3d /src/utils/charset.h
parentfaadc351369d187b6bb42c6e5a165242a62231da (diff)
Move util functions into utils/ module
Diffstat (limited to 'src/utils/charset.h')
-rw-r--r--src/utils/charset.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/utils/charset.h b/src/utils/charset.h
new file mode 100644
index 000000000..ac9f501a0
--- /dev/null
+++ b/src/utils/charset.h
@@ -0,0 +1,33 @@
+/*************************************************
+* Character Set Handling Header File *
+* (C) 1999-2007 Jack Lloyd *
+*************************************************/
+
+#ifndef BOTAN_CHARSET_H__
+#define BOTAN_CHARSET_H__
+
+#include <botan/types.h>
+#include <botan/enums.h>
+#include <string>
+
+namespace Botan {
+
+namespace Charset {
+
+/*************************************************
+* Character Set Handling *
+*************************************************/
+std::string transcode(const std::string&, Character_Set, Character_Set);
+
+bool is_digit(char);
+bool is_space(char);
+bool caseless_cmp(char, char);
+
+byte char2digit(char);
+char digit2char(byte);
+
+}
+
+}
+
+#endif