Quick question: For stuff like this (checking if a source-string consists of legal characters) i used (albeit in another programming language) the C-Function StrSpn.
Now researching this i found the Wiki-Entry regarding the libc-unit and libc-library -->
http://wiki.freepascal.org/libc_unitIf i understood the wiki correctly: The unit is deprecated, but the library still works.
So, if'd use an external declare against the libc-library, the StrSpn-Function should still work.
But: I know for a fact, that under Windows there are two different declares for the StrSpn:
1) StrSpnA (you guessed it: Ansi)
2) StrSpnW (have a guess...)
Is the external declare of the StrSpn-Function in Freepascal Ansi/Wide-String-aware?