#[non_exhaustive]#[repr(u32)]pub enum pm_regular_expression_flags {
PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE = 4,
PM_REGULAR_EXPRESSION_FLAGS_EXTENDED = 8,
PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE = 16,
PM_REGULAR_EXPRESSION_FLAGS_ONCE = 32,
PM_REGULAR_EXPRESSION_FLAGS_EUC_JP = 64,
PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT = 128,
PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J = 256,
PM_REGULAR_EXPRESSION_FLAGS_UTF_8 = 512,
PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING = 1_024,
PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING = 2_048,
PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING = 4_096,
}
Expand description
Flags for regular expression and match last line nodes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE = 4
i - ignores the case of characters when matching
PM_REGULAR_EXPRESSION_FLAGS_EXTENDED = 8
x - ignores whitespace and allows comments in regular expressions
PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE = 16
m - allows $ to match the end of lines within strings
PM_REGULAR_EXPRESSION_FLAGS_ONCE = 32
o - only interpolates values into the regular expression once
PM_REGULAR_EXPRESSION_FLAGS_EUC_JP = 64
e - forces the EUC-JP encoding
PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT = 128
n - forces the ASCII-8BIT encoding
PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J = 256
s - forces the Windows-31J encoding
PM_REGULAR_EXPRESSION_FLAGS_UTF_8 = 512
u - forces the UTF-8 encoding
PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING = 1_024
internal bytes forced the encoding to UTF-8
PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING = 2_048
internal bytes forced the encoding to binary
PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING = 4_096
internal bytes forced the encoding to US-ASCII
Trait Implementations§
Source§impl Clone for pm_regular_expression_flags
impl Clone for pm_regular_expression_flags
Source§fn clone(&self) -> pm_regular_expression_flags
fn clone(&self) -> pm_regular_expression_flags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for pm_regular_expression_flags
impl Debug for pm_regular_expression_flags
Source§impl Hash for pm_regular_expression_flags
impl Hash for pm_regular_expression_flags
impl Copy for pm_regular_expression_flags
impl Eq for pm_regular_expression_flags
impl StructuralPartialEq for pm_regular_expression_flags
Auto Trait Implementations§
impl Freeze for pm_regular_expression_flags
impl RefUnwindSafe for pm_regular_expression_flags
impl Send for pm_regular_expression_flags
impl Sync for pm_regular_expression_flags
impl Unpin for pm_regular_expression_flags
impl UnwindSafe for pm_regular_expression_flags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more