Skip to content
Snippets Groups Projects
Commit a0067415 authored by rswindell's avatar rswindell
Browse files

The Win32 implementation of strcasestr() defined here is currently very

heavy-handed (performs strdup/malloc's and modifications of the strings),
so a temporary hack is to perform a case-sensitive search (using the standard
strstr() function) first. The results won't exactly match the traditional
strstr() and the performance improvement is only for positive matches
(where the correct case was guessed in the passed 'needle' string arg).
TODO: re-write or copy a good/fast strcasestr() implementation for Win32 builds.
parent 0e66b7eb
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment