Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Evaluates to the searched-for string if it's found within another string.
Syntax
$(findstring searchFor,input)
$(findstringi searchFor,input)
Parameters
searchFor
The string to search for.
input
The string to search in.
Return value
If searchFor is found within input, then the function returns searchFor, otherwise it returns null.
Remarks
findstringi is the case-insensitive version of findstring.
This macro function is available starting in Visual Studio 2022, in NMAKE version 14.30 or later.
Example
$(findstring Hello,Hello World!) # Evaluates to "Hello"
$(findstring Hey,Hello World!) # Evaluates to ""
$(findstring hello,Hello World!) # Evaluates to "" - findstring is case-sensitive
$(findstringi hello,Hello World!) # Evaluates to "hello" - findstringi is case-insensitive