summaryrefslogtreecommitdiff
path: root/include/minikin/Hyphenator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/minikin/Hyphenator.h')
-rw-r--r--include/minikin/Hyphenator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/minikin/Hyphenator.h b/include/minikin/Hyphenator.h
index 26c2a19..7562973 100644
--- a/include/minikin/Hyphenator.h
+++ b/include/minikin/Hyphenator.h
@@ -122,7 +122,7 @@ inline bool isInsertion(EndHyphenEdit hyph) {
}
template <typename T, size_t size>
-constexpr size_t ARRAYSIZE(T const (&)[size]) {
+constexpr size_t ARRAY_SIZE(T const (&)[size]) {
return size;
}
constexpr uint32_t HYPHEN_STR_ZWJ[] = {CHAR_ZWJ};
@@ -132,7 +132,7 @@ constexpr uint32_t HYPHEN_STR_MAQAF[] = {CHAR_MAQAF};
constexpr uint32_t HYPHEN_STR_UCAS_HYPHEN[] = {CHAR_UCAS_HYPHEN};
constexpr uint32_t HYPHEN_STR_ZWJ_AND_HYPHEN[] = {CHAR_ZWJ, CHAR_HYPHEN};
constexpr std::pair<const uint32_t*, size_t> EMPTY_HYPHEN_STR(nullptr, 0);
-#define MAKE_HYPHEN_STR(chars) std::make_pair((chars), ARRAYSIZE(chars))
+#define MAKE_HYPHEN_STR(chars) std::make_pair((chars), ARRAY_SIZE(chars))
inline std::pair<const uint32_t*, size_t> getHyphenString(StartHyphenEdit hyph) {
if (hyph == StartHyphenEdit::INSERT_ZWJ) {