Say, one's got a base62 number (alphabet: [aAbBcC-yYzZ0-9]) char *num="abcd"
. The alphabet used to create such a number consists of letters in non-alphabetical order! ('A' after 'a', not 'b').
How to get the next number of the sequence (how to add 1 to base62 number)? Next is "abce" and previous is "abcc". I'd appreciate it if you provide me with some code.
See Question&Answers more detail:os