Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fx_string_testhelpers.h File Reference

(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)

#include <iosfwd>
#include <memory>
#include <string>
#include <vector>
#include "public/fpdfview.h"
#include "testing/free_deleter.h"
+ Include dependency graph for fx_string_testhelpers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using ScopedFPDFWideString = std::unique_ptr<FPDF_WCHAR, pdfium::FreeDeleter>
 

Functions

std::ostream & operator<< (std::ostream &os, const CFX_DateTime &dt)
 
std::vector< std::stringStringSplit (const std::string &str, char delimiter)
 
std::string GetPlatformString (FPDF_WIDESTRING wstr)
 
std::wstring GetPlatformWString (FPDF_WIDESTRING wstr)
 
ScopedFPDFWideString GetFPDFWideString (const std::wstring &wstr)
 
std::vector< FPDF_WCHARGetFPDFWideStringBuffer (size_t length_bytes)
 

Typedef Documentation

◆ ScopedFPDFWideString

Definition at line 31 of file fx_string_testhelpers.h.

Function Documentation

◆ GetFPDFWideString()

ScopedFPDFWideString GetFPDFWideString ( const std::wstring & wstr)

Definition at line 63 of file fx_string_testhelpers.cpp.

◆ GetFPDFWideStringBuffer()

std::vector< FPDF_WCHAR > GetFPDFWideStringBuffer ( size_t length_bytes)

Definition at line 78 of file fx_string_testhelpers.cpp.

◆ GetPlatformString()

std::string GetPlatformString ( FPDF_WIDESTRING wstr)

Definition at line 41 of file fx_string_testhelpers.cpp.

References fxcrt::ByteString::c_str(), fxcrt::WideString::ToUTF8(), and WideStringFromFPDFWideString().

Referenced by TEST_F(), TEST_F(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPlatformWString()

std::wstring GetPlatformWString ( FPDF_WIDESTRING wstr)

Definition at line 46 of file fx_string_testhelpers.cpp.

Referenced by DumpMetaData(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const CFX_DateTime & dt )

Definition at line 17 of file fx_string_testhelpers.cpp.

References CFX_DateTime::GetDay(), CFX_DateTime::GetHour(), CFX_DateTime::GetMillisecond(), CFX_DateTime::GetMinute(), CFX_DateTime::GetMonth(), CFX_DateTime::GetSecond(), and CFX_DateTime::GetYear().

+ Here is the call graph for this function:

◆ StringSplit()

std::vector< std::string > StringSplit ( const std::string & str,
char delimiter )

Definition at line 26 of file fx_string_testhelpers.cpp.