Forum Discussion
Dec 15, 2009
The code does an exact string match. I have no clue on why you may be getting a positive result on a partial match. The logic in the code is as follows:
Loop over the searches (the class_members array)
Loop over the class_members[ i ].members array
Loop over the entries in the class
if the class entry equals the search term, break and return true.
We're using a 3rd party class library which overloads the == operator and I'm fairly confident this is doing a strcmp under the seams.
I'll do some testing today to see if I can reproduce partial matches.
-Joe