def _string_to_int(self, string):
        number = 0
        for char in string[::-1]:
            number = number * self._alpha_len + self._alphabet.index(char)
        return number
Convert a string to a number, using the given alphabet..
dataset/ETHPy150Open stochastic-technologies/shortuuid/shortuuid/main.py/ShortUUID._string_to_int