Loading...
Searching...
No Matches
by::nStr Class Reference

String primitive type in byeol language. More...

#include <nStr.hpp>

Inheritance diagram for by::nStr:
by::tscalar< std::string > by::tucontainable< nStr > by::scalar by::baseObj by::node by::statable by::frameInteractable

Public Member Functions

 nStr (nchar character)
 
 nStr (const nchar *val)
 
 nStr (const std::string &val)
 
nchar operator[] (nint n) const
 
nint len () const override
 
const baseObjgetOrigin () const override
 
tstr< scalarbitwiseNot () const override
 
tstr< nStrsubstr (nint start, nint end)
 
nbool in (nidx n) const
 
nchar get (nidx n) const
 
void add (const iter &here, const iter &from, const iter &to) override
 
nbool add (const iter &at, const nStr &new1) override
 
nbool set (const iter &at, const nStr &new1) override
 
nbool del (const iter &at) override
 
nbool del (const iter &from, const iter &end) override
 
void rel () override
 
- Public Member Functions inherited from by::tscalar< std::string >
 tscalar (const std::string &val)
 
std::string & get ()
 
const std::string & get () const
 
void * cast (const type &to) override
 
- Public Member Functions inherited from by::scalar
tstr< me > add (const me &rhs) const
 
tstr< me > add (const me *it) const BY_SIDE_FUNC(add)
 
tstr< me > sub (const me &rhs) const
 
tstr< me > sub (const me *it) const BY_SIDE_FUNC(sub)
 
tstr< me > mul (const me &rhs) const
 
tstr< me > mul (const me *it) const BY_SIDE_FUNC(mul)
 
tstr< me > div (const me &rhs) const
 
tstr< me > div (const me *it) const BY_SIDE_FUNC(div)
 
tstr< me > mod (const me &rhs) const
 
tstr< me > mod (const me *it) const BY_SIDE_FUNC(mod)
 
tstr< me > bitwiseAnd (const me &rhs) const
 
tstr< me > bitwiseAnd (const me *it) const BY_SIDE_FUNC(bitwiseAnd)
 
tstr< me > bitwiseXor (const me &rhs) const
 
tstr< me > bitwiseXor (const me *it) const BY_SIDE_FUNC(bitwiseXor)
 
tstr< me > bitwiseOr (const me &rhs) const
 
tstr< me > bitwiseOr (const me *it) const BY_SIDE_FUNC(bitwiseOr)
 
tstr< me > lshift (const me &rhs) const
 
tstr< me > lshift (const me *it) const BY_SIDE_FUNC(lshift)
 
tstr< me > rshift (const me &rhs) const
 
tstr< me > rshift (const me *it) const BY_SIDE_FUNC(rshift)
 
nbool eq (const me &rhs) const
 
nbool eq (const me *it) const BY_SIDE_FUNC(eq)
 
nbool ne (const me &rhs) const
 
nbool ne (const me *it) const BY_SIDE_FUNC(ne)
 
nbool gt (const me &rhs) const
 
nbool gt (const me *it) const BY_SIDE_FUNC(gt)
 
nbool lt (const me &rhs) const
 
nbool lt (const me *it) const BY_SIDE_FUNC(lt)
 
nbool ge (const me &rhs) const
 
nbool ge (const me *it) const BY_SIDE_FUNC(ge)
 
nbool le (const me &rhs) const
 
nbool le (const me *it) const BY_SIDE_FUNC(le)
 
nbool logicalAnd (const me &rhs) const
 
nbool logicalAnd (const me *it) const BY_SIDE_FUNC(logicalAnd)
 
nbool logicalOr (const me &rhs) const
 
nbool logicalOr (const me *it) const BY_SIDE_FUNC(logicalOr)
 
tstr< me > mov (const me &rhs)
 
tstr< me > mov (const me *it) BY_SIDE_FUNC(mov)
 
- Public Member Functions inherited from by::baseObj
str eval (const args &a) override
 
scopesubs () override
 
state getState () const override
 
void setState (state new1) override
 
priorType prioritize (const args &a) const override
 
void inFrame (const bicontainable *args) const override
 
void outFrame () const override
 
const srcgetSrc () const override
 
virtual const nodegetSubPod () const
 Retrieves a sub-pod represented as a node.
 
virtual baseObjmake () const
 
const modifiergetModifier () const override
 
- Public Member Functions inherited from by::node
me & operator[] (const std::string &name)
 
const me & operator[] (const std::string &name) const BY_CONST_FUNC(operator[](name))
 
me & operator[] (const std::string *it)
 
const me & operator[] (const std::string *it) const BY_CONST_FUNC(operator[](it))
 
me & operator[] (const nchar *name)
 
const me & operator[] (const nchar *name) const BY_CONST_FUNC(operator[](name))
 
nbool in (const node &elem) const
 
nbool in (const node *elem) const
 
const scopesubs () const BY_CONST_FUNC(subs()) virtual tstr< nbicontainer > mySubs() const
 Returns a tstr to a container of immediate sub-nodes (excluding inherited or chained ones).
 
const nodepromote (const node &it) const
 
const nodepromote (const node *it) const BY_SIDE_FUNC(promote)
 
template<typename T >
T * sub (std::function< nbool(const std::string &, const T &)> l)
 
template<typename T >
const T * sub (std::function< nbool(const std::string &, const T &)> l) const BY_CONST_FUNC(sub< T >(l)) template< typename T
 
template<typename T = me>
const T * sub () const BY_CONST_FUNC(sub< T >()) template< typename T
 
template<typename T = me>
T * sub (const std::string *it) BY_SIDE_FUNC(sub)
 
template<typename T = me>
const T * sub (const std::string &name) const BY_CONST_FUNC(sub< T >(name)) template< typename T
 
template<typename T = me>
T * sub (const std::string *name, const args &a) BY_SIDE_FUNC(name
 
template<typename T = me>
const T * sub (const std::string &name, const args &a) const BY_CONST_FUNC(sub< T >(name
 
template<typename T = me>
const T a const T * sub (const std::string *name, const args &a) const BY_CONST_FUNC(sub< T >(name
 
template<typename T >
const T a const T a tnarr< T, strTactic > subAll (std::function< nbool(const std::string &, const T &)> l) const
 
template<typename T = me>
tnarr< T, strTactic > subAll () const
 
template<typename T = me>
tpriorities< T > subAll (const std::string &name) const
 
template<typename T = me>
tpriorities< T > subAll (const std::string *it) const BY_SIDE_FUNC(subAll< T >) template< typename T
 
template<typename T = me>
tpriorities< T > subAll (const std::string &name, const args &a) const
 
template<typename T = me>
tpriorities< T > subAll (const std::string *name, const args *a) const BY_SIDE_FUNC(name
 
tpriorities< T > subAll< T > tpriorities ())
 
template<typename T = me>
tpriorities< T > subAll (const std::string *name, const args &a) const BY_SIDE_FUNC(name
 
tpriorities< T > subAll< T > tpriorities ())
 
bool canEval (const args &a) const
 
priorType prioritize (const args *it) const BY_SIDE_FUNC(it
 
str eval (const args *it) BY_SIDE_FUNC(eval)
 
str eval (const std::string &name, const args &a)
 
str eval (const std::string &name, const args *a) BY_SIDE_FUNC(a
 
str eval (name, a)
 
str str ())
 
str eval (const std::string *name, const args &a) BY_SIDE_FUNC(name
 
str eval str ())
 
str eval (const std::string *name, const args *a) BY_SIDE_FUNC(name &&a
 
str eval str ())
 
str eval (const std::string &name)
 
str eval (const std::string *it) BY_SIDE_FUNC(eval)
 
str eval ()
 
template<typename T >
nbool is () const
 
nbool is (const typeProvidable &to) const
 
nbool is (const typeProvidable *it) const BY_SIDE_FUNC(is)
 
nbool is (const type &to) const
 
nbool is (const type *it) const BY_SIDE_FUNC(is)
 
template<typename T >
tstr< T > as () const
 
str as (const typeProvidable &to) const
 
str as (const typeProvidable *it) const BY_SIDE_FUNC(as)
 
str as (const type &to) const
 
str as (const type *it) const BY_SIDE_FUNC(as)
 
template<typename T >
nbool isImpli () const
 
virtual nbool isImpli (const type &to) const
 
nbool isImpli (const typeProvidable &to) const
 
nbool isImpli (const typeProvidable *it) const BY_SIDE_FUNC(isImpli)
 
template<typename T >
tstr< T > asImpli () const
 
virtual str asImpli (const type &to) const
 
str asImpli (const typeProvidable &to) const
 
str asImpli (const typeProvidable *it) const BY_SIDE_FUNC(asImpli)
 
virtual nbool isComplete () const
 
virtual str infer () const
 
virtual void accept (const visitInfo &i, visitor &v)
 
void inFrame (const bicontainable *args) const override
 
void outFrame () const override
 
virtual void inFrame (const bicontainable *args) const=0
 
void inFrame () const
 
virtual void outFrame () const=0
 
- Public Member Functions inherited from by::frameInteractable
void inFrame () const
 
- Public Member Functions inherited from by::tucontainable< nStr >
nbool in (const nStr &it) const
 
nbool in (const nStr *it) const BY_SIDE_FUNC(in)
 
nbool in (std::function< nbool(const nStr &)> l) const
 
nbool in (std::function< nbool(const T1 &)> l) const
 
nbool isEmpty () const
 
std::conditional_t< _IS_POINTER, T1 *, tmay< T1 > > get (std::function< nbool(const T1 &)> l)
 
std::conditional_t< _IS_POINTER, nStr *, tmay< nStr * > > get (std::function< nbool(const nStr &)> l)
 
void each (std::function< nbool(T1 &)> l)
 
void each (std::function< nbool(nStr &)> l)
 
virtual iter end () const
 
virtual iter rend () const
 
virtual iter last () const
 
iter iterate (ncnt step) const
 
iter iterate (const nStr &it) const
 
iter riterate (ncnt step) const
 
iter riterate (const nStr &it) const
 
virtual nbool set (const iter &at, const nStr *new1) BY_SIDE_FUNC(new1
 
virtual nbool set (at, *new1)
 
nbool add (const iter &at, const nStr *new1) BY_SIDE_FUNC(new1
 
nbool add (at, *new1)
 
nbool add (std::initializer_list< const nStr * > elems)
 
nbool add (const nStr &new1)
 
nbool add (const nStr *it) BY_SIDE_FUNC(add)
 
void add (const iter &from, const iter &to)
 
void add (const iter &here, me &rhs)
 
void add (const me &rhs)
 
void add (const me *rhs) BY_SIDE_FUNC(rhs
 
ncnt add (const typename tucontainable< E >::iter &from, const typename tucontainable< E >::iter &to)
 
ncnt add (const tucontainable< E > &rhs)
 
ncnt add (const tbicontainable< K, V > &rhs)
 
void add void ())
 
nbool del ()
 
nbool del (const nStr &it)
 
nbool del (const nStr *it) BY_SIDE_FUNC(del)
 
nbool del (const me &rhs)
 
nbool del (const me *rhs) BY_SIDE_FUNC(rhs
 

Protected Member Functions

iteration_onMakeIteration (ncnt step, nbool isReversed) const override
 
tstr< scalar_add (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_sub (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_mul (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_div (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_mod (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_bitwiseAnd (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_bitwiseXor (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_bitwiseOr (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_lshift (const scalar &rhs, nbool reversed) const override
 
tstr< scalar_rshift (const scalar &rhs, nbool reversed) const override
 
nbool _eq (const scalar &rhs) const override
 
nbool _ne (const scalar &rhs) const override
 
nbool _gt (const scalar &rhs) const override
 
nbool _lt (const scalar &rhs) const override
 
nbool _ge (const scalar &rhs) const override
 
nbool _le (const scalar &rhs) const override
 
nbool _logicalAnd (const scalar &rhs) const override
 
nbool _logicalOr (const scalar &rhs) const override
 
scalar_mov (const scalar &rhs) override
 
- Protected Member Functions inherited from by::tscalar< std::string >
nbool _onSame (const typeProvidable &rhs) const override
 
- Protected Member Functions inherited from by::baseObj
 baseObj ()=default
 Default constructor for baseObj.
 
 baseObj (const baseObj *org, nbool isScripted)
 Constructs a baseObj from an existing origin object.
 
str _onEvalSub (node &sub, const args &a) override
 Protected virtual method for evaluating a sub-node.
 
void _setSrc (const src &s) override
 
virtual void _inFrame (frame &fr, const bicontainable *args) const
 Enters this object's frame into the current execution stack.
 
virtual void _setType (const mgdType &new1)
 Sets the script type for this base object.
 
virtual void _setModifier (const modifier &mod)
 
virtual str _onBeforeCtor ()
 Hook method called before the object's constructor is fully executed.
 
- Protected Member Functions inherited from by::node
void _setSrc (const src *it) BY_SIDE_FUNC(_setSrc)
 

Additional Inherited Members

- Public Attributes inherited from by::node
T sub name
 
T sub nullptr
 
tpriorities< T > subAll< T > name
 
priorType prioritize it
 
priorType prioritize NO_MATCH
 
str eval name
 
- Public Attributes inherited from by::tucontainable< nStr >
std::conditional_t< _IS_POINTER, const T1 *, tmay< T1 > > get(std::function< nbool(const T1 &)> l) const std tnarr< nStr, strTactic getAll )(std::function< nbool(const nStr &)> l) const
 
void each(std::function< nbool(const T1 &)> l) const BY_CONST_FUNC(each(l)) void each(std ite rbegin )() const
 
virtual nbool false
 
nbool false
 
nbool del false
 
void add rhs
 
nbool del rhs
 
- Static Public Attributes inherited from by::baseObj
static const std::string COMMON_NAME = "@common"
 
static const std::string EXPAND_NAME = "@expand"
 
- Protected Attributes inherited from by::baseObj
tstr< baseObj_org
 

Detailed Description

String primitive type in byeol language.

Implements string operations, character access, and container functionality. Provides the fundamental string data type with arithmetic and container operations.

Member Function Documentation

◆ _onMakeIteration()

iteration * by::nStr::_onMakeIteration ( ncnt step,
nbool isReversed ) const
overrideprotectedvirtual

◆ add() [1/2]

nbool by::nStr::add ( const iter & at,
const nStr & new1 )
overridevirtual

◆ add() [2/2]

void by::nStr::add ( const iter & here,
const iter & from,
const iter & to )
overridevirtual

◆ bitwiseNot()

tstr< scalar > by::nStr::bitwiseNot ( ) const
overridevirtual

Implements by::scalar.

◆ del() [1/2]

nbool by::nStr::del ( const iter & at)
overridevirtual

◆ del() [2/2]

nbool by::nStr::del ( const iter & from,
const iter & end )
overridevirtual

◆ getOrigin()

const baseObj & by::nStr::getOrigin ( ) const
overridevirtual

Reimplemented from by::baseObj.

◆ len()

nint by::nStr::len ( ) const
overridevirtual

◆ rel()

void by::nStr::rel ( )
overridevirtual

Release all held resources and prepare for termination.

Remarks
Some classes won't be able to reinitialize after rel() is called.

Reimplemented from by::node.

◆ set()

nbool by::nStr::set ( const iter & at,
const nStr & new1 )
overridevirtual

◆ substr()

tstr< nStr > by::nStr::substr ( nint start,
nint end )
Parameters
endis exclusive.

The documentation for this class was generated from the following file:
to Top