Java String Descrypt decryptCharcode(char c, int start, int end, int offset)

Here you can find the source of decryptCharcode(char c, int start, int end, int offset)

Description

decrypt Charcode

License

Open Source License

Declaration

private static char decryptCharcode(char c, int start, int end, int offset) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static char decryptCharcode(char c, int start, int end, int offset) {
        int n = (int) c;
        n = n + offset;//w ww .  jav  a  2s .  c  o m
        if (offset > 0 && n > end) {
            n = start + (n - end - 1);
        } else if (offset < 0 && n < start) {
            n = end - (start - n - 1);
        }
        return (char) n;
    }
}

Related

  1. decrypt(String string)
  2. decrypt(String string)
  3. decrypt2(byte[] arg0, int arg1, String arg2, byte arg3)
  4. decryptBytes(final byte[] b, final int i)
  5. decryptChar(String pwd, int offset, int pos)
  6. decryptEmailId(String encryptedEmailId)
  7. decryptL(byte[] bytes, int length)
  8. decryptMailAdress(String enc, int offset)
  9. decryptPwd(String enc)