Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

Small clarifications


[Replies] [Reply] [View by Thread] [Help]
[Back To SNEAK Development Forum]

Posted by CinC snarkles On 2005-02-21 20:25:23
In Reply to Oh. . . and the changes I made this round Posted by Cpt SAJChurchey On 2005-02-21 19:31:53

CinC
CinC snarkles


What I mean by display error is it should probably throw some kind of "NullStringException" or what have you that causes the UI to prompt them to re-enter their string (the current form says, "Fill in the form, dinglefritz! ;)" for example).

We don't want to ignore whitespace altogether (whitespace is important within text strings to separate words, paragraphs, etc.), but we *do* want to ignore trailing/leading whitespace, as in:
"    hello"
and
"hello        "
and also entries that are nothing *but* whitespace:
"                    "
So trim'ing the string prior to checking if it's empty should take care of those problems.

UTF-8 characters can go all the way up to 255 (8 bits). 127 and below are basic ASCII (7 bits)... 127-255 are extended ASCII (8 bits). Any higher than that (256-65535) and they require 2 bytes (16 bits) to hold the full value. So just change your if statement to check for
decimal <= 255
Btw, what's up with checking for negative decimal value?



Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.08288 seconds


About Us | Privacy Policy | Mission Statement | Help