MCPcopy
hub / github.com/dianping/cat / _toString

Function _toString

cat-home/src/main/webapp/assets/js/editor/worker-xml.js:3029–3038  ·  view source on GitHub ↗
(chars,start,length)

Source from the content-addressed store, hash-verified

3027 }
3028}
3029function _toString(chars,start,length){
3030 if(typeof chars == 'string'){
3031 return chars.substr(start,length)
3032 }else{//java sax connect width xmldom on rhino(what about: "? && !(chars instanceof String)")
3033 if(chars.length >= start+length || start){
3034 return new java.lang.String(chars,start,length)+'';
3035 }
3036 return chars;
3037 }
3038}
3039"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(key){
3040 DOMHandler.prototype[key] = function(){return null}
3041})

Callers 10

worker-lua.jsFile · 0.85
worker-html.jsFile · 0.85
worker-php.jsFile · 0.85
worker-xml.jsFile · 0.85
ace.jsFile · 0.85
worker-coffee.jsFile · 0.85
worker-json.jsFile · 0.85
worker-xquery.jsFile · 0.85
worker-css.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected