summaryrefslogtreecommitdiffstats
path: root/src/jake2/util/Lib.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-23 10:09:55 +0000
committerHolger Zickner <[email protected]>2004-07-23 10:09:55 +0000
commita161d9817f1a86aedffb8789e2134c6a29e5fa35 (patch)
tree9d5298865c5a7781c099a0f3fca94c2205476610 /src/jake2/util/Lib.java
parent4d14584117e56e51ea4fd69de1807a0e3329e7dc (diff)
replace Lib functions
Diffstat (limited to 'src/jake2/util/Lib.java')
-rw-r--r--src/jake2/util/Lib.java33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/jake2/util/Lib.java b/src/jake2/util/Lib.java
index 4f5559c..e0d1791 100644
--- a/src/jake2/util/Lib.java
+++ b/src/jake2/util/Lib.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 09.12.2003 by RST.
-// $Id: Lib.java,v 1.4 2004-07-12 20:47:01 hzi Exp $
+// $Id: Lib.java,v 1.5 2004-07-23 10:09:55 hzi Exp $
package jake2.util;
@@ -75,10 +75,6 @@ public class Lib {
return in1.compareTo(in2);
}
- public static int stricmp(String in1, String in2) {
- return in1.compareToIgnoreCase(in2);
- }
-
public static boolean strstr(String i1, String i2) {
return (i1.indexOf(i2) != -1);
}
@@ -123,10 +119,6 @@ public class Lib {
return res;
}
-// public static int strlen(String in) {
-// return in.length();
-// }
-
public static int strlen(char in[]) {
for (int i = 0; i < in.length; i++)
if (in[i] == 0)
@@ -141,21 +133,6 @@ public class Lib {
return in.length;
}
- public static void strcat(String in, String i) {
- in += i;
- }
-
- public static void strcpy(byte dest[], byte src[]) {
- for (int i = 0; i < dest.length && i < src.length; i++)
- if (src[i] == 0) {
- dest[i] = 0;
- return;
- }
- else
- dest[i] = src[i];
-
- }
-
static byte[] buffer = new byte[Defines.MAX_INFO_STRING];
public static String readString(ByteBuffer bb, int len) {
bb.get(buffer, 0, len);
@@ -242,14 +219,6 @@ public class Lib {
f.write(s.getBytes(), 0, len);
}
- public static String cut(String in, char c) {
- int pos = in.indexOf(c);
-
- if (pos != -1)
- return in.substring(0, pos);
- return in;
- }
-
public static RandomAccessFile fopen(String name, String mode) {
try {
return new RandomAccessFile(name, mode);