DisplayTextDateFormatSupport
DisplayTextDateFormatSupport
Overview
DisplayTextDateFormatSupport 是 C++ 的 FOSS 中的 Aspose.Cells 类.
格式化日期/时间显示文本的内部辅助方法.
本类提供了9种方法,用于在C++程序中与DisplayTextDateFormatSupport对象工作. 有的方法包括: ContainsElapsedTimeToken, CountRepeated, DisplayTextDateFormatSupport, FindNeighborToken, FormatDateTimeValue, FormatElapsedTimeValue, IsElapsedToken, IsMinuteContext, MatchesToken. 在安装了Aspose.Cells FOSS for C++ 包后,所有公众成员都可以访问任何C ++应用程序.
Methods
| Signature | Description |
|---|---|
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开始的子字符串是否与 token (不敏感于大写) 相匹配. |
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". |