Here you can find the source of decryptCharcode(char c, int start, int end, int offset)
private static char decryptCharcode(char c, int start, int end, int offset)
//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; } }