private int getNextProgramCharDistance(String line, int i) {
		boolean inComment = false;
		int remainingCharNum = line.length() - i;
		int charDistance = 1;

		for (charDistance = 1; charDistance < remainingCharNum; charDistance++) {
			int ch = line.charAt(i + charDistance);
			if (inComment) {
				if (line.regionMatches(false, i + charDistance, "*/", 0, 2)) {
					charDistance++;
					inComment = false;
				}
			} else if ((ch != 32) && (ch != 9)) {
				if (ch == 47) {
					if (line.regionMatches(false, i + charDistance, "//", 0, 2))
						return remainingCharNum;
					if (line.regionMatches(false, i + charDistance, "/*", 0, 2)) {
						charDistance++;
						inComment = true;
					}
				} else {
					return charDistance;
				}
			}
		}
		return charDistance;
	}