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.cpp File Reference

(08e24b2ba6847221abd35e9b994206b764d6b322)

#include "testing/fx_string_testhelpers.h"
#include <iomanip>
#include <ios>
#include <ostream>
#include "core/fxcrt/cfx_datetime.h"
#include "core/fxcrt/check_op.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/span.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
Include dependency graph for fx_string_testhelpers.cpp:

Go to the source code of this file.

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)

Function Documentation

◆ GetFPDFWideString()

ScopedFPDFWideString GetFPDFWideString ( const std::wstring & wstr)

Definition at line 64 of file fx_string_testhelpers.cpp.

◆ GetFPDFWideStringBuffer()

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

Definition at line 82 of file fx_string_testhelpers.cpp.

◆ GetPlatformString()

std::string GetPlatformString ( FPDF_WIDESTRING wstr)

Definition at line 42 of file fx_string_testhelpers.cpp.

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

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), 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 47 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(), 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 18 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 27 of file fx_string_testhelpers.cpp.