public static int getEndOfBrackets(String function, int posActuelle) {
		int nbrBracketsOpened = 0;
		int nbrBracketsClosed = 0;
		int endPosition = 0;
		for (int j = posActuelle; j < function.length(); j++) {

			if (function.charAt(j) == '(')
				nbrBracketsOpened++;
			else if (function.charAt(j) == ')')
				nbrBracketsClosed++;

			if (nbrBracketsOpened == nbrBracketsClosed) {
				endPosition = j;
				break;
			}

		}
		return endPosition;
	}