Actually there's a better function that will solve part of the problem. But to simplify, use corresponding ASCII ranges and a map of strings to reduce everything in size.
Still follows the original motif though....

> Sure there is: Just use a switch statement :) ...

Yeah, but you would still have to write aaaaaaalll thooooosseee liiineeeessss :)

Yeah, but you would still have to write aaaaaaalll thooooosseee liiineeeessss :)

Yeah, but you don't have to write the braces each time :)

Ha HA:) i guess not :)

Ancient Dragon and jen140 are both correct you have a missedmatched bracket from line 214 that does not necsisalry mean that the bracket on 214 is wrong but there is one before that. make sure you know how your debugger works. FYI it will always flag an error past where the original culprit is at.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.