I found this great solution of counting words in text. My problem is I can properly understand these "magic" of STL that the solution provide. If I understand right letter_only - is a struct that create locale object to find only letters and excluding punctuaion. When main() calls imbue() letter_only's constructor calls get_table()... Realization of this function for me - deep dark magic.
I spend a lot of time to read cppreference but can't exactly understand those 3 strings.
My goal is adapting this solution to unicode chars.
Can someone explain me how it works? Thank you.