[aprssig] TNC command formats
Bill Herrmann bherrman at spro.netThu Mar 17 06:29:00 UTC 2005
- Previous message: [aprssig] TNC command formats
- Next message: [aprssig] TNC command formats
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 03:25 PM 3/16/2005 -0800, Scott Miller wrote: >match what you'd entered. You'd get ver<tab>SION. Not that bad, but the >lack of a case-insensitive string compare makes it harder. If I think of a >clean way to do it, I'll try. Just a vague memory here and I don't have time to look it up, but.... I'm pretty sure that in ASCII the difference between an upper case letter and a lower case letter is a single bit (set for lower case and clear for upper). It shouldn't be too hard to mask that bit for the compare or apply it to the added portion of the command in order to match the case. If you choose to try and match the case I'd suggest borrowing the bit from the last character the user entered. i.e. if I enter He make the resulting command Help where if you used the first character you would get HeLP. Bill p.s. Careful of numbers and special characters as they don't hold up if you muck with that bit. (Interestingly numbers, at least, do in EBCDIC.)
- Previous message: [aprssig] TNC command formats
- Next message: [aprssig] TNC command formats
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the aprssig mailing list
