DisplayTextDateFormatSupport
DisplayTextDateFormatSupport
개요
DisplayTextDateFormatSupport은 Aspose.Cells FOSS for C++의 클래스입니다.
날짜/시간 표시 텍스트를 포맷하기 위한 내부 도우미 메서드.
이 클래스는 C++ 프로그램에서 DisplayTextDateFormatSupport 객체를 다루기 위한 9개의 메서드를 제공합니다. 사용 가능한 메서드에는 ContainsElapsedTimeToken, CountRepeated, DisplayTextDateFormatSupport, FindNeighborToken, FormatDateTimeValue, FormatElapsedTimeValue, IsElapsedToken, IsMinuteContext, MatchesToken가 포함됩니다. Aspose.Cells FOSS for C++ 패키지를 설치한 후 모든 C++ 애플리케이션에서 모든 public members에 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
DisplayTextDateFormatSupport() | 이 DisplayTextDateFormatSupport 인스턴스에서 DisplayTextDateFormatSupport를 호출합니다. |
FormatDateTimeValue(value: DateTime, formatCode: std::string_view, culture: std::locale) → std::string | 주어진 포맷 코드와 로케일에 따라 DateTime 값을 포맷합니다. |
FormatElapsedTimeValue(time: std::chrono::duration<double>, formatCode: std::string_view, culture: std::locale) → std::string | 주어진 포맷 코드와 로케일에 따라 TimeSpan 값을 포맷합니다. |
IsElapsedToken(token: std::string_view) → bool | 토큰(대소문자 구분 없음)이 h, hh, m, mm, s, ss와 같은 경과 시간 토큰인 경우 true를 반환합니다. |
ContainsElapsedTimeToken(formatCode: std::string_view) → bool | 포맷 코드에서 대괄호로 묶인 경과 시간 토큰을 스캔합니다. |
MatchesToken(formatCode: std::string_view, startIndex: int, token: std::string_view) → bool | startIndex에서 시작하는 서브스트링이 토큰과 일치하는지(대소문자 구분 없이) 테스트합니다. |
CountRepeated(formatCode: std::string_view, startIndex: int, token: char) → int | startIndex 위치의 문자가 연속해서 나타나는 횟수를 셉니다. |
IsMinuteContext(formatCode: std::string_view, startIndex: int, count: int) → bool | 주어진 위치에 있는 ’m’/‘M’ 시퀀스가 분 단위 컨텍스트에 있는지(월 단위 컨텍스트가 아닌) 판단합니다. |
FindNeighborToken(formatCode: std::string_view, startIndex: int, direction: int) → char | 주어진 방향에서 startIndex부터 가장 가까운 공백이 아니고 이스케이프되지 않은 토큰 문자를 찾습니다. 찾지 못하면 ‘\0’을 반환합니다. |