Struct gdnative::RegEx
[−]
[src]
pub struct RegEx { /* fields omitted */ }
core class RegEx : Reference
(reference counted)
Base class
RegEx inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl RegEx
[src]
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn clear(&mut self)
[src]
pub fn compile(&mut self, pattern: GodotString) -> GodotResult
[src]
pub fn search(
&self,
subject: GodotString,
offset: i64,
end: i64
) -> Option<RegExMatch>
[src]
&self,
subject: GodotString,
offset: i64,
end: i64
) -> Option<RegExMatch>
pub fn search_all(
&self,
subject: GodotString,
offset: i64,
end: i64
) -> VariantArray
[src]
&self,
subject: GodotString,
offset: i64,
end: i64
) -> VariantArray
pub fn sub(
&self,
subject: GodotString,
replacement: GodotString,
all: bool,
offset: i64,
end: i64
) -> GodotString
[src]
&self,
subject: GodotString,
replacement: GodotString,
all: bool,
offset: i64,
end: i64
) -> GodotString
pub fn is_valid(&self) -> bool
[src]
pub fn get_pattern(&self) -> GodotString
[src]
pub fn get_group_count(&self) -> i64
[src]
pub fn get_names(&self) -> VariantArray
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Reference>
pub fn as_object(&self) -> Object
[src]
Up-cast.
pub fn init_ref(&mut self) -> bool
[src]
pub fn reference(&mut self) -> bool
[src]
pub fn unreference(&mut self) -> bool
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for RegEx
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for RegEx
[src]
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.