Java Hash String hasHighChars(String s)

Here you can find the source of hasHighChars(String s)

Description

has High Chars

License

Apache License

Declaration

public static boolean hasHighChars(String s) 

Method Source Code

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

public class Main {
    public static char LOWCHAR = ' ';
    public static char HIGHCHAR = 0xFFFF;

    public static boolean hasHighChars(String s) {
        int len = s.length();
        for (int i = 0; i < len; i++) {
            char ch = s.charAt(i);
            if (ch < LOWCHAR || ch > HIGHCHAR) {
                if (ch != '\n' && ch != '\r')
                    return true;
            }/* ww  w  . j a  va 2 s  .  c om*/
        }
        return false;
    }
}

Related

  1. hashCodeToString(byte[] hash)
  2. hashCodeToString(long code)
  3. hasHeirarchy(String xpath)
  4. hasHexOrDecLongUrnSuffix(String value)
  5. hasHexPrefix(final String hexSymbols)
  6. hasHint(String hint, String parameter)
  7. hashIt(String s)
  8. hasHost(String path)
  9. hashOTP(String otp)