Lines Matching refs:s1
61 var natcmp = function(s1, s2) {
63 s1 = s1.replace( /<.*?>/g, "" ).replace('>','<').replace('<','>').replace('&','&');
69 if (s1 == s2) { return 0; }
70 if (s1 == '') { return -1; }
72 var n1 = n.exec(s1);
76 s1 = n1[2];
79 n1 = s1.charCodeAt(0);
82 s1 = s1.substr(1);
88 var natcmp_rtl = function(s1, s2) {
90 s1 = s1.replace( /<.*?>/g, "" ).replace('>','<').replace('<','>').replace('&','&');
96 if (s1 == s2) { return 0; }
97 if (s1 == '') { return -1; }
99 var n1 = n.exec(s1);
103 s1 = n1[1];
106 n1 = s1.charCodeAt(s1.length - 1);
109 s1 = s1.substr(0, s1.length - 1);