diff options
author | lloyd <[email protected]> | 2006-06-19 09:20:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-19 09:20:23 +0000 |
commit | 69ca3d65b82ab041e8df85ca3f4e63e669557607 (patch) | |
tree | 23005899d23998ada689d4babd2bfccb4d520dbe /doc/examples | |
parent | 6413b5d29a781a231d2f331e4191b68fb88a27d9 (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 'doc/examples')
-rw-r--r-- | doc/examples/asn1.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/asn1.cpp b/doc/examples/asn1.cpp index d3b4a65b9..81d3b4b5d 100644 --- a/doc/examples/asn1.cpp +++ b/doc/examples/asn1.cpp @@ -226,7 +226,9 @@ void decode(BER_Decoder& decoder, u32bit level) ASN1_String str; data.decode(str); if(UTF8_TERMINAL) - emit(type_name(type_tag), level, length, iso2utf(str.iso_8859())); + emit(type_name(type_tag), level, length, + Charset::transcode(str.iso_8859(), + LATIN1_CHARSET, UTF8_CHARSET)); else emit(type_name(type_tag), level, length, str.iso_8859()); } |