ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:strfind

Table of Contents

StrFind

int StrFind(str s, str what)

Description

Returns the position of what in s. If the string is not present, returns -1.

Examples

StrFind("abcdef", "def") -> 3
StrFind("abcdef", "abc") -> 0
StrFind("abcABCabc", "ABC") -> 3
StrFind("abcdef", "xyz") -> -1
functions/strfind.1489996496.txt.gz · Last modified: 2017/03/20 09:54 by korshun