TSDuck  v3.35-3218
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::AbstractNumber &obj)
 Output operator for AbstractNumber objects on standard text streams. More...
 
std::ostream & operator<< (std::ostream &strm, const ts::StringifyInterface &obj)
 Output operator for stringifiable objects on standard text streams. 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::UString &str)
 Output operator for ts::UString on standard text streams with UTF-8 conversion. More...
 

Detailed Description

Unicode string.

Function Documentation

◆ operator<<() [1/5]

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/5]

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/5]

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/5]

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

Output operator for stringifiable objects on standard text streams.

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

◆ operator<<() [5/5]

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

Output operator for AbstractNumber objects on standard text streams.

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