Changeset 6232


Ignore:
Timestamp:
2003-12-12T11:51:38+13:00 (20 years ago)
Author:
kjdon
Message:

added some string handling methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java

    r4702 r6232  
    66public class XSLTUtil {
    77
    8        public static String toLower(String orig) {
     8    public static boolean equals(String s1, String s2) {
     9    return s1.equals(s2);
     10    }
     11
     12    public static boolean contains(String s1, String s2) {
     13    return (s1.indexOf(s2) != -1);
     14    }
     15    public static boolean startsWith(String s1, String s2) {
     16    return s1.startsWith(s2);
     17    }
     18    public static boolean endsWith(String s1, String s2) {
     19    return s1.endsWith(s2);
     20    }
     21   
     22    public static String toLower(String orig) {
    923    return orig.toLowerCase();
     24    }
     25    public static String toUpper(String orig) {
     26    return orig.toUpperCase();
    1027    }
    1128
Note: See TracChangeset for help on using the changeset viewer.