Class: String
Lua
C++
Edit

String::Find

This method performs a search for the specified term.

Syntax

Parameter Description
token search term to find

Returns

Returns the first position in the string where the search term is found, or -1 if it is not found.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    String s = "Hello, how are you today?";
    Print(s.Find("today"));

    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.