Lines Matching refs:replace

343 return String(value).replace(getEscapeRegexp(direction,{group:name,list:list}),function(ch){return list[ch]
389 this.escapeNewLines=function(value){return value.replace(/\r/g,"\\r").replace(/\n/g,"\\n")
391 this.stripNewLines=function(value){return typeof(value)=="string"?value.replace(/[\r\n]/g," "):value
393 this.escapeJS=function(value){return value.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace('"','\\"',"g")
404 }}return around+(String(value).replace(/[&'"]/g,replaceChars))+around
411 }return String(value).replace(/[<>&"']/g,replaceChars)
439 this.trim=function(s){return s.replace(reTrim,"")
535 if(pos==="absolute"||pos==="relative"){var borderLeft=parseInt(style.getPropertyValue("border-left-width").replace("px",""),10)||0;
536 var borderTop=parseInt(style.getPropertyValue("border-top-width").replace("px",""),10)||0;
537 var paddingLeft=parseInt(style.getPropertyValue("padding-left").replace("px",""),10)||0;
538 var paddingTop=parseInt(style.getPropertyValue("padding-top").replace("px",""),10)||0;
539 var marginLeft=parseInt(style.getPropertyValue("margin-left").replace("px",""),10)||0;
540 var marginTop=parseInt(style.getPropertyValue("margin-top").replace("px",""),10)||0;
1043 var hint=decodeURIComponent(props.encodedContent.substr(0,200)).replace(/\s*$/,"");
1048 }if(!props.hasOwnProperty("name")){props.name=decodeURIComponent(props.encodedContent.substr(0,200)).replace(/\s*$/,"")
1113 this.absoluteURL=function(url,baseURL){return this.absoluteURLWithDots(url,baseURL).replace("/./","/","g")
1130 }if(url.length<255){url=url.replace(/[^\/]+\/\.\.\//,"","g");
1131 url=url.replace(/#.*/,"");
1132 url=url.replace(/file:\/([^\/])/g,"file:///$1");
1137 this.denormalizeURL=function(url){return url.replace(/file:\/\/\//g,"file:/")
1149 text=text.replace(/\+/g," ");
1173 text=text.replace(/\+/g," ");
1335 domMemberMap.Location=["href","protocol","host","hostname","port","pathname","search","hash","assign","reload","replace"];
1391 }}}}return r.join("").replace(/&$/,"")
1767 if(!Firebug.showTextNodesWithWhitespace){value=value.replace(/\t/g,"mmmmmm").replace(/\ /g,"m")
3011 return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];
3060 if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)
3062 }if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");
3200 if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");
3202 if(set!=null){expr=expr.replace(Expr.match[type],"");
3223 }expr=expr.replace(Expr.match[type],"");
3266 }},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";
3273 },ID:function(match){return match[1].replace(/\\/g,"")
3282 },ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");
3486 selector=selector.replace(Expr.match.PSEUDO,"")
3801 }return String(value).replace(/[<>&"']/g,replaceChars)
4054 }else{vals.push('"'+part.replace(/"/g,'\\"')+'"')
4144 },replace:function(args,parent,self){this.tag.compile();
4334 }else{if(attr.nodeName=="style"){attrs.push({nodeName:attr.nodeName,nodeValue:attr.nodeValue||elt.style.cssText.replace(/([^\s]+)\s*:/g,function(m,g){return g.toLowerCase()+":"
4723 }this.expander=this.expanderTag.replace({},doc,this);
5216 text=text.replace(reScript,"");
5258 var node=this.sourceTag.replace({},tbody);
5306 }Firebug.DOMPanel.DirTable.tag.replace({object:data,toggles:this.toggles},jsonBody)
5342 },createTable:function(parent,limitInfo){var table=this.tableTag.replace({},parent);
5551 if(file.jsonObject){Firebug.DOMPanel.DirTable.tag.replace({object:file.jsonObject,toggles:this.toggles},tabBody)
5575 },insertXML:function(parentNode,text){var xmlText=text.replace(/^\s*<?.+?>\s*/,"");
5753 if(rep){rep.tag.replace({objects:objects},innerRow)
6093 stack=stack.replace(/\n\r|\r\n/g,"\n");
6105 if(name){name=name.replace(reChromeStackItemName,"");
6317 }else{objName=objName.replace(/\.$/,"");
6415 }if(hasSingleTextChild){var value=child[0].nodeValue.replace(reTrim,"");
6420 }}}else{if(node.nodeType==3){if(node.parentNode&&(node.parentNode.nodeName.toLowerCase()=="script"||node.parentNode.nodeName.toLowerCase()=="style")){var value=node.nodeValue.replace(reTrim,"");
6430 }else{var value=node.nodeValue.replace(reTrim,"");
6506 var formatStyles=function(styles){return isIE?styles.replace(/([^\s]+)\s*:/g,function(m,g){return g.toLowerCase()+":"
6712 }},populateColorInfoTip:function(infoTip,color){this.tags.colorTag.replace({rgbValue:color},infoTip);
6715 }this.tags.imgTag.replace({urlValue:url,repeat:repeat},infoTip);
6734 }function trim(str){return str.replace(/^\s+|\s+$/g,"")
6735 }function normalizeSelector(selector){selector=selector.replace(/[\n\r]/g," ");
6737 selector=selector.replace(/\s*,\s*/g,",");
6742 rule_start=rule_start.replace(/[\n\r]/g," ");
6744 rule_start=rule_start.replace(/^[\s\t]+/,"");
6899 }if(isIE){selector=selector.replace(reSelectorTag,function(s){return s.toLowerCase()
6921 source=source.replace(/url\(([^\)]+)\)/g,function(a,name){var hasDomain=/\w+:\/\/./.test(name);
6922 if(!hasDomain){name=name.replace(/^(["'])(.+)\1$/,"$2");
6926 }else{var path=url.replace(/[^\/]+\.[\w\d]+(\?.+|#.+)?$/g,"");
6929 while(reBack.test(path)){path=path.replace(reBack,"")
7002 source=source.replace(/\n\r|\r\n/g,"\n");
7050 FBL.ns(function(){with(FBL){var toCamelCase=function toCamelCase(s){return s.replace(reSelectorCase,toCamelCaseReplaceFn)
7052 var toSelectorCase=function toSelectorCase(s){return s.replace(reCamelCase,"-$1").toLowerCase()
7143 if(isIE){selector=selector.replace(reSelectorTag,function(s){return s.toLowerCase()
7196 if(!rulesBox){styleRuleBox=this.template.cascadedTag.replace({rules:[rule],inherited:[],inheritLabel:"Inherited from"},this.panelNode);
7297 }if(styleSheet.restricted){FirebugReps.Warning.tag.replace({object:"AccessRestricted"},this.panelNode);
7302 if(rules.length){result=this.template.tag.replace({rules:rules},this.panelNode)
7303 }else{result=FirebugReps.Warning.tag.replace({object:"EmptyStyleSheet"},this.panelNode)
7410 var result=this.template.cascadedTag.replace({rules:rules,inherited:sections,inheritLabel:inheritLabel},this.panelNode)
7411 }else{var result=FirebugReps.Warning.tag.replace({object:"EmptyElementCSS"},this.panelNode)
7473 }if(sothinkInstalled){FirebugReps.Warning.tag.replace({object:"SothinkWarning"},this.panelNode);
7510 }}}var result=this.template.computedTag.replace({groups:groups},this.panelNode)
7588 function StyleSheetEditor(doc){this.box=this.tag.replace({},doc,this);
7614 var rgbToHex=function rgbToHex(value){return value.replace(/\brgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)/gi,rgbToHexReplacer)
7618 var stripUnits=function stripUnits(value){return value.replace(/(url\(.*?\)|[^0]\S*\s*)|0(%|em|ex|px|in|cm|mm|pt|pc)(\s|$)/gi,stripUnitsReplacer)
7709 src=src.replace(/\n\r|\r\n/g,"\n");
7731 var onFailure=function(){FirebugReps.Warning.tag.replace({object:"AccessRestricted"},self.panelNode)
7853 var table=this.tag.replace({domPanel:this,toggles:this.toggles},dest);
7873 },showEmptyMembers:function(){FirebugReps.Warning.tag.replace({object:"NoMembersWarning"},this.panelNode)
8213 }function escapeHTML(value){return(value+"").replace(/[<>&"']/g,replaceChars)