Mercurial > hg > STI-GWT
changeset 5:272b1b18e635
added ucsv lib and added dariah logo
git-svn-id: http://dev.dariah.eu/svn/repos/eu.dariah.de/ap1/sti-gwt-dariah-geobrowser@50 f2b5be40-def6-11e0-8a09-b3c1cc336c6b
author | StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b> |
---|---|
date | Fri, 20 Jul 2012 10:55:46 +0000 |
parents | 517a6422d1bd |
children | 7bf904a68ce7 |
files | .gitattributes war/images/DARIAH.png war/scripts/ucsv/LICENSE.txt war/scripts/ucsv/ucsv-1.1.0-min.js |
diffstat | 4 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.gitattributes Fri Jul 20 10:14:57 2012 +0000 +++ b/.gitattributes Fri Jul 20 10:55:46 2012 +0000 @@ -72,6 +72,7 @@ war/e4D-ie.html -text war/favicon.ico -text war/images/.directory -text +war/images/DARIAH.png -text svneol=unset#image/png war/images/activatedMap.png -text svneol=unset#image/png war/images/activatedPlot.png -text svneol=unset#image/png war/images/ajax-loader.gif -text @@ -963,3 +964,5 @@ war/scripts/sti/kruskal.js -text war/scripts/sti/properties.js -text war/scripts/sti/timeplot-modify.js -text +war/scripts/ucsv/LICENSE.txt svneol=native#text/plain +war/scripts/ucsv/ucsv-1.1.0-min.js -text
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/war/scripts/ucsv/LICENSE.txt Fri Jul 20 10:55:46 2012 +0000 @@ -0,0 +1,19 @@ +Copyright (c) 2010-2012 Peter Johnson, http://www.UselessCode.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/war/scripts/ucsv/ucsv-1.1.0-min.js Fri Jul 20 10:55:46 2012 +0000 @@ -0,0 +1,8 @@ +/*! + * UCSV 1.1.0 + * Provided under MIT License. + * + * Copyright 2010-2012, Peter Johnson + * http://www.uselesscode.org/javascript/csv/ + */ +var CSV=(function(){var f=/^\d+$/,g=/^\d*\.\d+$|^\d+\.\d*$/,i=/^\s|\s$|,|"|\n/,b=(function(){if(String.prototype.trim){return function(j){return j.trim()}}else{return function(j){return j.replace(/^\s*/,"").replace(/\s*$/,"")}}}());function h(j){return Object.prototype.toString.apply(j)==="[object Number]"}function a(j){return Object.prototype.toString.apply(j)==="[object String]"}function d(j){if(j.charAt(j.length-1)!=="\n"){return j}else{return j.substring(0,j.length-1)}}function e(k){var p,m="",o,n,l;for(n=0;n<k.length;n+=1){o=k[n];for(l=0;l<o.length;l+=1){p=o[l];if(a(p)){p=p.replace(/"/g,'""');if(i.test(p)||f.test(p)||g.test(p)){p='"'+p+'"'}else{if(p===""){p='""'}}}else{if(h(p)){p=p.toString(10)}else{if(p===null){p=""}else{p=p.toString()}}}m+=l<o.length-1?p+",":p}m+="\n"}return m}function c(t,p){t=d(t);var q="",l=false,m=false,o="",r=[],j=[],k,n;n=function(s){if(m!==true){if(s===""){s=null}else{if(p===true){s=b(s)}}if(f.test(s)){s=parseInt(s,10)}else{if(g.test(s)){s=parseFloat(s,10)}}}return s};for(k=0;k<t.length;k+=1){q=t.charAt(k);if(l===false&&(q===","||q==="\n")){o=n(o);r.push(o);if(q==="\n"){j.push(r);r=[]}o="";m=false}else{if(q!=='"'){o+=q}else{if(!l){l=true;m=true}else{if(t.charAt(k+1)==='"'){o+='"';k+=1}else{l=false}}}}}o=n(o);r.push(o);j.push(r);return j}if(typeof exports==="object"){exports.arrayToCsv=e;exports.csvToArray=c}return{arrayToCsv:e,csvToArray:c}}()); \ No newline at end of file