aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-19 09:20:23 +0000
committerlloyd <[email protected]>2006-06-19 09:20:23 +0000
commit69ca3d65b82ab041e8df85ca3f4e63e669557607 (patch)
tree23005899d23998ada689d4babd2bfccb4d520dbe /include
parent6413b5d29a781a231d2f331e4191b68fb88a27d9 (diff)
Remove the to_lower function; turns out that both uses of it
within the library were to perform case-insensitive matching, so simply implement that instead. Place all of the character set handling functions into a Charset namespace (and update all callers). Remove the iso2local/local2iso/iso2utf/utf2iso functions, replaced by the new charset transcoder stuff. Initialize the transcoder stored in the global library state upon initialization.
Diffstat (limited to 'include')
-rw-r--r--include/charset.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/charset.h b/include/charset.h
index a79530f05..59ac730c1 100644
--- a/include/charset.h
+++ b/include/charset.h
@@ -13,7 +13,7 @@
namespace Botan {
/*************************************************
-* Character Set Transcoder Object *
+* Character Set Transcoder Interface *
*************************************************/
class Charset_Transcoder
{
@@ -24,21 +24,21 @@ class Charset_Transcoder
virtual ~Charset_Transcoder() {}
};
+namespace Charset {
+
/*************************************************
* Character Set Handling *
*************************************************/
+std::string transcode(const std::string&, Character_Set, Character_Set);
+
bool is_digit(char);
bool is_space(char);
-char to_lower(char);
+bool caseless_cmp(char, char);
byte char2digit(char);
char digit2char(byte);
-std::string local2iso(const std::string&);
-std::string iso2local(const std::string&);
-
-std::string utf2iso(const std::string&);
-std::string iso2utf(const std::string&);
+}
}