Permalink
Browse files

Added ascii chars to test files to make sure encoding is correct

  • Loading branch information...
1 parent a3eb26f commit 8a11093f04ed28cd83989968456c0d6a36dd3274 @davglass davglass committed Sep 19, 2012
Oops, something went wrong.
@@ -22,6 +22,22 @@ http://yuilibrary.com/license/
* @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)
*/
var YQLRequest = function (sql, callback, params, opts) {
+ var _types = {
+ esc: {
+ token: '\uE000',
+ re: /\\[:\[\]\(\)#\.\'\>+~"]/gi
+ },
+
+ attr: {
+ token: '\uE001',
+ re: /(\[[^\]]*\])/g
+ },
+
+ pseudo: {
+ token: '\uE002',
+ re: /(\([^\)]*\))/g
+ }
+ };
if (!params) {
params = {};
@@ -5,4 +5,4 @@ Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
-var a=function(f,g,e,d){if(!e){e={};}e.q=f;if(!e.format){e.format=c.YQLRequest.FORMAT;}if(!e.env){e.env=c.YQLRequest.ENV;}this._context=this;if(d&&d.context){this._context=d.context;delete d.context;}if(e&&e.context){this._context=e.context;delete e.context;}this._params=e;this._opts=d;this._callback=g;};a.prototype={_jsonp:null,_opts:null,_callback:null,_params:null,_context:null,_internal:function(){this._callback.apply(this._context,arguments);},send:function(){var d=[],e=((this._opts&&this._opts.proto)?this._opts.proto:c.YQLRequest.PROTO);c.each(this._params,function(h,g){d.push(g+"="+encodeURIComponent(h));});d=d.join("&");e+=((this._opts&&this._opts.base)?this._opts.base:c.YQLRequest.BASE_URL)+d;var f=(!c.Lang.isFunction(this._callback))?this._callback:{on:{success:this._callback}};f.on=f.on||{};this._callback=f.on.success;f.on.success=c.bind(this._internal,this);if(f.allowCache!==false){f.allowCache=true;}if(!this._jsonp){this._jsonp=c.jsonp(e,f);}else{this._jsonp.url=e;if(f.on&&f.on.success){this._jsonp._config.on.success=f.on.success;}this._jsonp.send();}return this;}};a.FORMAT="json";a.PROTO="http";a.BASE_URL=":/"+"/query.yahooapis.com/v1/public/yql?";a.ENV="http:/"+"/datatables.org/alltables.env";c.YQLRequest=a;c.YQL=function(f,g,e,d){return new c.YQLRequest(f,g,e,d).send();};},"@VERSION@",{"requires":["jsonp","jsonp-url"]});
+var a=function(f,h,e,d){var g={esc:{token:"\uE000",re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:"\uE001",re:/(\[[^\]]*\])/g},pseudo:{token:"\uE002",re:/(\([^\)]*\))/g}};if(!e){e={};}e.q=f;if(!e.format){e.format=c.YQLRequest.FORMAT;}if(!e.env){e.env=c.YQLRequest.ENV;}this._context=this;if(d&&d.context){this._context=d.context;delete d.context;}if(e&&e.context){this._context=e.context;delete e.context;}this._params=e;this._opts=d;this._callback=h;};a.prototype={_jsonp:null,_opts:null,_callback:null,_params:null,_context:null,_internal:function(){this._callback.apply(this._context,arguments);},send:function(){var d=[],e=((this._opts&&this._opts.proto)?this._opts.proto:c.YQLRequest.PROTO);c.each(this._params,function(h,g){d.push(g+"="+encodeURIComponent(h));});d=d.join("&");e+=((this._opts&&this._opts.base)?this._opts.base:c.YQLRequest.BASE_URL)+d;var f=(!c.Lang.isFunction(this._callback))?this._callback:{on:{success:this._callback}};f.on=f.on||{};this._callback=f.on.success;f.on.success=c.bind(this._internal,this);if(f.allowCache!==false){f.allowCache=true;}if(!this._jsonp){this._jsonp=c.jsonp(e,f);}else{this._jsonp.url=e;if(f.on&&f.on.success){this._jsonp._config.on.success=f.on.success;}this._jsonp.send();}return this;}};a.FORMAT="json";a.PROTO="http";a.BASE_URL=":/"+"/query.yahooapis.com/v1/public/yql?";a.ENV="http:/"+"/datatables.org/alltables.env";c.YQLRequest=a;c.YQL=function(f,g,e,d){return new c.YQLRequest(f,g,e,d).send();};},"@VERSION@",{"requires":["jsonp","jsonp-url"]});
@@ -22,6 +22,22 @@ http://yuilibrary.com/license/
* @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)
*/
var YQLRequest = function (sql, callback, params, opts) {
+ var _types = {
+ esc: {
+ token: '\uE000',
+ re: /\\[:\[\]\(\)#\.\'\>+~"]/gi
+ },
+
+ attr: {
+ token: '\uE001',
+ re: /(\[[^\]]*\])/g
+ },
+
+ pseudo: {
+ token: '\uE002',
+ re: /(\([^\)]*\))/g
+ }
+ };
if (!params) {
params = {};
Oops, something went wrong.
@@ -22,6 +22,22 @@ http://yuilibrary.com/license/
* @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)
*/
var YQLRequest = function (sql, callback, params, opts) {
+ var _types = {
+ esc: {
+ token: '\uE000',
+ re: /\\[:\[\]\(\)#\.\'\>+~"]/gi
+ },
+
+ attr: {
+ token: '\uE001',
+ re: /(\[[^\]]*\])/g
+ },
+
+ pseudo: {
+ token: '\uE002',
+ re: /(\([^\)]*\))/g
+ }
+ };
if (!params) {
params = {};
@@ -5,4 +5,4 @@ Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
-;var n=function(t,n,r,i){r||(r={}),r.q=t,r.format||(r.format=e.YQLRequest.FORMAT),r.env||(r.env=e.YQLRequest.ENV),this._context=this,i&&i.context&&(this._context=i.context,delete i.context),r&&r.context&&(this._context=r.context,delete r.context),this._params=r,this._opts=i,this._callback=n};n.prototype={_jsonp:null,_opts:null,_callback:null,_params:null,_context:null,_internal:function(){this._callback.apply(this._context,arguments)},send:function(){var t=[],n=this._opts&&this._opts.proto?this._opts.proto:e.YQLRequest.PROTO;e.each(this._params,function(e,n){t.push(n+"="+encodeURIComponent(e))}),t=t.join("&"),n+=(this._opts&&this._opts.base?this._opts.base:e.YQLRequest.BASE_URL)+t;var r=e.Lang.isFunction(this._callback)?{on:{success:this._callback}}:this._callback;return r.on=r.on||{},this._callback=r.on.success,r.on.success=e.bind(this._internal,this),r.allowCache!==!1&&(r.allowCache=!0),this._jsonp?(this._jsonp.url=n,r.on&&r.on.success&&(this._jsonp._config.on.success=r.on.success),this._jsonp.send()):this._jsonp=e.jsonp(n,r),this}},n.FORMAT="json",n.PROTO="http",n.BASE_URL="://query.yahooapis.com/v1/public/yql?",n.ENV="http://datatables.org/alltables.env",e.YQLRequest=n,e.YQL=function(t,n,r,i){return(new e.YQLRequest(t,n,r,i)).send()}},"1.2.3.4",{requires:["jsonp","jsonp-url"]});
+;var n=function(t,n,r,i){var s={esc:{token:"\ue000",re:/\\[:\[\]\(\)#\.\'\>+~"]/gi},attr:{token:"\ue001",re:/(\[[^\]]*\])/g},pseudo:{token:"\ue002",re:/(\([^\)]*\))/g}};r||(r={}),r.q=t,r.format||(r.format=e.YQLRequest.FORMAT),r.env||(r.env=e.YQLRequest.ENV),this._context=this,i&&i.context&&(this._context=i.context,delete i.context),r&&r.context&&(this._context=r.context,delete r.context),this._params=r,this._opts=i,this._callback=n};n.prototype={_jsonp:null,_opts:null,_callback:null,_params:null,_context:null,_internal:function(){this._callback.apply(this._context,arguments)},send:function(){var t=[],n=this._opts&&this._opts.proto?this._opts.proto:e.YQLRequest.PROTO;e.each(this._params,function(e,n){t.push(n+"="+encodeURIComponent(e))}),t=t.join("&"),n+=(this._opts&&this._opts.base?this._opts.base:e.YQLRequest.BASE_URL)+t;var r=e.Lang.isFunction(this._callback)?{on:{success:this._callback}}:this._callback;return r.on=r.on||{},this._callback=r.on.success,r.on.success=e.bind(this._internal,this),r.allowCache!==!1&&(r.allowCache=!0),this._jsonp?(this._jsonp.url=n,r.on&&r.on.success&&(this._jsonp._config.on.success=r.on.success),this._jsonp.send()):this._jsonp=e.jsonp(n,r),this}},n.FORMAT="json",n.PROTO="http",n.BASE_URL="://query.yahooapis.com/v1/public/yql?",n.ENV="http://datatables.org/alltables.env",e.YQLRequest=n,e.YQL=function(t,n,r,i){return(new e.YQLRequest(t,n,r,i)).send()}},"1.2.3.4",{requires:["jsonp","jsonp-url"]});
@@ -22,6 +22,22 @@ http://yuilibrary.com/license/
* @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)
*/
var YQLRequest = function (sql, callback, params, opts) {
+ var _types = {
+ esc: {
+ token: '\uE000',
+ re: /\\[:\[\]\(\)#\.\'\>+~"]/gi
+ },
+
+ attr: {
+ token: '\uE001',
+ re: /(\[[^\]]*\])/g
+ },
+
+ pseudo: {
+ token: '\uE002',
+ re: /(\([^\)]*\))/g
+ }
+ };
if (!params) {
params = {};
@@ -20,6 +20,22 @@ http://yuilibrary.com/license/
* @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)
*/
var YQLRequest = function (sql, callback, params, opts) {
+ var _types = {
+ esc: {
+ token: '\uE000',
+ re: /\\[:\[\]\(\)#\.\'\>+~"]/gi
+ },
+
+ attr: {
+ token: '\uE001',
+ re: /(\[[^\]]*\])/g
+ },
+
+ pseudo: {
+ token: '\uE002',
+ re: /(\([^\)]*\))/g
+ }
+ };
if (!params) {
params = {};

0 comments on commit 8a11093

Please sign in to comment.