Commit Graph

8 Commits (194556f7388ca778528cde59aa8d4989e33e893f)

Author SHA1 Message Date
Chris Wilson 2f11d6cc76 Update Binary IA to Uppercase. Fix All Test Cases for Uppercase Changes. 2015-01-09 19:46:54 +11:00
Matt Miller 99bd3dd6cb HexToASCII: add structured answer. 2014-11-15 21:32:59 +02:00
Matt Miller a264977d0d HexToASCII: Improve implementation and comments.
- Do not even process characters which we aren't going to include.
- Move guard against non-ASCII inside the printable_chr function.
- Add a test to show that it doesn't handle queries which contain
  non-ASCII characters.
- Add comments to clarify intent.

This is less clever than the previous version, which implies the
answer to my question from a previous commit.

Turns out that adding comments will actually make me do a slightly
better implementation!  Who knew?!
2014-01-09 03:37:40 +08:00
Matt Miller c08fe0dae7 HexToASCII: Add too long string test.
I also did some rearrangement of the test source, because I kept getting
lost in it, despiteit being so short. I hope this is ok.
2014-01-08 07:43:10 +08:00
Matt Miller 91117a9eb7 HexToASCII: improve and standardize output
- With code tags (thanks, @mintsoft!), we'll count on the user agent
  rendering the codes slightly differently, so we do not need to style.
- Returning both 'pure ASCII' and 'html' representations.

The code layout now feels either slightly over-clever or slightly
under-clever and I am not sure which!
2014-01-06 18:41:30 +08:00
Matt Miller ea6662ef38 HexToASCII: display information about invisible characters
- Reduce the number of entered characters to 128, since we can't be sure
  of the display width any more.
- Show "invisible characters" (unprintable + non-space whitespace) in a
  special format
2014-01-04 08:36:56 +08:00
Koosha Khajeh Moogahi 6e02789eaf Make a minor change to the format of the output 2012-12-03 14:07:54 +03:30
Koosha Khajeh Moogahi 8faf48358c The goodie to convert a given hex value to its equivalent ASCII representation 2012-12-02 15:58:49 +03:30