diff options
Diffstat (limited to 'testing/test_support.h')
-rw-r--r-- | testing/test_support.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/test_support.h b/testing/test_support.h index 7676e5783b..feec4bbe0b 100644 --- a/testing/test_support.h +++ b/testing/test_support.h @@ -62,6 +62,10 @@ std::unique_ptr<char, pdfium::FreeDeleter> GetFileContents(const char* filename, std::vector<std::string> StringSplit(const std::string& str, char delimiter); +// Converts a FPDF_WIDESTRING to a std::string. +// Deals with differences between UTF16LE and UTF8. +std::string GetPlatformString(FPDF_WIDESTRING wstr); + // Converts a FPDF_WIDESTRING to a std::wstring. // Deals with differences between UTF16LE and wchar_t. std::wstring GetPlatformWString(FPDF_WIDESTRING wstr); |