Click or drag to resize

StringExtensionsFindLast Method (String, String, Boolean)

Find the last occurrence of a substring.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static int FindLast(
	this string instance,
	string what,
	bool caseSensitive = true
)

Parameters

instance
Type: SystemString

[Missing <param name="instance"/> documentation for "M:Godot.StringExtensions.FindLast(System.String,System.String,System.Boolean)"]

what
Type: SystemString

[Missing <param name="what"/> documentation for "M:Godot.StringExtensions.FindLast(System.String,System.String,System.Boolean)"]

caseSensitive (Optional)
Type: SystemBoolean

[Missing <param name="caseSensitive"/> documentation for "M:Godot.StringExtensions.FindLast(System.String,System.String,System.Boolean)"]

Return Value

Type: Int32
The starting position of the substring, or -1 if not found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also