DisplayTextDateFormatSupport
DisplayTextDateFormatSupport
概要
DisplayTextDateFormatSupport は Aspose.Cells の C++ 用 FOSS のクラスです。
日付/時刻表示テキストの書式設定用内部ヘルパーメソッド。
このクラスは、C++ プログラムで DisplayTextDateFormatSupport オブジェクトを操作するための 9 つのメソッドを提供します。利用可能なメソッドは、ContainsElapsedTimeToken、CountRepeated、DisplayTextDateFormatSupport、FindNeighborToken、FormatDateTimeValue、FormatElapsedTimeValue、IsElapsedToken、IsMinuteContext、MatchesToken です。Aspose.Cells の C++ 用 FOSS パッケージをインストールすれば、すべてのパブリックメンバーは任意の C++ アプリケーションから利用可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
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’ シーケンスが分(minute)の文脈にあるか(月(month)の文脈ではないか)を判定します。 |
FindNeighborToken(formatCode: std::string_view, startIndex: int, direction: int) → char | 指定された方向から startIndex へ、空白以外かつエスケープされていないトークン文字の最も近いものを検索します。見つからない場合は ‘\0’ を返します。 |