summaryrefslogtreecommitdiffstats
path: root/qtools/qstring.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-12-28 09:13:43 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2017-12-28 09:13:43 (GMT)
commit989de07559a112c398da0bf3e7a1112ed5c8dbd7 (patch)
tree07e79b6c76dec9c20f6c0df3c6662d73dcade4ef /qtools/qstring.h
parent9538bfd15c99aceb619f426b30c87004c4820370 (diff)
parent3977359bd3fb5527a237c2c0cdb61407f2d85464 (diff)
downloadDoxygen-989de07559a112c398da0bf3e7a1112ed5c8dbd7.zip
Doxygen-989de07559a112c398da0bf3e7a1112ed5c8dbd7.tar.gz
Doxygen-989de07559a112c398da0bf3e7a1112ed5c8dbd7.tar.bz2
Merge branch 'master' of https://github.com/ahoogol/doxygen into ahoogol-master
Diffstat (limited to 'qtools/qstring.h')
-rw-r--r--qtools/qstring.h37
1 files changed, 35 insertions, 2 deletions
diff --git a/qtools/qstring.h b/qtools/qstring.h
index df3873d..5fcff29 100644
--- a/qtools/qstring.h
+++ b/qtools/qstring.h
@@ -369,6 +369,38 @@ public:
QString &operator=( QChar c );
QString &operator=( char c );
+ enum Direction
+ {
+ /// No strongly directional text.
+ /*!
+ * As return value for direction() or baseDirection(), it means that the source string
+ * is missing or empty, or contains neither left-to-right nor right-to-left characters.
+ */
+ DirNeutral = 0x0,
+ /// Left-to-right text.
+ /*!
+ * - As return value for direction(), it means that the source string
+ * contains no right-to-left characters.
+ * - As return value for basicDirection(), it means that the first strong character
+ * of the source string has a left-to-right direction.
+ */
+ DirLTR = 0b01,
+ /// Right-to-left text.
+ /*!
+ * - As return value for direction(), it means that the source string
+ * contains no left-to-right characters.
+ * - As return value for basicDirection(), it means that the first strong character
+ * of the source string has a right-to-left direction.
+ */
+ DirRTL = 0b10,
+ /// Mixed-directional text
+ /*!
+ * As return value for direction(), it means that the source string
+ * contains both left-to-right and right-to-left characters.
+ */
+ DirMixed = 0b11
+ };
+
//QT_STATIC_CONST QString null;
//bool isNull() const;
@@ -535,8 +567,9 @@ public:
#endif
// new functions for BiDi
void compose();
- QChar::Direction basicDirection();
- QString visual(int index = 0, int len = -1);
+ QString::Direction direction() const;
+ QString::Direction basicDirection() const;
+ QString visual(int index = 0, int len = -1);
#ifndef QT_NO_COMPAT
const char* data() const { return latin1(); }