pub struct SectionFlag(/* private fields */);
Expand description
This enum specifies flags that can be used to affect various aspects of the section() function's behavior with respect to separators and empty fields.
C++ enum: QString::SectionFlag
.
Implementations§
Source§impl SectionFlag
impl SectionFlag
Sourcepub const SectionDefault: SectionFlag
pub const SectionDefault: SectionFlag
Empty fields are counted, leading and trailing separators are not included, and the separator is compared case sensitively. (C++ enum variant: SectionDefault = 0
)
Sourcepub const SectionSkipEmpty: SectionFlag
pub const SectionSkipEmpty: SectionFlag
Treat empty fields as if they don’t exist, i.e. they are not considered as far as start and end are concerned. (C++ enum variant: SectionSkipEmpty = 1
)
Sourcepub const SectionIncludeLeadingSep: SectionFlag
pub const SectionIncludeLeadingSep: SectionFlag
Include the leading separator (if any) in the result string. (C++ enum variant: SectionIncludeLeadingSep = 2
)
Sourcepub const SectionIncludeTrailingSep: SectionFlag
pub const SectionIncludeTrailingSep: SectionFlag
Include the trailing separator (if any) in the result string. (C++ enum variant: SectionIncludeTrailingSep = 4
)
Sourcepub const SectionCaseInsensitiveSeps: SectionFlag
pub const SectionCaseInsensitiveSeps: SectionFlag
Compare the separator case-insensitively. (C++ enum variant: SectionCaseInsensitiveSeps = 8
)
Trait Implementations§
Source§impl<T: Into<QFlags<SectionFlag>>> BitOr<T> for SectionFlag
impl<T: Into<QFlags<SectionFlag>>> BitOr<T> for SectionFlag
Source§impl Clone for SectionFlag
impl Clone for SectionFlag
Source§fn clone(&self) -> SectionFlag
fn clone(&self) -> SectionFlag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more