#include <rtfstyle.h>
Definition at line 59 of file rtfstyle.h.
StyleData::StyleData |
( |
const char * |
reference, |
|
|
const char * |
definition |
|
) |
| |
Definition at line 341 of file rtfstyle.cpp.
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
int match(const QCString &str, int index=0, int *len=0, bool indexIsStart=TRUE) const
static const QRegExp s_clause
StyleData::~StyleData |
( |
| ) |
|
bool StyleData::setStyle |
( |
const char * |
s, |
|
|
const char * |
styleName |
|
) |
| |
Definition at line 362 of file rtfstyle.cpp.
364 static const QRegExp subgroup(
"^{[^}]*}\\s*");
365 static const QRegExp any_clause(
"^\\\\[a-z][a-z0-9-]*\\s*");
372 err(
"Style sheet '%s' contains no '\\s' clause.\n{%s}\n", styleName,
s);
379 const char*
end =
s + len;
381 bool haveNewDefinition =
TRUE;
387 if (0 != subgroup.match(end, 0, &len))
395 else if (*end ==
'\\')
397 if (0 ==
qstrncmp(end,
"\\snext", 6))
399 if (0 ==
qstrncmp(end,
"\\sbasedon", 9))
401 if (0 != any_clause.match(end, 0, &len))
408 haveNewDefinition =
FALSE;
418 if (haveNewDefinition)
421 size_t size = 1 + strlen(end);
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
Q_EXPORT int qstrncmp(const char *str1, const char *str2, uint len)
The QRegExp class provides pattern matching using regular expressions or wildcards.
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
void err(const char *fmt,...)
int match(const QCString &str, int index=0, int *len=0, bool indexIsStart=TRUE) const
static const QRegExp s_clause
char* StyleData::definition |
unsigned StyleData::index |
char* StyleData::reference |
The documentation for this struct was generated from the following files: