Click here to Skip to main content
11,704,315 members (55,860 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

SSE accelerated case-insensitive substring search

, 14 May 2012 CPOL 9.2K 176 12
Another take on the classic, now using SSE instructions
wcsistr.zip
/******************************************************************************

    TITLE     : SSE accelerated case-insensitive substring search
    AUTHOR    : anlarke
    COPYRIGHT : The Code Project Open License (CPOL)
                [http://www.codeproject.com/info/Licenses.aspx]
    DATE      : May 14, 2012

******************************************************************************/

#ifndef __WCSISTR_H__
#define __WCSISTR_H__

#include <wchar.h>

#ifdef __cplusplus
extern "C"
{
#endif

wchar_t* _wsetlocale_map(int category, const wchar_t *locale);
wchar_t towlower_map(wchar_t c);
wchar_t towupper_map(wchar_t c);
const wchar_t* wcsistr(const wchar_t *wcs1, const wchar_t *wcs2);

#ifdef __cplusplus
}
#endif

#endif // __WCSISTR_H__

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

anlarke
Netherlands Netherlands
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150819.1 | Last Updated 14 May 2012
Article Copyright 2012 by anlarke
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid