طريقة System::String::LastIndexOf

String::LastIndexOf(char_t) const method

بحث خلفي للحرف.

int System::String::LastIndexOf(char_t value) const
ParameterTypeالوصف
valuechar_tحرف للبحث عنه.

ReturnValue

فهرس موضع الحرف الأخير أو -1 إذا لم يتم العثور عليه.

انظر أيضًا

String::LastIndexOf(char_t, int32_t) const method

بحث خلفي للحرف.

int System::String::LastIndexOf(char_t value, int32_t startIndex) const
ParameterTypeالوصف
valuechar_tحرف للبحث عنه.
startIndexint32_tفهرس بدء البحث عند.

ReturnValue

فهرس موضع الحرف الأخير منذ startIndex أو -1 إذا لم يتم العثور عليه.

انظر أيضًا

String::LastIndexOf(char_t, int32_t, int32_t) const method

بحث خلفي للحرف.

int System::String::LastIndexOf(char_t value, int32_t startIndex, int32_t count) const
ParameterTypeالوصف
valuechar_tحرف للبحث عنه.
startIndexint32_tفهرس بدء البحث عند.
countint32_tعدد الأحرف للبحث عبرها

ReturnValue

فهرس موضع الحرف الأخير منذ startIndex أو -1 إذا لم يتم العثور عليه.

انظر أيضًا

String::LastIndexOf(const String&, int, System::StringComparison) const method

بحث خلفي في الجزء الفرعي.

int System::String::LastIndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
ParameterTypeالوصف
strconst String&السلسلة الفرعية للبحث عنها.
startIndexintالموضع في السلسلة المصدر لبدء البحث عبره.
comparison_typeSystem::StringComparisonComparison وضع.

ReturnValue

فهرس السلسلة الفرعية الأخيرة التي تم العثور عليها أو -1 إذا لم يتم العثور عليها. بالنسبة لسلسلة البحث الفارغة، دائمًا ما يُرجع طول السلسلة.

انظر أيضًا

String::LastIndexOf(const String&, int) const method

بحث خلفي في الجزء الفرعي.

int System::String::LastIndexOf(const String &str, int startIndex=INT32_MAX) const
ParameterTypeالوصف
strconst String&السلسلة الفرعية للبحث عنها.
startIndexintالموضع في السلسلة المصدر لبدء البحث عبره.

ReturnValue

فهرس السلسلة الفرعية الأخيرة التي تم العثور عليها أو -1 إذا لم يتم العثور عليها. بالنسبة لسلسلة البحث الفارغة، دائمًا ما يُرجع طول السلسلة.

انظر أيضًا

String::LastIndexOf(const String&, System::StringComparison) const method

بحث خلفي في الجزء الفرعي.

int System::String::LastIndexOf(const String &str, System::StringComparison comparison_type) const
ParameterTypeالوصف
strconst String&السلسلة الفرعية للبحث عنها.
comparison_typeSystem::StringComparisonComparison وضع.

ReturnValue

فهرس السلسلة الفرعية الأخيرة التي تم العثور عليها أو -1 إذا لم يتم العثور عليها. بالنسبة لسلسلة البحث الفارغة، دائمًا ما يُرجع طول السلسلة.

انظر أيضًا

String::LastIndexOf(const String&, int, int, StringComparison) const method

بحث خلفي في الجزء الفرعي.

int System::String::LastIndexOf(const String &value, int startIndex, int count, StringComparison comparisonType) const
ParameterTypeالوصف
valueconst String&السلسلة الفرعية للبحث عنها.
startIndexintالموضع في السلسلة المصدر لبدء البحث عبره.
countintعدد الأحرف للبحث عبرها.
comparisonTypeStringComparisonComparison وضع.

ReturnValue

فهرس السلسلة الفرعية الأخيرة التي تم العثور عليها أو -1 إذا لم يتم العثور عليها. بالنسبة لسلسلة البحث الفارغة، دائمًا ما يُرجع startIndex+count.

انظر أيضًا