Lines Matching defs:input
76 // If user provides no input, def (default value) is returned.
144 int badInput = 0; // flag bad input; once this goes to 1, other values are irrelevant
269 // Converts two consecutive characters in the input string into a
272 unsigned char StrToHex(const string & input, unsigned int position) {
276 if (input.length() > position) {
277 sscanf(input.substr(position, 2).c_str(), "%x", &temp);
283 // Returns 1 if input can be interpreted as a hexadecimal number --
288 int IsHex(string input) {
291 if (input.substr(0, 2) == "0x")
292 input.erase(0, 2);
293 for (i = 0; i < (int) input.length(); i++) {
294 if ((input[i] < '0') || (input[i] > '9')) {
295 if ((input[i] < 'A') || (input[i] > 'F')) {
296 if ((input[i] < 'a') || (input[i] > 'f')) {
297 if ((input[i] != ' ') && (input[i] != '\n')) {
357 // Returns the input string in lower case
358 string ToLower(const string& input) {
359 string lower = input; // allocate correct size through copy
361 transform(input.begin(), input.end(), lower.begin(), ::tolower);