Java String Ends With endsWithStarsPattern(String text, int from)

Here you can find the source of endsWithStarsPattern(String text, int from)

Description

ends With Stars Pattern

License

Apache License

Declaration

final static private boolean endsWithStarsPattern(String text, int from) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    final static private boolean endsWithStarsPattern(String text, int from) {
        if (from < 0)
            from = 0;/* ww w .  ja v  a  2s. c  o m*/
        for (; from < text.length(); from++) {
            char c = text.charAt(from);
            if (c != '*' && c != '%')
                return false;
        }
        return true;
    }
}

Related

  1. endsWithSingleQuoteS(String s)
  2. endsWithSlash(final String path)
  3. endsWithSomeChar(char cs[], String activationToken)
  4. endsWithSpace(String s)
  5. endsWithSpaces(final String text)
  6. endsWithStartOfOther(String text, String textOther)
  7. endsWithStop(String str)
  8. endsWithWhitespace(final CharSequence charSeq)
  9. endsWithWhitespace(String s)