1 var HashMap = function(){ 2 this.map = new Object(); 3 } 4 5 HashMap.prototype = { 6 put : function (key, value){ 7 this.map[key] = value; 8 }, 9 10 get : function (key){ 11 return this.map[key]; 12 }, 13 14 existKey : function (key){ 15 return key in this.map; 16 }, 17 18 existValue : function (value){ 19 for (var temp in this.map){ 20 if (this.map[temp] == value){ 21 return true; 22 } 23 } 24 return false; 25 }, 26 27 clear : function (){ 28 for (var temp in this.map){ 29 delete this.map[temp]; 30 } 31 }, 32 33 remove : function (key){ 34 delete this.map[key]; 35 }, 36 37 getkeys : function (){ 38 var temp = new Array(); 39 for (var prop in this.map){ 40 temp.push(prop); 41 } 42 return temp; 43 }, 44 45 getValues : function (){ 46 var temp = new Array(); 47 for (var prop in this.map){ 48 temp.push(this.map[prop]); 49 } 50 return temp; 51 }, 52 53 size : function (){ 54 return this.map.size(); 55 }, 56 57 isEmpty : function(){ 58 return (this.map.size() == 0); 59 } 60 }
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.