var foswiki;if(foswiki==undefined){foswiki={}}foswiki.String={isWikiWord:function(a){if(!a){return false}var b=new RegExp(foswiki.StringConstants.getInstance().WIKIWORD_REGEX);return(a.match(b))?true:false},capitalize:function(a){if(!a){return null}var b=new RegExp("["+foswiki.StringConstants.getInstance().MIXED_ALPHANUM_CHARS+"]+","g");return a.replace(b,function(c){return c.charAt(0).toLocaleUpperCase()+c.substr(1)})},isBoolean:function(a){return(a=="on")||(a=="true")||(a=="1")},removeSpaces:function(a){if(!a){return null}var c=a;var d="";for(var b=0;bBR%%BR%");c=new RegExp(/\n/g);a=a.replace(c,"%BR%");a+=" ";return a}};foswiki.StringConstants=function(){this.init()};foswiki.StringConstants.__instance__=null;foswiki.StringConstants.getInstance=function(){if(this.__instance__==null){this.__instance__=new foswiki.StringConstants()}return this.__instance__};foswiki.StringConstants.prototype.UPPER_ALPHA_CHARS="A-Z";foswiki.StringConstants.prototype.LOWER_ALPHA_CHARS="a-z";foswiki.StringConstants.prototype.NUMERIC_CHARS="\\d";foswiki.StringConstants.prototype.MIXED_ALPHA_CHARS;foswiki.StringConstants.prototype.MIXED_ALPHANUM_CHARS;foswiki.StringConstants.prototype.LOWER_ALPHANUM_CHARS;foswiki.StringConstants.prototype.WIKIWORD_REGEX;foswiki.StringConstants.prototype.ALLOWED_URL_CHARS;foswiki.StringConstants.prototype.init=function(){foswiki.StringConstants.prototype.MIXED_ALPHA_CHARS=foswiki.StringConstants.prototype.LOWER_ALPHA_CHARS+foswiki.StringConstants.prototype.UPPER_ALPHA_CHARS;foswiki.StringConstants.prototype.MIXED_ALPHANUM_CHARS=foswiki.StringConstants.prototype.MIXED_ALPHA_CHARS+foswiki.StringConstants.prototype.NUMERIC_CHARS;foswiki.StringConstants.prototype.LOWER_ALPHANUM_CHARS=foswiki.StringConstants.prototype.LOWER_ALPHA_CHARS+foswiki.StringConstants.prototype.NUMERIC_CHARS;foswiki.StringConstants.prototype.WIKIWORD_REGEX="^["+foswiki.StringConstants.prototype.UPPER_ALPHA_CHARS+"]+["+foswiki.StringConstants.prototype.LOWER_ALPHANUM_CHARS+"]+["+foswiki.StringConstants.prototype.UPPER_ALPHA_CHARS+"]+["+foswiki.StringConstants.prototype.MIXED_ALPHANUM_CHARS+"]*";foswiki.StringConstants.prototype.ALLOWED_URL_CHARS=foswiki.StringConstants.prototype.MIXED_ALPHANUM_CHARS+"-_^"};