summaryrefslogtreecommitdiff
path: root/vcl/inc/scrptrun.h
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 13:26:56 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-22 01:55:18 +0100
commit58d98a08aee7bf027c109eeb94183d24351827fa (patch)
tree4cdfd20f56d097e77f79286dfcc379eca25aa12a /vcl/inc/scrptrun.h
parenta65141b2b46ad8150bafca4629b0ef924978a201 (diff)
tdf#123936 Formatting files in module vcl with clang-format
Change-Id: Ia162ad5b7499c0ddfdbfca59ae76b81335ce2d45 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105728 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/inc/scrptrun.h')
-rw-r--r--vcl/inc/scrptrun.h47
1 files changed, 18 insertions, 29 deletions
diff --git a/vcl/inc/scrptrun.h b/vcl/inc/scrptrun.h
index b663deeed7d9..db2a778cf24a 100644
--- a/vcl/inc/scrptrun.h
+++ b/vcl/inc/scrptrun.h
@@ -43,22 +43,22 @@
#include <unicode/uscript.h>
#include <vector>
-namespace vcl {
-
+namespace vcl
+{
struct ParenStackEntry
{
int32_t pairIndex;
UScriptCode scriptCode;
ParenStackEntry()
- : pairIndex(0)
- , scriptCode(USCRIPT_INVALID_CODE)
+ : pairIndex(0)
+ , scriptCode(USCRIPT_INVALID_CODE)
{
}
};
-class ScriptRun final : public icu::UObject {
+class ScriptRun final : public icu::UObject
+{
public:
-
ScriptRun(const UChar chars[], int32_t length);
void reset();
@@ -87,13 +87,15 @@ s * ICU "poor man's RTTI", returns a UClassID for the actual class.
*
* @stable ICU 2.2
*/
- static UClassID getStaticClassID() { return static_cast<UClassID>(const_cast<char *>(&fgClassID)); }
+ static UClassID getStaticClassID()
+ {
+ return static_cast<UClassID>(const_cast<char*>(&fgClassID));
+ }
private:
-
int32_t charStart;
int32_t charLimit;
- const UChar *charArray;
+ const UChar* charArray;
int32_t scriptStart;
int32_t scriptEnd;
@@ -109,32 +111,20 @@ private:
static const char fgClassID;
};
-inline ScriptRun::ScriptRun(const UChar chars[], int32_t length)
-{
- reset(chars, 0, length);
-}
+inline ScriptRun::ScriptRun(const UChar chars[], int32_t length) { reset(chars, 0, length); }
-inline int32_t ScriptRun::getScriptStart() const
-{
- return scriptStart;
-}
+inline int32_t ScriptRun::getScriptStart() const { return scriptStart; }
-inline int32_t ScriptRun::getScriptEnd() const
-{
- return scriptEnd;
-}
+inline int32_t ScriptRun::getScriptEnd() const { return scriptEnd; }
-inline UScriptCode ScriptRun::getScriptCode() const
-{
- return scriptCode;
-}
+inline UScriptCode ScriptRun::getScriptCode() const { return scriptCode; }
inline void ScriptRun::reset()
{
scriptStart = charStart;
- scriptEnd = charStart;
- scriptCode = USCRIPT_INVALID_CODE;
- parenSP = -1;
+ scriptEnd = charStart;
+ scriptCode = USCRIPT_INVALID_CODE;
+ parenSP = -1;
parenStack.resize(128);
}
@@ -152,7 +142,6 @@ inline void ScriptRun::reset(const UChar chars[], int32_t start, int32_t length)
reset(start, length);
}
-
}
#endif