lokalize
#include <catalogstring.h>
Public Types | |
enum | InlineElement { _unknown, bpt, ept, ph, it, mrk, g, sub, _pairedXmlTagDelimiter, x, bx, ex, InlineElementCount } |
Public Member Functions | |
InlineTag () | |
InlineTag (int start_, int end_, InlineElement type_, QString id_=QString(), QString xid_=QString(), QString equivText_=QString(), QString ctype_=QString()) | |
QString | displayName () const |
const char * | getElementName () const |
InlineTag | getPlaceholder () const |
bool | isEmpty () const |
bool | isPaired () const |
const char * | name () const |
bool | operator< (const InlineTag &other) const |
Static Public Member Functions | |
static const char * | getElementName (InlineElement type) |
static InlineElement | getElementType (const QByteArray &) |
static bool | isPaired (InlineElement type) |
Public Attributes | |
QString | ctype |
int | end |
QString | equivText |
QString | id |
int | start |
InlineElement | type |
QString | xid |
Detailed Description
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE_SYMBOL in the 'plainttext' and a struct TagRange
describes which tag is behind TAGRANGE_IMAGE_SYMBOL char (or chars – starting and ending) in source or target string start==end for non-paired tags
Definition at line 44 of file catalogstring.h.
Member Enumeration Documentation
Enumerator | |
---|---|
_unknown | |
bpt | |
ept | |
ph | |
it | |
mrk | |
g | |
sub | |
_pairedXmlTagDelimiter | |
x | |
bx | |
ex | |
InlineElementCount |
Definition at line 49 of file catalogstring.h.
Constructor & Destructor Documentation
|
inlineexplicit |
Definition at line 76 of file catalogstring.h.
|
inline |
Definition at line 78 of file catalogstring.h.
Member Function Documentation
QString InlineTag::displayName | ( | ) | const |
Definition at line 68 of file catalogstring.cpp.
|
static |
Definition at line 29 of file catalogstring.cpp.
|
inline |
Definition at line 103 of file catalogstring.h.
|
static |
- Returns
- 0 if type is unknown
Definition at line 58 of file catalogstring.cpp.
InlineTag InlineTag::getPlaceholder | ( | ) | const |
used to denote tag that doesn't present in target, to have parallel numbering in view
- Returns
- TagRange object prototype to be inserted into target
- See also
- isEmpty()
Definition at line 50 of file catalogstring.cpp.
|
inline |
for situations when target doesn't contain tag (of the same type and with the same id) from source true means that the object corresponds to some tag in source, but target does not contain it.
- See also
- getPlaceholder()
Definition at line 89 of file catalogstring.h.
|
inlinestatic |
Definition at line 105 of file catalogstring.h.
|
inline |
Definition at line 106 of file catalogstring.h.
|
inline |
Definition at line 104 of file catalogstring.h.
|
inline |
Definition at line 110 of file catalogstring.h.
Member Data Documentation
QString InlineTag::ctype |
Definition at line 74 of file catalogstring.h.
int InlineTag::end |
Definition at line 69 of file catalogstring.h.
QString InlineTag::equivText |
Definition at line 73 of file catalogstring.h.
QString InlineTag::id |
Definition at line 71 of file catalogstring.h.
int InlineTag::start |
Definition at line 68 of file catalogstring.h.
InlineElement InlineTag::type |
Definition at line 70 of file catalogstring.h.
QString InlineTag::xid |
Definition at line 72 of file catalogstring.h.
The documentation for this struct was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.