Lines Matching +full:- +full:s
3 * https://github.com/carhartl/jquery-cookie
23 function encode(s) { argument
24 return config.raw ? s : encodeURIComponent(s);
27 function decode(s) { argument
28 return config.raw ? s : decodeURIComponent(s);
35 function parseCookieValue(s) { argument
36 if (s.indexOf('"') === 0) {
38 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
42 // Replace server-side written pluses with spaces.
43 // If we can't decode the cookie, ignore it, it's unusable.
44 // If we can't parse the cookie, ignore it, it's unusable.
45 s = decodeURIComponent(s.replace(pluses, ' '));
46 return config.json ? JSON.parse(s) : s;
50 function read(s, converter) { argument
51 var value = config.raw ? s : parseCookieValue(s);
69 …xpires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported …
91 // If second argument (value) is a function it's a converter...
113 $.cookie(key, '', $.extend({}, options, { expires: -1 }));