TSDuck Version 3.16-1037 (TSDuck - The MPEG Transport Stream Toolkit)
tsUString.h File Reference

Unicode string. More...

Classes

class  ts::UString
 An implementation of UTF-16 strings. More...
 

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Typedefs

typedef std::list< UString > ts::UStringList
 List of strings.
 
typedef std::vector< UString > ts::UStringVector
 Vector of strings.
 

Enumerations

enum  ts::StringDirection {
  ts::LEFT_TO_RIGHT,
  ts::RIGHT_TO_LEFT
}
 Direction used on string operations. More...
 

Functions

std::ostream & operator<< (std::ostream &strm, const ts::UString &str)
 Output operator for ts::UString on standard text streams with UTF-8 conversion. More...
 
std::ostream & operator<< (std::ostream &strm, const ts::UChar *str)
 Output operator for Unicode string on standard text streams with UTF-8 conversion. More...
 
std::ostream & operator<< (std::ostream &strm, const ts::UChar c)
 Output operator for ts::UChar on standard text streams with UTF-8 conversion. More...
 
std::ostream & operator<< (std::ostream &strm, const ts::StringifyInterface &obj)
 Output operator for stringifiable objects on standard text streams. More...
 

Detailed Description

Unicode string.

Function Documentation

◆ operator<<() [1/4]

std::ostream& operator<< ( std::ostream &  strm,
const ts::UString str 
)

Output operator for ts::UString on standard text streams with UTF-8 conversion.

Parameters
[in,out]strmA standard stream in output mode.
[in]strA string.
Returns
A reference to the strm object.

◆ operator<<() [2/4]

std::ostream& operator<< ( std::ostream &  strm,
const ts::UChar str 
)

Output operator for Unicode string on standard text streams with UTF-8 conversion.

Parameters
[in,out]strmA standard stream in output mode.
[in]strA string.
Returns
A reference to the strm object.

◆ operator<<() [3/4]

std::ostream& operator<< ( std::ostream &  strm,
const ts::UChar  c 
)

Output operator for ts::UChar on standard text streams with UTF-8 conversion.

Parameters
[in,out]strmA standard stream in output mode.
[in]cA character.
Returns
A reference to the strm object.

◆ operator<<() [4/4]

std::ostream& operator<< ( std::ostream &  strm,
const ts::StringifyInterface obj 
)
inline

Output operator for stringifiable objects on standard text streams.

Parameters
[in,out]strmAn standard stream in output mode.
[in]objA stringifiable object.
Returns
A reference to the strm object.