Package java.lang

Examples of java.lang.String.toLowerCase()


  {
    String filename = CBUtility.chooseFileToSave(this, "Please specify a location to save this certificate",
        new String[] {"der"}, "Certificate file (*.der)");
    if (filename == null) return;

    if (!filename.toLowerCase().endsWith(".der"))
      filename = filename + ".der";

    if (!CBUtility.okToWriteFile(CBUtility.getParentFrame(this), filename))
    {
      return;
View Full Code Here


        // not a message we can handle.
        if (mail.getContentType().indexOf("text/") != 0) {
            throw new SieveMailException("Message is not of type 'text'");
        }
        String body = (String) mail.getContent();
        body = body.toLowerCase();

        // Compare each test string with body, ignoring case
        ListIterator iter = strings.getList().listIterator();
        while (iter.hasNext()) {
            String str = (String) iter.next();
View Full Code Here

        // Compare each test string with body, ignoring case
        ListIterator iter = strings.getList().listIterator();
        while (iter.hasNext()) {
            String str = (String) iter.next();
            if (body.indexOf(str.toLowerCase()) != -1) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

        // CUSTOM NUMBERS start
        boolean convert = Character.isLetter(s.charAt(s.length()-1)) && !s.contains("x");
        Number n;
        if (convert) {
            n = matchNumber(s.substring(0, s.length()-1));
            s = s.toLowerCase();
            if (s.endsWith("d")) {
                n = n.doubleValue();
            } else if (s.endsWith("f")) {
                n = n.floatValue();
            } else if (s.endsWith("l")) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.