This commit is contained in:
Gianpaolo Coro 2013-10-03 09:00:40 +00:00
parent 1ad61900a5
commit 1b156b62d8
1 changed files with 7 additions and 1 deletions

View File

@ -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);