Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_linkextract.h>
Classes | |
struct | Link |
struct | Range |
Public Member Functions | |
CPDF_LinkExtract (const CPDF_TextPage *pTextPage) | |
~CPDF_LinkExtract () | |
void | ExtractLinks () |
size_t | CountLinks () const |
WideString | GetURL (size_t index) const |
std::vector< CFX_FloatRect > | GetRects (size_t index) const |
absl::optional< Range > | GetTextRange (size_t index) const |
Protected Member Functions | |
absl::optional< Link > | CheckWebLink (const WideString &str) |
bool | CheckMailLink (WideString *str) |
Protected Attributes | |
UnownedPtr< const CPDF_TextPage > const | m_pTextPage |
std::vector< Link > | m_LinkArray |
Definition at line 22 of file cpdf_linkextract.h.
|
explicit |
Definition at line 108 of file cpdf_linkextract.cpp.
References CPDF_LinkExtract().
Referenced by CPDF_LinkExtract(), and CPDF_TestLinkExtract::CPDF_TestLinkExtract().
|
default |
|
protected |
Definition at line 233 of file cpdf_linkextract.cpp.
References FXSYS_iswalnum(), fxcrt::operator+(), fxcrt::WideString::operator=(), and fxcrt::WideString::TrimRight().
Referenced by ExtractLinks(), and TEST().
|
protected |
Definition at line 179 of file cpdf_linkextract.cpp.
References fxcrt::WideString::MakeLower().
|
inline |
Definition at line 33 of file cpdf_linkextract.h.
void CPDF_LinkExtract::ExtractLinks | ( | ) |
Definition at line 113 of file cpdf_linkextract.cpp.
References fxcrt::WideString::Back(), CheckMailLink(), CPDF_TextPage::kGenerated, CPDF_TextPage::kHyphen, CPDF_TextPage::kNormal, CPDF_TextPage::CharInfo::m_CharType, and CPDF_TextPage::CharInfo::m_Unicode.
std::vector< CFX_FloatRect > CPDF_LinkExtract::GetRects | ( | size_t | index | ) | const |
Definition at line 306 of file cpdf_linkextract.cpp.
absl::optional< CPDF_LinkExtract::Range > CPDF_LinkExtract::GetTextRange | ( | size_t | index | ) | const |
Definition at line 314 of file cpdf_linkextract.cpp.
WideString CPDF_LinkExtract::GetURL | ( | size_t | index | ) | const |
Definition at line 301 of file cpdf_linkextract.cpp.
|
protected |
Definition at line 47 of file cpdf_linkextract.h.
|
protected |
Definition at line 46 of file cpdf_linkextract.h.