1class Utilities { 2 static getCookieValue(cookieName) { 3 let name = cookieName + "="; 4 let decodedCookie = decodeURIComponent(document.cookie); 5 let ca = decodedCookie.split(';'); 6 for(let i = 0; i <ca.length; i++) { 7 let c = ca[i]; 8 while (c.charAt(0) == ' ') { 9 c = c.substring(1); 10 } 11 if (c.indexOf(name) == 0) { 12 return c.substring(name.length, c.length); 13 } 14 } 15 return ""; 16 } 17 18 static parseToBool(boolString) { 19 return (/true/i).test(boolString); 20 } 21 22 static checkObjectIsNotNull(obj) { 23 return obj !== undefined && obj !== null; 24 } 25 26 static checkStringIsNotEmpty(strObj) { 27 return Utilities.checkObjectIsNotNull(strObj) && strObj.trim() !== ''; 28 } 29}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.