5 #ifndef PDFTRON_H_CPPCommonUString
6 #define PDFTRON_H_CPPCommonUString
10 #include <C/Common/TRN_Types.h>
11 #include <C/Common/TRN_UString.h>
103 UString(
const std::wstring& value );
272 int ConvertToAscii(
char* in_out_buf,
int buf_sz,
bool null_term)
const;
292 int ConvertToUtf8(
char* in_out_buf,
int buf_sz,
bool null_term)
const;
361 int ConvertToPDFText(
char* in_out_buf,
int buf_sz,
bool force_unicode =
false)
const;
392 #include <Impl/UString.inl>
397 #endif // PDFTRON_H_CPPCommonUString
std::string ConvertToUtf8() const
std::basic_string< UInt32 > ConvertToUtf32() const
friend UString operator+(const UString &str1, const UString &str2)
std::ostream & operator<<(std::ostream &stream, const UString &str)
std::string ConvertToAscii() const
void Resize(int count, Unicode ch= ' ')
friend bool operator==(const UString &rStr1, const UString &rStr2)
friend bool operator<=(const UString &rStr1, const UString &rStr2)
Text represented as PDF Text (section 3.8.1 'Text Strings' in PDF Reference).
std::wstring ConvertToNativeWString() const
int ConvertToAscii(char *in_out_buf, int buf_sz, bool null_term) const
int ConvertToPDFText(char *in_out_buf, int buf_sz, bool force_unicode=false) const
const Unicode * GetBuffer() const
UString Concat(const UString &str) const
UTF-16BE (big-endian) encoding scheme.
Unicode GetAt(int idx) const
UString & Assign(const UString &uni)
PDFDocEncoding. See Appendix 'D' in PDF Reference.
UString & operator+=(const UString &str)
friend bool operator<(const UString &rStr1, const UString &rStr2)
friend bool operator!=(const UString &rStr1, const UString &rStr2)
const Unicode * CStr() const
int Compare(const UString &str, int max_length=-1) const
WinAnsiiEncoding. See Appendix 'D' in PDF Reference.
UString SubStr(int off=0, int count=-1) const
void PushBack(Unicode ch)
friend bool operator>=(const UString &rStr1, const UString &rStr2)
UString & Assign2(const char *buf, int buf_sz=-1, TextEncoding enc=e_utf8)
friend bool operator>(const UString &rStr1, const UString &rStr2)
UString & operator=(const UString &str)