SFAPIclient/Requests/IDNAEncoder.php
protected static function digit_to_char($digit) {
		if ($digit < 0 || $digit > 35) {
			throw new Requests_Exception(sprintf('Invalid digit %d', $digit), 'idna.invalid_digit', $digit);
		}
		$digits = 'abcdefghijklmnopqrstuvwxyz0123456789';
		return $digits[$digit];
	}
protected static function digit_to_char($digit) {
		if ($digit < 0 || $digit > 35) {
			throw new Requests_Exception(sprintf('Invalid digit %d', $digit), 'idna.invalid_digit', $digit);
		}
		$digits = 'abcdefghijklmnopqrstuvwxyz0123456789';
		return $digits[$digit];
	}
protected static function digit_to_char ( $ digit ) { if ( $ digit < 0 || $ digit > 35 ) { throw new Requests_Exception ( sprintf ( 'Invalid digit %d' , $ digit ) , 'idna.invalid_digit' , $ digit ) ; } $ digits = 'abcdefghijklmnopqrstuvwxyz0123456789' ; return $ digits [ $ digit ] ; }
Convert a digit to its respective character

@see http://tools.ietf.org/html/rfc3492#section-5
@throws Requests_Exception On invalid digit (`idna.invalid_digit`)

@param int $digit Digit in the range 0-35
@return string Single character corresponding to digit
Convert a digit to its respective character