Diff for /parser3/src/classes/string.C between versions 1.227 and 1.229

version 1.227, 2016/09/08 20:41:47 version 1.229, 2016/09/21 15:35:10
Line 620  static void _save(Request& r, MethodPara Line 620  static void _save(Request& r, MethodPara
                         // ^file.save[filespec;$.charset[] $.append(true)]                          // ^file.save[filespec;$.charset[] $.append(true)]
                         int valid_options=0;                          int valid_options=0;
                         if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){                          if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){
                                 asked_charset=&::charsets.get(vcharset_name->as_string());                                  asked_charset=&pa_charsets.get(vcharset_name->as_string());
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(Value* vappend=options->get(MODE_APPEND)){                          if(Value* vappend=options->get(MODE_APPEND)){
Line 763  static void _unescape(Request& r, Method Line 763  static void _unescape(Request& r, Method
                 if(HashStringValue* options=params.as_hash(2)) {                  if(HashStringValue* options=params.as_hash(2)) {
                         int valid_options=0;                          int valid_options=0;
                         if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){                          if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){
                                 from_charset=&::charsets.get(vcharset_name->as_string());                                  from_charset=&pa_charsets.get(vcharset_name->as_string());
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(valid_options!=options->count())                          if(valid_options!=options->count())
Line 776  static void _unescape(Request& r, Method Line 776  static void _unescape(Request& r, Method
         } else if(mode==UNESCAPE_MODE_URI){          } else if(mode==UNESCAPE_MODE_URI){
                 mode_js=false;                  mode_js=false;
         } else {          } else {
                 throw Exception(PARSER_RUNTIME, &mode, "is invalid mode, must be either '"UNESCAPE_MODE_JS"' or '"UNESCAPE_MODE_URI"'");                  throw Exception(PARSER_RUNTIME, &mode, "is invalid mode, must be either '" UNESCAPE_MODE_JS "' or '" UNESCAPE_MODE_URI "'");
         }          }
   
         const char* unescaped=unescape_chars(src.cstr(), src.length(), from_charset, mode_js);          const char* unescaped=unescape_chars(src.cstr(), src.length(), from_charset, mode_js);

Removed from v.1.227  
changed lines
  Added in v.1.229


E-mail: