Back to Adaptive Vision Library website

You are here: Start » Function Reference » String » FindLastInString

FindLastInString


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Finds last occurrence of a substring in the input string.

Syntax

void avl::FindLastInString
(
	const atl::String& inString,
	const atl::String& inFind,
	const atl::Optional<int>& inEndPosition,
	int& outPosition
)

Parameters

Name Type Range Default Description
inString const String& Input string
inFind const String& Searched string
inEndPosition const Optional<int>& 0 - NIL Maximum index of a searched substring in string
outPosition int& Position of searched string

Remarks

If the inFind string is not found, value -1 is returned.
Default value of inEndPosition input is equal to the length of inString.