Revision: | 47 |
Committed: | 2008-03-07T03:08:31-08:00 (17 years, 3 months ago) by douglas |
File size: | 386 byte(s) |
Log Message: | Progress, needs moar workz. |
# | User | Rev | Content |
---|---|---|---|
1 | douglas | 47 | // LCD Display Character Filter |
2 | // | ||
3 | // Douglas Thrift | ||
4 | // | ||
5 | // $Id$ | ||
6 | |||
7 | #include <iconv.hpp> | ||
8 | #include <truck.hpp> | ||
9 | |||
10 | #include "Filter.hpp" | ||
11 | |||
12 | namespace | ||
13 | { | ||
14 | |||
15 | static IConv::IConv ascii(_B("ASCII//TRANSLIT//IGNORE"), _B("UTF-8")); | ||
16 | |||
17 | } | ||
18 | |||
19 | std::string Filter(const std::string input) | ||
20 | { | ||
21 | std::string output(ascii.Convert(input)); | ||
22 | |||
23 | std::replace(output.begin(), output.end(), '~', '\xce'); | ||
24 | |||
25 | return output; | ||
26 | } |
Name | Value |
---|---|
svn:keywords | Id |