Namespaces
Variants

std::experimental::basic_string_view<CharT,Traits>:: substr

From cppreference.net
constexpr basic_string_view
substr ( size_type pos = 0 , size_type count = npos ) const ;

부분 문자열 [pos, pos + rcount) 의 뷰를 반환합니다. 여기서 rcount count size ( ) - pos 중 더 작은 값입니다.

목차

매개변수

pos - 첫 번째 문자의 위치
count - 요청된 길이

반환값

부분 문자열 뷰 [pos, pos + rcount) .

예외

std::out_of_range 만약 pos > size ( )

복잡도

상수.

참고 항목

문자 복사
(public member function)
뷰에서 문자 찾기
(public member function)