Back to FabImage Library website
You are here: Start » Function Reference » All Functions » String » FindInString
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Finds first occurrence of a substring in the input string.
Syntax
void fil::FindInString ( const ftl::String& inString, const ftl::String& inFind, const ftl::Optional<int>& inStartPosition, bool inIgnoreCase, int& outPosition, bool& outStringFound )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inString | const String& | Input string | ||
![]() |
inFind | const String& | Searched string | ||
![]() |
inStartPosition | const Optional<int>& | 0 - ![]() |
NIL | Minimum index of a searched substring in string |
![]() |
inIgnoreCase | bool | False | ||
![]() |
outPosition | int& | Position of searched string, -1 if not found | ||
![]() |
outStringFound | bool& |
Remarks
If the inFind string is not found, value -1 is returned.
Default value of inStartPosition input equals 0.
Default value of inStartPosition input equals 0.