Forum Discussion
Hamish
Cirrocumulus
Dec 15, 2009find_string_class_member clarification needed...
Hi.
Does anyone know what find_class_string_member actually compares? Is it the whole string? Or just the portion up to the default field separator (' ')?
...
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
