well I don't speak C++, but in python it is simply like this:
or am I missing something completely obvious?
Code:
>>> substring = "py"
>>> string = "python"
>>> substring in string
True
<-- The actual Minecraft server host