Lines Matching refs:s
23 function encode(s) {
24 return config.raw ? s : encodeURIComponent(s);
27 function decode(s) {
28 return config.raw ? s : decodeURIComponent(s);
35 function parseCookieValue(s) {
36 if (s.indexOf('"') === 0) {
38 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
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) {
51 var value = config.raw ? s : parseCookieValue(s);
91 // If second argument (value) is a function it's a converter...