whole_func_string: function stripNegate(val, negate) {
      negate = escape(negate || constants_1.NEGATE_CHAR);
      var exp = new RegExp('^' + negate);
      return val.replace(exp, '');
  }
func_code_string: function stripNegate(val, negate) {
      negate = escape(negate || constants_1.NEGATE_CHAR);
      var exp = new RegExp('^' + negate);
      return val.replace(exp, '');
  }
func_documentation_string: Strips negate chars from flag.
  
  @param val the value to be stripped.
  @param negate the characters denoting negate.