sdlWcsstr function
Search a wide string for the first instance of a specific substring.
The search ends once it finds the requested substring, or a null terminator byte to end the string.
Note that this looks for strings of wide characters, not codepoints, so it's legal to search for malformed and incomplete UTF-16 sequences.
\param haystack the wide string to search. Must not be NULL.
\param needle the wide string to search for. Must not be NULL.
\returns a pointer to the first instance of needle
in the string, or NULL
if not found.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC wchar_t * SDLCALL SDL_wcsstr(const wchar_t *haystack, const wchar_t *needle)
Implementation
Pointer<Int16> sdlWcsstr(Pointer<Int16> haystack, Pointer<Int16> needle) {
final sdlWcsstrLookupFunction = libSdl3.lookupFunction<
Pointer<Int16> Function(Pointer<Int16> haystack, Pointer<Int16> needle),
Pointer<Int16> Function(
Pointer<Int16> haystack, Pointer<Int16> needle)>('SDL_wcsstr');
return sdlWcsstrLookupFunction(haystack, needle);
}