From 805124ebc0109678a3078afc0b6720c7cb134fbc Mon Sep 17 00:00:00 2001 From: amontano Date: Mon, 5 Jul 2004 03:56:20 +0000 Subject: [PATCH] fixed some stuff in dictionary importation, --- .../thdl/tib/scanner/BinaryFileGenerator.java | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/source/org/thdl/tib/scanner/BinaryFileGenerator.java b/source/org/thdl/tib/scanner/BinaryFileGenerator.java index 97fd1bc..c147499 100644 --- a/source/org/thdl/tib/scanner/BinaryFileGenerator.java +++ b/source/org/thdl/tib/scanner/BinaryFileGenerator.java @@ -203,17 +203,6 @@ public class BinaryFileGenerator extends SimplifiedLinkedList { return sil; } - - private static String deleteQuotes(String s) - { - int length = s.length(); - if (length>2) - { - if ((s.charAt(0)=='\"') && (s.charAt(length-1)=='\"')) - return s.substring(1,length-1); - } - return s; - } public void addFile(String archivo, int delimiterType, String delimiter, int defNum) throws Exception { @@ -502,14 +491,14 @@ public class BinaryFileGenerator extends SimplifiedLinkedList } else { - s1 = deleteQuotes(entrada.substring(0,marker).trim()); - s2 = deleteQuotes(entrada.substring(marker+1).trim()); + s1 = Manipulate.deleteQuotes(entrada.substring(0,marker).trim()); + s2 = Manipulate.deleteQuotes(entrada.substring(marker+delimiter.length()).trim()); if (!s2.equals("")) { marker2 = s1.indexOf(';'); if (marker2>0) { - alternateWords = Manipulate.parseFields(s1, ';'); + alternateWords = s1.split(";"); for (marker2=0; marker2