/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.encoding.compression.lzw"]){dojo._hasResource["dojox.encoding.compression.lzw"]=true;dojo.provide("dojox.encoding.compression.lzw");dojo.require("dojox.encoding.bits");(function(){var _1=function(x){var w=1;for(var v=2;x>=v;v<<=1,++w){}return w;};dojox.encoding.compression.lzw.Encoder=function(n){this.size=n;this.init();};dojo.extend(dojox.encoding.compression.lzw.Encoder,{init:function(){this.dict={};for(var i=0;i=0){this.codes.push(this.codes[this.p]+v.substr(0,1));}}else{if((c&(c+1))==0){this.codes.push("");++this.width;return "";}var x=this.codes[this.p];v=x+x.substr(0,1);this.codes.push(v);}this.p=c;return v;}});})();}