jodd-core/src/main/java/jodd/util/StringBand.java
public char charAt(final int pos) {
		int len = 0;
		for (int i = 0; i < index; i++) {
			int newlen = len + array[i].length();
			if (pos < newlen) {
				return array[i].charAt(pos - len);
			}
			len = newlen;
		}
		throw new IllegalArgumentException("Invalid char index");
	}
public char charAt(final int pos) {
		int len = 0;
		for (int i = 0; i < index; i++) {
			int newlen = len + array[i].length();
			if (pos < newlen) {
				return array[i].charAt(pos - len);
			}
			len = newlen;
		}
		throw new IllegalArgumentException("Invalid char index");
	}
public char charAt ( final int pos ) { int len = 0 ; for ( int i = 0 ; i < index ; i ++ ) { int newlen = len + array [ i ] . length ( ) ; if ( pos < newlen ) { return array [ i ] . charAt ( pos - len ) ; } len = newlen ; } throw new IllegalArgumentException ( "Invalid char index" ) ; }
Returns char at given position.
This method is <b>not</b> fast as it calculates
the right string array element and the offset!
Returns char at given position . This method is <b > not< / b > fast as it calculates the right string array element and the offset!