git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@82344 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1ad61900a5
commit
1b156b62d8
|
@ -187,6 +187,12 @@ public class Transformations {
|
|||
|
||||
|
||||
public static void main(String[] args) throws Exception{
|
||||
|
||||
List<String> ll = Transformations.parseCVSString("h,t,,,,k,", ",");
|
||||
for (String l:ll){
|
||||
System.out.println(l);
|
||||
}
|
||||
|
||||
String s = "un'estate al mare";
|
||||
System.out.println("index: "+indexString(s));
|
||||
System.out.println("sha1: "+Sha1.SHA1(s));
|
||||
|
@ -205,7 +211,7 @@ public class Transformations {
|
|||
int idxdelim = -1;
|
||||
boolean quot = false;
|
||||
phrase = phrase.trim();
|
||||
while ( (idxdelim = phrase.indexOf(delimiter))>0) {
|
||||
while ( (idxdelim = phrase.indexOf(delimiter))>=0) {
|
||||
quot=phrase.startsWith("\"");
|
||||
if (quot){
|
||||
phrase = phrase.substring(1);
|
||||
|
|
Loading…
Reference in New Issue