System::String::LastIndexOf 메서드

String::LastIndexOf(char_t) const method

문자 뒤쪽 조회.

int System::String::LastIndexOf(char_t value) const
매개변수형식설명
valuechar_t찾을 문자.

ReturnValue

마지막 문자 위치의 인덱스이며, 찾지 못하면 -1을 반환합니다.

또 보기

String::LastIndexOf(char_t, int32_t) const method

문자 뒤쪽 조회.

int System::String::LastIndexOf(char_t value, int32_t startIndex) const
매개변수형식설명
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
매개변수형식설명
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
매개변수형식설명
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
매개변수형식설명
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
매개변수형식설명
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
매개변수형식설명
valueconst String&검색할 부분 문자열.
startIndexint원본 문자열에서 검색을 시작할 위치.
countint검색할 문자 수.
comparisonTypeStringComparisonComparison 모드.

ReturnValue

마지막으로 찾은 부분 문자열의 인덱스이며, 찾지 못하면 -1을 반환합니다. 검색 문자열이 비어 있으면 항상 startIndex+count를 반환합니다.

또 보기