summaryrefslogtreecommitdiff
path: root/include/minikin/GraphemeBreak.h
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2017-11-29 16:37:49 -0800
committerSeigo Nonaka <nona@google.com>2017-11-29 17:18:17 -0800
commit6c8722e217ff5238f0b849152d7936959a728103 (patch)
treeadabbc15ffb3a4a5fe6fa40d396e75406cd56f12 /include/minikin/GraphemeBreak.h
parent0dcb27d502afcb34f59ac85c886ec13a5fdaa0dd (diff)
downloadminikin-6c8722e217ff5238f0b849152d7936959a728103.tar.gz
Apply clang-format
Bug: 65125938 Test: m Change-Id: I4a4319cc34c186aa0a3ce1d0301af1cd4e0feb81
Diffstat (limited to 'include/minikin/GraphemeBreak.h')
-rw-r--r--include/minikin/GraphemeBreak.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/minikin/GraphemeBreak.h b/include/minikin/GraphemeBreak.h
index a6095da..8d8e359 100644
--- a/include/minikin/GraphemeBreak.h
+++ b/include/minikin/GraphemeBreak.h
@@ -24,24 +24,18 @@ namespace minikin {
class GraphemeBreak {
public:
// These values must be kept in sync with CURSOR_AFTER etc in Paint.java
- enum MoveOpt {
- AFTER = 0,
- AT_OR_AFTER = 1,
- BEFORE = 2,
- AT_OR_BEFORE = 3,
- AT = 4
- };
+ enum MoveOpt { AFTER = 0, AT_OR_AFTER = 1, BEFORE = 2, AT_OR_BEFORE = 3, AT = 4 };
// Determine whether the given offset is a grapheme break.
// This implementation generally follows Unicode's UTR #29 extended
// grapheme break, with various tweaks.
static bool isGraphemeBreak(const float* advances, const uint16_t* buf, size_t start,
- size_t count, size_t offset);
+ size_t count, size_t offset);
// Matches Android's Java API. Note, return (size_t)-1 for AT to
// signal non-break because unsigned return type.
static size_t getTextRunCursor(const float* advances, const uint16_t* buf, size_t start,
- size_t count, size_t offset, MoveOpt opt);
+ size_t count, size_t offset, MoveOpt opt);
};
} // namespace minikin