|
|
| version 1.206, 2013/03/09 21:55:21 | version 1.207, 2013/03/10 18:45:07 |
|---|---|
| Line 120 static void _bool(Request& r, MethodPara | Line 120 static void _bool(Request& r, MethodPara |
| converted=params.as_bool(0, "default must be bool", r); // (default) | converted=params.as_bool(0, "default must be bool", r); // (default) |
| else | else |
| throw Exception(PARSER_RUNTIME, 0, "unable to convert empty string without default specified"); | throw Exception(PARSER_RUNTIME, 0, "unable to convert empty string without default specified"); |
| } else if( (str[0]=='T' || str[0]=='t') && (str[1]=='R' || str[1]=='r') && (str[2]=='U' || str[2]=='u') and | } else if( (str[0]=='T' || str[0]=='t') && (str[1]=='R' || str[1]=='r') && (str[2]=='U' || str[2]=='u') && |
| (str[3]=='E' || str[3]=='e') && str[4]==0 ) { // "true" | (str[3]=='E' || str[3]=='e') && str[4]==0 ) { // "true" |
| converted=true; | converted=true; |
| } else if( (str[0]=='F' || str[0]=='f') && (str[1]=='A' || str[1]=='a') && (str[2]=='L' || str[2]=='l') and | } else if( (str[0]=='F' || str[0]=='f') && (str[1]=='A' || str[1]=='a') && (str[2]=='L' || str[2]=='l') && |
| (str[3]=='S' || str[3]=='s') && (str[4]=='E' || str[4]=='e') && str[5]==0 ) { // "false" | (str[3]=='S' || str[3]=='s') && (str[4]=='E' || str[4]=='e') && str[5]==0 ) { // "false" |
| converted=false; | converted=false; |
| } else { | } else { |