InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EscapeTable< T, U > Class Template Reference

Public Types

typedef size_t size_type
 
typedef EscapePair< T, U > value_type
 
typedef EscapePair< T, U > & reference
 
typedef EscapePair< T, U > const & const_reference
 
typedef SelectType<(sizeof(T) > sizeof (U))
 
typedef SelectType<(sizeof(T) > T
 
typedef SelectType<(sizeof(T) >
U::Result 
BigCharType
 
typedef BigCharType EscapeMapKey
 
typedef EscapePair< T, U >
::char_range_ref 
EscapeMapValue
 
typedef std::basic_string
< BigCharType > 
UnescapeMapKey
 
typedef T UnescapeMapValue
 
typedef std::map< EscapeMapKey,
EscapeMapValue > 
EscapeMap
 
typedef std::map
< UnescapeMapKey,
UnescapeMapValue
UnescapeMap
 

Public Member Functions

 EscapeTable (EscapePair< T, U > escapes[], size_type count)
 
 EscapeTable (EscapePair< T, U > escapes[], size_type count, U startEscapeMarker, U endEscapeMarker)
 
bool16 IsValidEscapeSequence (const EscapeMapValue &escapeSequence) const
 
bool16 IsValid () const
 
const_reference operator[] (size_type index) const
 
size_type size () const
 
EscapeMap const & GetEscapeMap () const
 
UnescapeMap const & GetUnescapeMap () const
 

Constructor & Destructor Documentation

template<typename T, typename U>
EscapeTable< T, U >::EscapeTable(EscapePair< T, U > escapes[],
size_type count 
)
inline

Constructor - initializes the escape table with an array of escape pairs All the escape sequences must start with the same escape marker and they should be the same length (since the end escape marker is not defined)

template<typename T, typename U>
EscapeTable< T, U >::EscapeTable(EscapePair< T, U > escapes[],
size_type count,
startEscapeMarker,
endEscapeMarker 
)
inline

Constructor - initializes the escape table with an array of escape pairs. All the escape sequences must be delimited by the same pair of escape markers. The escape sequences might be different in length since we have both delimiters in this case.