aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-02-14 14:49:52 +1100
committerNeil <nyamatongwe@gmail.com>2024-02-14 14:49:52 +1100
commit4548491a4080ba8ca556a0740058a5b7e5dd4ee7 (patch)
tree5eb6e62320836944544bfb8944786e9c52626c48
parent7cc2f9baf6cf20fb9a87c5521dddc03f0a88401f (diff)
downloadscintilla-mirror-4548491a4080ba8ca556a0740058a5b7e5dd4ee7.tar.gz
Remove redundant inline from constexpr functions.
-rw-r--r--src/UniConversion.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/UniConversion.h b/src/UniConversion.h
index a21a020c3..b4f4c89f6 100644
--- a/src/UniConversion.h
+++ b/src/UniConversion.h
@@ -44,15 +44,15 @@ inline int UnicodeFromUTF8(const unsigned char *us) noexcept {
}
}
-inline constexpr bool UTF8IsTrailByte(unsigned char ch) noexcept {
+constexpr bool UTF8IsTrailByte(unsigned char ch) noexcept {
return (ch >= 0x80) && (ch < 0xc0);
}
-inline constexpr bool UTF8IsAscii(unsigned char ch) noexcept {
+constexpr bool UTF8IsAscii(unsigned char ch) noexcept {
return ch < 0x80;
}
-inline constexpr bool UTF8IsAscii(char ch) noexcept {
+constexpr bool UTF8IsAscii(char ch) noexcept {
const unsigned char uch = ch;
return uch < 0x80;
}
@@ -93,11 +93,11 @@ enum { SURROGATE_TRAIL_FIRST = 0xDC00 };
enum { SURROGATE_TRAIL_LAST = 0xDFFF };
enum { SUPPLEMENTAL_PLANE_FIRST = 0x10000 };
-inline constexpr unsigned int UTF16CharLength(wchar_t uch) noexcept {
+constexpr unsigned int UTF16CharLength(wchar_t uch) noexcept {
return ((uch >= SURROGATE_LEAD_FIRST) && (uch <= SURROGATE_LEAD_LAST)) ? 2 : 1;
}
-inline constexpr unsigned int UTF16LengthFromUTF8ByteCount(unsigned int byteCount) noexcept {
+constexpr unsigned int UTF16LengthFromUTF8ByteCount(unsigned int byteCount) noexcept {
return (byteCount < 4) ? 1 : 2;
}