I am a little confused and hope for enlightenment.
I am using Delphi 2010 for this project and I am trying to compare 2 lines.
Using the code below
if AnsiStrIComp(PAnsiChar(sCatName), PAnsiChar(CatNode.CatName)) = 0 then...
because according to the debugger, only the first character of each line is compared (i.e. if sCatName- "Automobiles", PAnsiChar(sCatName)- "A").
I want to be able to compare strings that can be in different languages, for example, English and Japanese.
In this case, I am looking for a match, but I have other functions used for sorting, etc., where I need to know how to compare strings (less, equal, more).
source
share