This is a *VERY* Rough library for translating binary representations of grade 1 braille into ASCII strings.
History
Changed space mapping from 0 to 127 since 0 is a string terminator. D'oh!
2012-10-12, by aganger3 [Fri, 12 Oct 2012 07:22:30 +0000] rev 9
Changed space mapping from 0 to 127 since 0 is a string terminator. D'oh!
Argh... switch was done in Decimal, not in hex! 0x's removed, though I'd prefer hex all things being equal
2012-10-12, by aganger3 [Fri, 12 Oct 2012 07:07:43 +0000] rev 8
Argh... switch was done in Decimal, not in hex! 0x's removed, though I'd prefer hex all things being equal
Cleverness removed from switch statement to make it easier to debug. Deadlines, deadlines!!
2012-10-12, by aganger3 [Fri, 12 Oct 2012 07:03:59 +0000] rev 7
Cleverness removed from switch statement to make it easier to debug. Deadlines, deadlines!!
Took example sentence back out. Compile before commiting, Dun!;
2012-10-12, by aganger3 [Fri, 12 Oct 2012 06:20:24 +0000] rev 6
Took example sentence back out. Compile before commiting, Dun!;
Added example sentence :)
2012-10-12, by aganger3 [Fri, 12 Oct 2012 06:17:58 +0000] rev 5
Added example sentence :)
Did a foolish thing, I was returning a pointer to a local variable. Oops! I did an unsafe thing and made a permanent output buffer with a length of 512. Hopefully you won'tneed one longer than that. maybe I should just use string... alas, deadlines!
2012-10-12, by aganger3 [Fri, 12 Oct 2012 05:56:01 +0000] rev 4
Did a foolish thing, I was returning a pointer to a local variable. Oops! I did an unsafe thing and made a permanent output buffer with a length of 512. Hopefully you won'tneed one longer than that. maybe I should just use string... alas, deadlines!
Added overload of translateBraille to allow passing const char * so that c++ strings may be used with .c_str() syntax. I'm sure there's a more clever way to handle that than just duplicating the function, but it's late and my deadline is tomorrow:)
2012-10-12, by aganger3 [Fri, 12 Oct 2012 05:42:44 +0000] rev 3
Added overload of translateBraille to allow passing const char * so that c++ strings may be used with .c_str() syntax. I'm sure there's a more clever way to handle that than just duplicating the function, but it's late and my deadline is tomorrow:)
Added a space character;
2012-10-12, by aganger3 [Fri, 12 Oct 2012 05:07:41 +0000] rev 2
Added a space character;
Draft 1;
2012-10-12, by aganger3 [Fri, 12 Oct 2012 05:03:56 +0000] rev 1
Draft 1;
Compiles :);
2012-09-25, by aganger3 [Tue, 25 Sep 2012 22:57:22 +0000] rev 0
Compiles :);