Back to Aurora Vision Library Lite website

You are here: Start » All Functions » String » FindInString

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: avl

Finds first occurrence of a substring in the input string.

Syntax

void avl::FindInString
(
	const atl::String& inString,
	const atl::String& inFind,
	const atl::Optional<int>& inStartPosition,
	bool inIgnoreCase,
	int& outPosition,
	bool& outStringFound
)

Parameters

Name Type Range Default Description
Input value inString const String& Input string
Input value inFind const String& Searched string
Input value inStartPosition const Optional<int>& 0 - NIL Minimum index of a searched substring in string
Input value inIgnoreCase bool False
Output value outPosition int& Position of searched string, -1 if not found
Output value outStringFound bool&

Remarks

If the inFind string is not found, value -1 is returned.
Default value of inStartPosition input equals 0.