On 09/22/2015 08:41 AM, James Knott wrote:
On 09/22/2015 08:24 AM, Anton Aylward wrote:
I think the point that Carlos was trying to make is that there's no way to tell from a certain set of strings is the input is hex or not simply because the hex representation is a subset of asii.
For example, is the following in hex or not?
A99CBDF0
Clearly this is not hex:
A99;;Bd/F
My AP will allow entering either 63 ASCII or 64 hex characters. So, it would check for any characters that are out of the hex range and, if found, assume ASCII.
Two qualifiers: That is "My AP will allow entering either **UP TO** 63 ASCII or **UP TO** 64 hex characters." And "... it would check for any characters that are out of the hex range and, if found, assume ASCII BUT IF NOT WOULD NOT BE ABLE TO DETERMINE IF THEY WERE HEX OR ASCII" The only way that this can be disambiguated when using the set of characters [0-9A-Fa-f] is if you enter 64. Any less than that and its ambiguous. -- I suspect that, over time, all bureaucratic processes decay into cargo cults unless regularly challenged by a hostile reality. -- Alan Rocker 2001-11-23 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org