Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun
In directory sc8-pr-cvs1:/tmp/cvs-serv8754
Modified Files:
DodicoAnalyze.java DodicoDoubleDoubleSortedList.java
DodicoLib.java
Added Files:
DodicoArrayList.java
Log Message:
DodicoArrayList : classe etendant ArrayList et offrant la
methode setSize()
Modif mineure
--- NEW FILE: DodicoArrayList.java ---
(This appears to be a binary file; contents omitted.)
Index: DodicoAnalyze.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun/DodicoAnalyze.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** DodicoAnalyze.java 22 Aug 2003 15:51:11 -0000 1.5
--- DodicoAnalyze.java 2 Sep 2003 08:39:16 -0000 1.6
***************
*** 90,93 ****
--- 90,96 ----
}
+ /**
+ * Renvoie une chaine formatee contenant toutes les erreurs de l'analyse.
+ */
public String getResume(String _prefix) {
String prefix=_prefix == null?DodicoLib.EMPTY_STRING:_prefix;
***************
*** 173,177 ****
IOException _e,
DodicoAnalyze.Editor _analyze) {
! _analyze.addError("Erreur d'entrée/sortie");
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
--- 176,180 ----
IOException _e,
DodicoAnalyze.Editor _analyze) {
! _analyze.addFatalError("Erreur d'entrée/sortie");
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
***************
*** 183,187 ****
DodicoAnalyze.Editor _analyze,
FortranReader _l) {
! _analyze.addError("Format du champ incorrect", _l);
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
--- 186,190 ----
DodicoAnalyze.Editor _analyze,
FortranReader _l) {
! _analyze.addFatalError("Format du champ incorrect", _l);
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
***************
*** 192,196 ****
IllegalArgumentException _e,
DodicoAnalyze.Editor _analyze) {
! _analyze.addError("Erreur interne d'argument");
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
--- 195,199 ----
IllegalArgumentException _e,
DodicoAnalyze.Editor _analyze) {
! _analyze.addFatalError("Erreur interne d'argument");
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
***************
*** 201,205 ****
Exception _e,
DodicoAnalyze.Editor _analyze) {
! _analyze.addError("Erreur à l'exécution");
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
--- 204,208 ----
Exception _e,
DodicoAnalyze.Editor _analyze) {
! _analyze.addFatalError("Erreur à l'exécution");
_analyze.addInfo(_e.getMessage());
if (DodicoLib.DEBUG)
***************
*** 240,244 ****
_bufferStockage.append(DodicoLib.ESPACE+
"Ligne "
! + (t > 0 ? Integer.toHexString(t) : DodicoLib.EMPTY_STRING)
+ ": "
+ element.getMessage());
--- 243,247 ----
_bufferStockage.append(DodicoLib.ESPACE+
"Ligne "
! + (t > 0 ? Integer.toString(t) : DodicoLib.EMPTY_STRING)
+ ": "
+ element.getMessage());
Index: DodicoDoubleDoubleSortedList.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun/DodicoDoubleDoubleSortedList.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DodicoDoubleDoubleSortedList.java 4 Jul 2003 08:11:42 -0000 1.1
--- DodicoDoubleDoubleSortedList.java 2 Sep 2003 08:39:16 -0000 1.2
***************
*** 31,34 ****
--- 31,39 ----
return indexOfKey(_key)>=0;
}
+
+ public void ensureCapacity(int _c){
+ t_.ensureCapacity(_c);
+ val_.ensureCapacity(_c);
+ }
/**
Index: DodicoLib.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/commun/DodicoLib.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** DodicoLib.java 22 Aug 2003 15:51:11 -0000 1.11
--- DodicoLib.java 2 Sep 2003 08:39:16 -0000 1.12
***************
*** 642,653 ****
return rf;
}
!
!
! public static int findInt(int[] _array,int _intToSearch){
! int n=_array.length-1;
for (int i= n; i >= 0; i--) {
! if(_array[i]==_intToSearch) return i;
}
return -1;
}
--- 642,666 ----
return rf;
}
!
! public static int findInt(int[] _array, int _intToSearch) {
! int n= _array.length - 1;
for (int i= n; i >= 0; i--) {
! if (_array[i] == _intToSearch)
! return i;
}
return -1;
+ }
+
+ /**
+ * Recherche dans le tableau la chaine finissant par _end. Commence
+ * la recherche de la fin du tableau.
+ */
+ public static String findStringEndWith(String[] _tab, String _end) {
+ for (int i= _tab.length - 1; i >= 0; i--) {
+ String s= _tab[i];
+ if (s.endsWith(_end))
+ return s;
+ }
+ return null;
}
|