I have to check if the particular string begins with another one. Strings are encoded using utf8, and a comparison should be case insensitive.
I know that this is very similar to that topic Case insensitive string comparison in C++ but I do not want to use the boost library and I prefer portable solutions (If it is 'nearly' impossible, I prefer Linux oriented solutions).
Is it possible in C++11 using its regexp library? Or just using simple string compare methods?
éhas its own code point, but can also be achieved by using the characterefollowed by the acute accent code point. Your solution needs to be aware of that. Second, case-insensitive comparison usually takes the strings and uppercases/lowercases them. This is actually a locale-sensitive operation: for instance, the German letterßis the shorthand forssand its uppercase version isSS.