Extends this fingerprint by the characters
<code>chars[start]..chars[start+length-1]</code>.

@return
the resulting fingerprint.
552030
public FP64 extend(char[] chars, int start, int len) {
    int end = start + len;
    for (int i = start; i < end; i++) {
      extend(chars[i]);
    }
    return this;
  }
953448
public CharSequence generate(Context context) {
        Object attribute = context.getAttribute(getName());
        if (attribute == null) {
            return "null";
        } else {
            CharSequence seq;
            if (attribute instanceof CharSequence) {
                seq = (CharSequence) attribute;
            } else {
                seq = attribute.toString();
            }

            if (function == Function.value) {
                return seq;
            } else {
                return String.valueOf(seq.length());
            }
        }
    }
1091646
public byte[] getFingerprintFromFile(String fingerprintFile) {
        byte[] fingerprint = null;
        try {
            InputStream fis = new FileInputStream(fingerprintFile);
            fingerprint = getFingerprintFromInputStream(fis);
            fis.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return fingerprint;
    }
1303822
public boolean startsWith(final Bits key) {
    if (key.bitLength > this.bitLength) {
      return false;
    }
    final Bits prefix = key.bitLength < this.bitLength ? this.range(0,
      key.bitLength) : this;
    return prefix.compareTo(key) == 0;
  }
962761
public String substring(int start, int end) {
        char[] buf = new char[end - start];
        getChars(start, end, buf, 0);
        return new String(buf);
    }
1284141
public FP64 extend(String s) {
    final int len = s.length();
    for (int i = 0; i < len; i++) {
      extend(s.charAt(i));
    }
    return this;
  }
1083809
public IStringBuffer append( char[] chars, int start, int length )
    {
        if ( chars == null )
            throw new NullPointerException();
        if ( start < 0 )
            throw new IndexOutOfBoundsException();
        if ( length <= 0 )
            throw new IndexOutOfBoundsException();
        if ( start + length > chars.length ) 
            throw new IndexOutOfBoundsException();
        
        //check the necessary to resize the buffer.
        if ( count + length > buff.length ) {
            resizeTo( (count + length) * 2 + 1 );
        }
        
        for ( int j = 0; j < length; j++ ) {
            buff[count++] = chars[start+j];
        }
        
        return this;
    }
664009
private int countCharsStart(final char ch, final boolean allowSpaces)
    {
        int count = 0;
        for (int i = 0; i < this.value.length(); i++)
        {
            final char c = this.value.charAt(i);
            if (c == ' ' && allowSpaces)
            {
                continue;
            }
            if (c == ch)
            {
                count++;
            }
            else
            {
                break;
            }
        }
        return count;
    }
840674
public static String expandShorthandHex(String color) {
		validateHex(color);
		if (color.length() < 6) {
			StringBuilder expandColor = new StringBuilder();
			int startIndex = 0;
			if (color.startsWith("#")) {
				expandColor.append("#");
				startIndex++;
			}
			for (; startIndex < color.length(); startIndex++) {
				String expand = expandShorthandHexSingle(color.substring(
						startIndex, startIndex + 1));
				expandColor.append(expand);
			}
			color = expandColor.toString();
		}
		return color;
	}
305617
public Fingerprint fingerprintSuccessColor(int fingerprintSuccess) {
        this.fingerprintSuccess = fingerprintSuccess;
        this.fingerprintImageView.setBackgroundTintList(ColorStateList.valueOf(getContext().getColor(fingerprintSuccess)));
        return this;
    }
832006
public static Characters allBut(char... chars) {
        return chars.length == 0 ? Characters.ALL : new Characters(true, chars.clone());
    }
661869
public JSPStrBuffer append(char[] chars, int start, int length) {
		sb.append(chars, start, length);
		return this;
	}
175021
public static boolean startWith(@Nullable CharSequence s, char c) {
		if (StringUtils.isEmpty(s)) {
			return false;
		}
		return s.charAt(0) == c;
	}
137849
private SignatureFieldExtension initExtension() {
        SignatureFieldExtension ext = new SignatureFieldExtension(this);
        ext.addSignatureChangeListener(new SignatureFieldExtension.SignatureChangeListener() {
            
            private static final long serialVersionUID = 1L;

            @Override
            public void signatureChange(SignatureFieldExtension.SignatureChangeEvent event) {
                changingVariables = true;
                try {
                    setValue(event.getSignature(), true);
                } finally {
                    changingVariables = false;
                }
            }
        });
        return ext;
    }
1369415
public void characters(final char[] ch, final int start, final int length) throws SAXException {
        charBuffer.append(ch, start, length);
    }
635888
protected function generateFingerprint()
    {
        // Assume empty fingerprint
        $fingerprint = '';

        // Who is requesting (fingerprint client)
        $headers = getallheaders();

        // Get arguments
        $arguments   = func_get_args();
        $arguments[] = $_SERVER['REMOTE_ADDR'];
        $arguments[] = (isset($headers['USER_AGENT'])) ? $headers['USER_AGENT'] : null;
        $arguments[] = (isset($headers['ACCEPT'])) ? $headers['ACCEPT'] : null;
        $arguments[] = (isset($headers['ACCEPT_LANGUAGE'])) ? $headers['ACCEPT_LANGUAGE'] : null;
        $arguments[] = (isset($headers['ACCEPT_ENCODING'])) ? $headers['ACCEPT_ENCODING'] : null;
        $arguments[] = $this->translateToTemplateFilename();

        foreach ($arguments as $argument) {
            $fingerprint .= serialize($argument);
        }

        return md5($fingerprint);
    }
803990
public Fingerprint fingerprintScanningColor(int fingerprintScanning) {
        this.fingerprintScanning = fingerprintScanning;
        this.fingerprintImageView.setBackgroundTintList(ColorStateList.valueOf(getContext().getColor(fingerprintScanning)));
        return this;
    }