123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: cchl
- // (C) Copyright IBM Corp. 2003, 2016.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function C_ParsedDecimalCache(){this._c5Q1={};this._cOZ=[];this._c0F=0;};C_ParsedDecimalCache.prototype.F_ParseDecimal=function(_cGN1){var _cQJ1=this._c5Q1[_cGN1];if(_cQJ1!==undefined){return _cQJ1;}for(var i=0; i<this._cOZ.length;++i){_cQJ1=this._cOZ[i][_cGN1];if(_cQJ1!==undefined){return _cQJ1;}}if(this._c0F++>100000){if(this._cOZ.length>3){G_Debug.F_Print("C_ParsedDecimalCache dropping old block");this._cOZ.pop();}G_Debug.F_Print("C_ParsedDecimalCache adding new block");this._cOZ.unshift(this._c5Q1);this._c5Q1={};this._c0F=1;}_cQJ1=C_JsCodedDecimal.F_ParseDecimal(_cGN1);this._c5Q1[_cGN1]=_cQJ1;return _cQJ1;};C_ParsedDecimalCache.prototype._cA4=function(_cGN1){return C_JsCodedDecimal.F_ParseDecimal(_cGN1);};C_ParsedDecimalCache.prototype.F_UseCache=function(b){if(b){this.F_ParseDecimal=this._c48;this._c48=null;}else{this._c48=this.F_ParseDecimal;this.F_ParseDecimal=this._cA4;}};C_ParsedDecimalCache.prototype.F_UsingCache=function(){return !this._c48;};var G_ParsedDecimalCache=new C_ParsedDecimalCache();
|