System::String::IndexOf विधि

String::IndexOf(char_t, int, int) const method

सबस्ट्रिंग में अक्षर आगे की खोज।

int System::String::IndexOf(char_t c, int startIndex, int count) const
पैरामीटरप्रकारविवरण
cchar_tखोजने के लिए अक्षर।
startIndexintजिस स्थान से खोज शुरू करनी है उसका सूचकांक।
countintजिन अक्षरों को देखना है उनकी संख्या।

ReturnValue

startIndex से पहले अक्षर की स्थिति का इंडेक्स, या यदि नहीं मिला तो -1।

संबंधित देखें

String::IndexOf(char_t, int) const method

अक्षर आगे की खोज।

int System::String::IndexOf(char_t c, int startIndex=0) const
पैरामीटरप्रकारविवरण
cchar_tखोजने के लिए अक्षर।
startIndexintजिस स्थान से खोज शुरू करनी है उसका सूचकांक।

ReturnValue

startIndex से पहले अक्षर की स्थिति का इंडेक्स, या यदि नहीं मिला तो -1।

संबंधित देखें

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

सबस्ट्रिंग आगे की खोज।

int System::String::IndexOf(const String &str, int startIndex, int count) const
पैरामीटरप्रकारविवरण
strconst String&जिस उपस्ट्रिंग की खोज करनी है।
startIndexintस्रोत स्ट्रिंग में वह स्थिति जहाँ से खोज शुरू करनी है।
countintजाँचने के लिए अक्षरों की संख्या।

ReturnValue

पहले पाए गए सबस्ट्रिंग का इंडेक्स या यदि न मिले तो -1। खाली लुकअप स्ट्रिंग के लिए हमेशा startIndex लौटाता है।

संबंधित देखें

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

सबस्ट्रिंग आगे की खोज।

int System::String::IndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
पैरामीटरप्रकारविवरण
strconst String&जिस उपस्ट्रिंग की खोज करनी है।
startIndexintस्रोत स्ट्रिंग में वह स्थिति जहाँ से खोज शुरू करनी है।
comparison_typeSystem::StringComparisonComparison मोड।

ReturnValue

पहले पाए गए सबस्ट्रिंग का इंडेक्स या यदि न मिले तो -1। खाली लुकअप स्ट्रिंग के लिए हमेशा startIndex लौटाता है।

संबंधित देखें

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

सबस्ट्रिंग आगे की खोज।

int System::String::IndexOf(const String &str, int startIndex=0) const
पैरामीटरप्रकारविवरण
strconst String&जिस उपस्ट्रिंग की खोज करनी है।
startIndexintस्रोत स्ट्रिंग में वह स्थिति जहाँ से खोज शुरू करनी है।

ReturnValue

पहले पाए गए सबस्ट्रिंग का इंडेक्स या यदि न मिले तो -1। खाली लुकअप स्ट्रिंग के लिए हमेशा startIndex लौटाता है।

संबंधित देखें

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

सबस्ट्रिंग आगे की खोज।

int System::String::IndexOf(const String &str, System::StringComparison comparison_type) const
पैरामीटरप्रकारविवरण
strconst String&जिस उपस्ट्रिंग की खोज करनी है।
comparison_typeSystem::StringComparisonComparison मोड।

ReturnValue

पहले पाए गए सबस्ट्रिंग का इंडेक्स या यदि न मिले तो -1। खाली लुकअप स्ट्रिंग के लिए हमेशा 0 लौटाता है।

संबंधित देखें

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

सबस्ट्रिंग आगे की खोज।

int System::String::IndexOf(const String &value, int startIndex, int count, System::StringComparison comparisonType) const
पैरामीटरप्रकारविवरण
मानconst String&जिस उपस्ट्रिंग की खोज करनी है।
startIndexintस्रोत स्ट्रिंग में वह स्थिति जहाँ से खोज शुरू करनी है।
countintजाँचने के लिए अक्षरों की संख्या।
comparisonTypeSystem::StringComparisonComparison मोड।

ReturnValue

पहले पाए गए सबस्ट्रिंग का इंडेक्स या यदि न मिले तो -1। खाली लुकअप स्ट्रिंग के लिए हमेशा startIndex लौटाता है।

संबंधित देखें