From 339eaebfe4242db4f30e41c13c5cd35cc80750b0 Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Wed, 26 Jun 2024 13:56:44 -0400 Subject: Removed all inlines --- src/PropsData.zig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/PropsData.zig') diff --git a/src/PropsData.zig b/src/PropsData.zig index f6c8370..b77bf30 100644 --- a/src/PropsData.zig +++ b/src/PropsData.zig @@ -81,62 +81,62 @@ pub fn deinit(self: *const Self) void { } /// True if `cp` is a mathematical symbol. -pub inline fn isMath(self: Self, cp: u21) bool { +pub fn isMath(self: Self, cp: u21) bool { return self.core_s2[self.core_s1[cp >> 8] + (cp & 0xff)] & 1 == 1; } /// True if `cp` is an alphabetic character. -pub inline fn isAlphabetic(self: Self, cp: u21) bool { +pub fn isAlphabetic(self: Self, cp: u21) bool { return self.core_s2[self.core_s1[cp >> 8] + (cp & 0xff)] & 2 == 2; } /// True if `cp` is a valid identifier start character. -pub inline fn isIdStart(self: Self, cp: u21) bool { +pub fn isIdStart(self: Self, cp: u21) bool { return self.core_s2[self.core_s1[cp >> 8] + (cp & 0xff)] & 4 == 4; } /// True if `cp` is a valid identifier continuation character. -pub inline fn isIdContinue(self: Self, cp: u21) bool { +pub fn isIdContinue(self: Self, cp: u21) bool { return self.core_s2[self.core_s1[cp >> 8] + (cp & 0xff)] & 8 == 8; } /// True if `cp` is a valid extended identifier start character. -pub inline fn isXidStart(self: Self, cp: u21) bool { +pub fn isXidStart(self: Self, cp: u21) bool { return self.core_s2[self.core_s1[cp >> 8] + (cp & 0xff)] & 16 == 16; } /// True if `cp` is a valid extended identifier continuation character. -pub inline fn isXidContinue(self: Self, cp: u21) bool { +pub fn isXidContinue(self: Self, cp: u21) bool { return self.core_s2[self.core_s1[cp >> 8] + (cp & 0xff)] & 32 == 32; } /// True if `cp` is a whitespace character. -pub inline fn isWhitespace(self: Self, cp: u21) bool { +pub fn isWhitespace(self: Self, cp: u21) bool { return self.props_s2[self.props_s1[cp >> 8] + (cp & 0xff)] & 1 == 1; } /// True if `cp` is a hexadecimal digit. -pub inline fn isHexDigit(self: Self, cp: u21) bool { +pub fn isHexDigit(self: Self, cp: u21) bool { return self.props_s2[self.props_s1[cp >> 8] + (cp & 0xff)] & 2 == 2; } /// True if `cp` is a diacritic mark. -pub inline fn isDiacritic(self: Self, cp: u21) bool { +pub fn isDiacritic(self: Self, cp: u21) bool { return self.props_s2[self.props_s1[cp >> 8] + (cp & 0xff)] & 4 == 4; } /// True if `cp` is numeric. -pub inline fn isNumeric(self: Self, cp: u21) bool { +pub fn isNumeric(self: Self, cp: u21) bool { return self.num_s2[self.num_s1[cp >> 8] + (cp & 0xff)] & 1 == 1; } /// True if `cp` is a digit. -pub inline fn isDigit(self: Self, cp: u21) bool { +pub fn isDigit(self: Self, cp: u21) bool { return self.num_s2[self.num_s1[cp >> 8] + (cp & 0xff)] & 2 == 2; } /// True if `cp` is decimal. -pub inline fn isDecimal(self: Self, cp: u21) bool { +pub fn isDecimal(self: Self, cp: u21) bool { return self.num_s2[self.num_s1[cp >> 8] + (cp & 0xff)] & 4 == 4; } -- cgit v1.2.3