I have string in C-code where all char in string is unique. I want to get all substring from this string, exclude empty string and getting string. How can i do this?
For example: String: "12a" I need to get: '1', '2', 'a', "12", "1a", "2a".
P.S. in my problem, set represented by string set and subset represented by substrings.