#include <PtlSearchTextResults.h>
PtlPDFDocument/PtlPageのsearchText関数で取得されるテキスト検索結果のコンテナを表現するクラスです。
ページ番号
検索に使用した文字
検索でヒットした文字
検索でヒットした文字を囲むQuadPoint
(例) "日本の夏"と"ヨーロッパの冬"で検索して3箇所ヒット
1ページ
"日本の夏"
"日本の夏"
1ページ
"日本の夏"
"日本の"
"夏"
1ページ
"ヨーロッパの冬"
"ヨーロッパの冬"
PtlSearchTextResults()
コンストラクタ
PtlSearchTextResults.h の 50 行目に定義があります。
◆ PtlSearchTextResults() [1/2]
PdfTk::PtlSearchTextResults::PtlSearchTextResults |
( |
| ) |
|
◆ PtlSearchTextResults() [2/2]
コピーコンストラクタ alias copy
- 引数
-
- 例外
-
◆ get()
テキスト検索結果を取得。
指定した番号の検索結果を取得します。
- 引数
-
index | Index番号。0が先頭。
indexが負や検索結果数以上の場合は、例外が発生します。 |
- 戻り値
- 検索結果(PtlSearchTextResult)。
- 例外
-
◆ getCount()
int PdfTk::PtlSearchTextResults::getCount |
( |
| ) |
const |
テキスト検索結果数を取得。
- 戻り値
- 検索結果数。
- 例外
-
◆ isEmpty()
bool PdfTk::PtlSearchTextResults::isEmpty |
( |
| ) |
const |
空かどうかを取得。
- 戻り値
- true: 空、false: 空ではない。
- 例外
-
◆ operator=()