regmatch_t
or a pointer to onecore :: NativeMatchArray :: []
Get a pointer to the element atindex
, can also be used as a subarray
core :: NativeMatchArray :: defaultinit
core :: NativeMatchArray :: malloc
Allocate a new array oflength
regmatch_t
core :: NativeMatchArray :: rm_eo
The offset in string of the end of the substringcore :: NativeMatchArray :: rm_so
The offset in string of the beginning of a substringcore $ NativeMatchArray :: SELF
Type of this instance, automatically specialized in every classcore :: NativeMatchArray :: []
Get a pointer to the element atindex
, can also be used as a subarray
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Pointer :: defaultinit
core :: Object :: defaultinit
core :: NativeMatchArray :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: NativeMatchArray :: malloc
Allocate a new array oflength
regmatch_t
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha valuecore :: NativeMatchArray :: rm_eo
The offset in string of the end of the substringcore :: NativeMatchArray :: rm_so
The offset in string of the beginning of a substring
# An array of `regmatch_t` or a pointer to one
private extern class NativeMatchArray `{ regmatch_t* `}
# Allocate a new array of `length` `regmatch_t`
new malloc(length: Int) `{ return malloc(length * sizeof(regmatch_t)); `}
# The offset in string of the beginning of a substring
fun rm_so: Int `{ return self->rm_so; `}
# The offset in string of the end of the substring
fun rm_eo: Int `{ return self->rm_eo; `}
# Get a pointer to the element at `index`, can also be used as a subarray
fun [](index: Int): NativeMatchArray `{ return self + index; `}
end
lib/core/re.nit:103,1--116,3