Pol  Revision:4b29d2b
Pol::Bscript::String Class Reference

#include <impstr.h>

+ Inheritance diagram for Pol::Bscript::String:

Public Member Functions

 String ()
 
 String (const char *str, int nchars)
 
 String (const char *str)
 
 String (const std::string &str)
 
 String (const std::string &str, std::string::size_type pos, std::string::size_type n)
 
 String (const char *left, const char *right)
 
 String (const String &left, const String &right)
 
 String (BObjectImp &objimp)
 
 String (const String &str)
 
virtual ~String ()
 
unsigned int alnumlen () const
 
virtual BObjectImparray_assign (BObjectImp *idx, BObjectImp *target, bool copy) POL_OVERRIDE
 
virtual BObjectImpcopy () const POL_OVERRIDE
 
void copyvalue (const String &str)
 
const char * data () const
 
void EStrReplace (String *str1, String *str2)
 
void ESubStrReplace (String *replace_with, unsigned int index, unsigned int len)
 
StringETrim (const char *CRSet, int type)
 
int find (int begin, const char *target)
 
int find (char *s, int *posn)
 
virtual std::string getFormattedStringRep () const POL_OVERRIDE
 
virtual std::string getStringRep () const POL_OVERRIDE
 
virtual bool isTrue () const POL_OVERRIDE
 
size_t length () const
 
 operator const char * () const
 
Stringoperator= (const char *s)
 
Stringoperator= (const String &str)
 
virtual BObjectRef OperMultiSubscript (std::stack< BObjectRef > &indices) POL_OVERRIDE
 
virtual BObjectRef OperMultiSubscriptAssign (std::stack< BObjectRef > &indices, BObjectImp *target) POL_OVERRIDE
 
virtual BObjectRef OperSubscript (const BObject &obj) POL_OVERRIDE
 
virtual std::string pack () const POL_OVERRIDE
 
virtual void packonto (std::ostream &os) const POL_OVERRIDE
 
virtual void printOn (std::ostream &) const POL_OVERRIDE
 
void remove (const char *s)
 
void reverse ()
 
unsigned int SafeCharAmt () const
 
virtual BObjectImpselfMinusObj (const BObjectImp &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfMinusObj (const BLong &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfMinusObj (const Double &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfMinusObj (const String &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfMinusObj (const ObjArray &objimp) const POL_OVERRIDE
 
virtual void selfMinusObj (BObjectImp &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfMinusObj (BLong &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfMinusObj (Double &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfMinusObj (String &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfMinusObj (ObjArray &objimp, BObject &obj) POL_OVERRIDE
 
virtual BObjectImpselfMinusObjImp (const BObjectImp &objimp) const POL_OVERRIDE
 
virtual void selfMinusObjImp (BObjectImp &objimp, BObject &obj) POL_OVERRIDE
 
virtual BObjectImpselfPlusObj (const BObjectImp &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfPlusObj (const BLong &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfPlusObj (const Double &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfPlusObj (const String &objimp) const POL_OVERRIDE
 
virtual BObjectImpselfPlusObj (const ObjArray &objimp) const POL_OVERRIDE
 
virtual void selfPlusObj (BObjectImp &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfPlusObj (BLong &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfPlusObj (Double &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfPlusObj (String &objimp, BObject &obj) POL_OVERRIDE
 
virtual void selfPlusObj (ObjArray &objimp, BObject &obj) POL_OVERRIDE
 
virtual BObjectImpselfPlusObjImp (const BObjectImp &objimp) const POL_OVERRIDE
 
virtual void selfPlusObjImp (BObjectImp &objimp, BObject &obj) POL_OVERRIDE
 
void set (char *newstr)
 
virtual size_t sizeEstimate () const POL_OVERRIDE
 
StringStrStr (int begin, int len)
 
void toLower (void)
 
void toUpper (void)
 
const std::string & value () const
 
- Public Member Functions inherited from Pol::Bscript::BObjectImp
 BObjectImp (BObjectType type)
 
virtual ~BObjectImp ()
 
virtual BObjectImpbitnot () const
 
virtual long contains (const BObjectImp &objimp) const
 
virtual ContIteratorcreateIterator (BObject *pIterVal)
 
virtual BObjectRef get_member (const char *membername)
 
virtual BObjectRef get_member_id (const int id)
 
unsigned int instance () const
 
virtual BObjectImpinverse () const
 
bool isa (BObjectType type) const
 
virtual char member (const BObject &obj) const
 
virtual bool operator!= (const BObjectImp &objimp) const
 
virtual BObject operator- () const
 
virtual bool operator<= (const BObjectImp &objimp) const
 
virtual bool operator> (const BObjectImp &objimp) const
 
virtual bool operator>= (const BObjectImp &objimp) const
 
virtual void operDivideEqual (BObject &obj, BObjectImp &objimp)
 
virtual BObjectRef operDotMinus (const char *name)
 
virtual BObjectRef operDotPlus (const char *name)
 
virtual BObjectRef operDotQMark (const char *name)
 
virtual void operInsertInto (BObject &obj, const BObjectImp &objimp)
 
virtual void operMinusEqual (BObject &obj, BObjectImp &objimp)
 
virtual void operModulusEqual (BObject &obj, BObjectImp &objimp)
 
virtual void operPlusEqual (BObject &obj, BObjectImp &objimp)
 
virtual void operTimesEqual (BObject &obj, BObjectImp &objimp)
 
virtual BObjectImpselfBitAndObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfBitAndObj (const BLong &objimp) const
 
virtual BObjectImpselfBitAndObj (const Double &objimp) const
 
virtual BObjectImpselfBitAndObj (const String &objimp) const
 
virtual BObjectImpselfBitAndObj (const ObjArray &objimp) const
 
virtual void selfBitAndObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfBitAndObj (BLong &objimp, BObject &obj)
 
virtual void selfBitAndObj (Double &objimp, BObject &obj)
 
virtual void selfBitAndObj (String &objimp, BObject &obj)
 
virtual void selfBitAndObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfBitAndObjImp (const BObjectImp &objimp) const
 
virtual void selfBitAndObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectImpselfBitOrObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfBitOrObj (const BLong &objimp) const
 
virtual BObjectImpselfBitOrObj (const Double &objimp) const
 
virtual BObjectImpselfBitOrObj (const String &objimp) const
 
virtual BObjectImpselfBitOrObj (const ObjArray &objimp) const
 
virtual void selfBitOrObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfBitOrObj (BLong &objimp, BObject &obj)
 
virtual void selfBitOrObj (Double &objimp, BObject &obj)
 
virtual void selfBitOrObj (String &objimp, BObject &obj)
 
virtual void selfBitOrObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfBitOrObjImp (const BObjectImp &objimp) const
 
virtual void selfBitOrObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectImpselfBitShiftLeftObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfBitShiftLeftObj (const BLong &objimp) const
 
virtual BObjectImpselfBitShiftLeftObj (const Double &objimp) const
 
virtual BObjectImpselfBitShiftLeftObj (const String &objimp) const
 
virtual BObjectImpselfBitShiftLeftObj (const ObjArray &objimp) const
 
virtual void selfBitShiftLeftObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfBitShiftLeftObj (BLong &objimp, BObject &obj)
 
virtual void selfBitShiftLeftObj (Double &objimp, BObject &obj)
 
virtual void selfBitShiftLeftObj (String &objimp, BObject &obj)
 
virtual void selfBitShiftLeftObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfBitShiftLeftObjImp (const BObjectImp &objimp) const
 
virtual void selfBitShiftLeftObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectImpselfBitShiftRightObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfBitShiftRightObj (const BLong &objimp) const
 
virtual BObjectImpselfBitShiftRightObj (const Double &objimp) const
 
virtual BObjectImpselfBitShiftRightObj (const String &objimp) const
 
virtual BObjectImpselfBitShiftRightObj (const ObjArray &objimp) const
 
virtual void selfBitShiftRightObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfBitShiftRightObj (BLong &objimp, BObject &obj)
 
virtual void selfBitShiftRightObj (Double &objimp, BObject &obj)
 
virtual void selfBitShiftRightObj (String &objimp, BObject &obj)
 
virtual void selfBitShiftRightObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfBitShiftRightObjImp (const BObjectImp &objimp) const
 
virtual void selfBitShiftRightObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectImpselfBitXorObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfBitXorObj (const BLong &objimp) const
 
virtual BObjectImpselfBitXorObj (const Double &objimp) const
 
virtual BObjectImpselfBitXorObj (const String &objimp) const
 
virtual BObjectImpselfBitXorObj (const ObjArray &objimp) const
 
virtual void selfBitXorObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfBitXorObj (BLong &objimp, BObject &obj)
 
virtual void selfBitXorObj (Double &objimp, BObject &obj)
 
virtual void selfBitXorObj (String &objimp, BObject &obj)
 
virtual void selfBitXorObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfBitXorObjImp (const BObjectImp &objimp) const
 
virtual void selfBitXorObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectImpselfDividedByObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfDividedByObj (const BLong &objimp) const
 
virtual BObjectImpselfDividedByObj (const Double &objimp) const
 
virtual BObjectImpselfDividedByObj (const String &objimp) const
 
virtual BObjectImpselfDividedByObj (const ObjArray &objimp) const
 
virtual void selfDividedByObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfDividedByObj (BLong &objimp, BObject &obj)
 
virtual void selfDividedByObj (Double &objimp, BObject &obj)
 
virtual void selfDividedByObj (String &objimp, BObject &obj)
 
virtual void selfDividedByObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfDividedByObjImp (const BObjectImp &objimp) const
 
virtual void selfDividedByObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectImpselfModulusObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfModulusObj (const BLong &objimp) const
 
virtual BObjectImpselfModulusObj (const Double &objimp) const
 
virtual BObjectImpselfModulusObj (const String &objimp) const
 
virtual BObjectImpselfModulusObj (const ObjArray &objimp) const
 
virtual void selfModulusObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfModulusObj (BLong &objimp, BObject &obj)
 
virtual void selfModulusObj (Double &objimp, BObject &obj)
 
virtual void selfModulusObj (String &objimp, BObject &obj)
 
virtual void selfModulusObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfModulusObjImp (const BObjectImp &objimp) const
 
virtual void selfModulusObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectImpselfTimesObj (const BObjectImp &objimp) const
 
virtual BObjectImpselfTimesObj (const BLong &objimp) const
 
virtual BObjectImpselfTimesObj (const Double &objimp) const
 
virtual BObjectImpselfTimesObj (const String &objimp) const
 
virtual BObjectImpselfTimesObj (const ObjArray &objimp) const
 
virtual void selfTimesObj (BObjectImp &objimp, BObject &obj)
 
virtual void selfTimesObj (BLong &objimp, BObject &obj)
 
virtual void selfTimesObj (Double &objimp, BObject &obj)
 
virtual void selfTimesObj (String &objimp, BObject &obj)
 
virtual void selfTimesObj (ObjArray &objimp, BObject &obj)
 
virtual BObjectImpselfTimesObjImp (const BObjectImp &objimp) const
 
virtual void selfTimesObjImp (BObjectImp &objimp, BObject &obj)
 
virtual BObjectRef set_member (const char *membername, BObjectImp *valueimp, bool copy)
 
virtual BObjectRef set_member_id (const int id, BObjectImp *valueimp, bool copy)
 
virtual char str_member (const std::string &membername) const
 
BObjectType type () const
 
virtual const char * typeOf () const
 
virtual u8 typeOfInt () const
 
- Public Member Functions inherited from ref_counted
unsigned int add_ref ()
 
unsigned int count () const
 
unsigned int release ()
 

Static Public Member Functions

static void packonto (std::ostream &os, const std::string &value)
 
static BObjectImpunpack (const char *pstr)
 
static BObjectImpunpack (std::istream &is)
 
static BObjectImpunpackWithLen (std::istream &is)
 
- Static Public Member Functions inherited from Pol::Bscript::BObjectImp
static const char * typestr (BObjectType typ)
 
static BObjectImpunpack (const char *pstr)
 
static BObjectImpunpack (std::istream &is)
 

Protected Member Functions

virtual BObjectImpcall_method (const char *methodname, Executor &ex) POL_OVERRIDE
 
virtual BObjectImpcall_method_id (const int id, Executor &ex, bool forcebuiltin=false) POL_OVERRIDE
 
virtual bool operator< (const BObjectImp &objimp) const POL_OVERRIDE
 
virtual bool operator== (const BObjectImp &objimp) const POL_OVERRIDE
 
- Protected Member Functions inherited from ref_counted
 ref_counted ()
 
 ~ref_counted ()=default
 

Private Types

typedef BObjectImp base
 

Private Member Functions

Stringmidstring (int begin, int len) const
 

Private Attributes

std::string value_
 

Friends

class SubString
 

Additional Inherited Members

- Public Types inherited from Pol::Bscript::BObjectImp
enum  BObjectType : u8 {
  OTUnknown = 0, OTUninit = 1, OTString = 2, OTLong = 3,
  OTDouble = 4, OTArray = 5, OTApplicPtr = 6, OTApplicObj = 7,
  OTError = 8, OTDictionary = 9, OTStruct = 10, OTPacket = 11,
  OTBinaryFile = 12, OTXMLFile = 13, OTXMLNode = 14, OTXMLAttributes = 15,
  OTPolCoreRef = 16, OTAccountRef = 17, OTConfigFileRef = 18, OTConfigElemRef = 19,
  OTDataFileRef = 20, OTDataElemRef = 21, OTGuildRef = 22, OTPartyRef = 23,
  OTBoundingBox = 24, OTDebugContext = 25, OTScriptExRef = 26, OTPackage = 27,
  OTMenuRef = 28, OTMobileRef = 29, OTOfflineMobileRef = 30, OTItemRef = 31,
  OTBoatRef = 32, OTMultiRef = 33, OTClientRef = 34, OTSQLConnection = 35,
  OTSQLResultSet = 36, OTSQLRow = 37, OTBoolean = 38, OTFuncRef = 39
}
 
- Protected Attributes inherited from ref_counted
std::atomic< unsigned int > _count
 

Detailed Description

Definition at line 23 of file impstr.h.

Member Typedef Documentation

Definition at line 25 of file impstr.h.

Constructor & Destructor Documentation

Pol::Bscript::String::String ( )
inline
Pol::Bscript::String::String ( const char *  str,
int  nchars 
)

Definition at line 35 of file str.cpp.

Pol::Bscript::String::String ( const char *  str)
inlineexplicit

Definition at line 30 of file impstr.h.

Pol::Bscript::String::String ( const std::string &  str)
inlineexplicit

Definition at line 31 of file impstr.h.

Pol::Bscript::String::String ( const std::string &  str,
std::string::size_type  pos,
std::string::size_type  n 
)
inlineexplicit

Definition at line 32 of file impstr.h.

Pol::Bscript::String::String ( const char *  left,
const char *  right 
)
inline

Definition at line 36 of file impstr.h.

Pol::Bscript::String::String ( const String left,
const String right 
)
inline

Definition at line 41 of file impstr.h.

References String().

Pol::Bscript::String::String ( BObjectImp objimp)
explicit

Definition at line 33 of file str.cpp.

Pol::Bscript::String::String ( const String str)
inline

Definition at line 46 of file impstr.h.

References pack(), packonto(), POL_OVERRIDE, unpack(), unpackWithLen(), and value().

virtual Pol::Bscript::String::~String ( )
inlinevirtual

Definition at line 72 of file impstr.h.

Member Function Documentation

unsigned int Pol::Bscript::String::alnumlen ( void  ) const

Definition at line 182 of file str.cpp.

References value_.

Referenced by isTrue().

BObjectImp * Pol::Bscript::String::call_method ( const char *  methodname,
Executor ex 
)
protectedvirtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 723 of file str.cpp.

References call_method_id(), Pol::Bscript::getKnownObjMethod(), and Pol::Bscript::ObjMethod::id.

Referenced by getFormattedStringRep().

void Pol::Bscript::String::copyvalue ( const String str)
inline

Definition at line 83 of file impstr.h.

References value_.

const char* Pol::Bscript::String::data ( ) const
inline

Definition at line 66 of file impstr.h.

References value_.

Referenced by Pol::Core::getObjtypeParam(), Pol::Module::UOExecutorModule::getStaticOrDynamicMenuParam(), Pol::Module::UOExecutorModule::mf_AddMenuItem(), Pol::Module::UOExecutorModule::mf_AssignRectToWeatherRegion(), Pol::Module::BasicExecutorModule::mf_CAsc(), Pol::Module::BasicExecutorModule::mf_CDbl(), Pol::Module::BasicExecutorModule::mf_CInt(), Pol::Module::UOExecutorModule::mf_CreateAccount(), Pol::Module::UOExecutorModule::mf_CreateMenu(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::UOExecutorModule::mf_EquipFromTemplate(), Pol::Module::UOExecutorModule::mf_FindAccount(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::PolSystemExecutorModule::mf_GetCmdLevelName(), Pol::Module::PolSystemExecutorModule::mf_GetCmdLevelNumber(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigInt(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigIntArray(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigReal(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigStringArray(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigStringDictionary(), Pol::Module::UOExecutorModule::mf_GetHarvestDifficulty(), Pol::Module::UOExecutorModule::mf_GetObjtypeByName(), Pol::Module::UOExecutorModule::mf_GetRegionString(), Pol::Module::UOExecutorModule::mf_GrantPrivilege(), Pol::Module::UOExecutorModule::mf_HarvestResource(), Pol::Module::BasicExecutorModule::mf_Hex(), Pol::Module::OSExecutorModule::mf_HTTPRequest(), Pol::Module::ConfigFileExecutorModule::mf_LoadTusScpFile(), Pol::Module::OSExecutorModule::mf_Log(), Pol::Module::OSExecutorModule::mf_OpenURL(), Pol::Module::UOExecutorModule::mf_PrintTextAbove(), Pol::Module::UOExecutorModule::mf_PrivateTextAbove(), Pol::Module::UOExecutorModule::mf_PromptInput(), Pol::Module::HttpExecutorModule::mf_QueryParam(), Pol::Module::UtilExecutorModule::mf_RandomDiceRoll(), Pol::Module::UOExecutorModule::mf_RevokePrivilege(), Pol::Module::UOExecutorModule::mf_SendCharProfile(), Pol::Module::UOExecutorModule::mf_SendPacket(), Pol::Module::UOExecutorModule::mf_SendSysMessage(), Pol::Module::UOExecutorModule::mf_SendTextEntryGump(), Pol::Module::UtilExecutorModule::mf_StrFormatTime(), Pol::Module::OSExecutorModule::mf_unload_scripts(), Pol::Module::BasicExecutorModule::mf_Unpack(), Pol::Module::BasicExecutorModule::mf_UnpackJSON(), Pol::Bscript::Executor::paramAsString(), Pol::Mobile::Character::script_method_id(), Pol::Bscript::BLong::selfPlusObj(), and Pol::Bscript::Double::selfPlusObj().

void Pol::Bscript::String::EStrReplace ( String str1,
String str2 
)

Definition at line 84 of file str.cpp.

References length(), and value_.

Referenced by copy().

void Pol::Bscript::String::ESubStrReplace ( String replace_with,
unsigned int  index,
unsigned int  len 
)

Definition at line 94 of file str.cpp.

References value_.

Referenced by copy().

String * Pol::Bscript::String::ETrim ( const char *  CRSet,
int  type 
)

Definition at line 42 of file str.cpp.

References String(), and value_.

Referenced by copy().

int Pol::Bscript::String::find ( int  begin,
const char *  target 
)
int Pol::Bscript::String::find ( char *  s,
int *  posn 
)
virtual std::string Pol::Bscript::String::getFormattedStringRep ( ) const
inlinevirtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 130 of file impstr.h.

References call_method(), call_method_id(), operator<(), operator==(), POL_OVERRIDE, printOn(), and value_.

virtual bool Pol::Bscript::String::isTrue ( void  ) const
inlinevirtual
String * Pol::Bscript::String::midstring ( int  begin,
int  len 
) const
private

Definition at line 363 of file str.cpp.

References String(), and value_.

Pol::Bscript::String::operator const char * ( ) const
inline

Definition at line 84 of file impstr.h.

References value_.

bool Pol::Bscript::String::operator< ( const BObjectImp objimp) const
protectedvirtual

Should be overridden. By default objects are lesser or greater based on their type ID. Uninit and Error are always lesser than any other. Same type object should have a custom comparison.

Warning
: do not forget to call base class when overriding

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 355 of file str.cpp.

References Pol::Bscript::BObjectImp::isa(), Pol::Bscript::BObjectImp::operator<(), Pol::Bscript::BObjectImp::OTString, and value_.

Referenced by getFormattedStringRep().

String& Pol::Bscript::String::operator= ( const char *  s)
inline

Definition at line 73 of file impstr.h.

References value_.

String& Pol::Bscript::String::operator= ( const String str)
inline

Definition at line 78 of file impstr.h.

References value_.

bool Pol::Bscript::String::operator== ( const BObjectImp objimp) const
protectedvirtual

Can be overridden. By default objects are considered equal only when having the same address in memory

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 345 of file str.cpp.

References Pol::Bscript::BObjectImp::isa(), isTrue(), Pol::Bscript::BObjectImp::operator==(), Pol::Bscript::BObjectImp::OTBoolean, Pol::Bscript::BObjectImp::OTString, and value_.

Referenced by getFormattedStringRep().

std::string Pol::Bscript::String::pack ( ) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 99 of file str.cpp.

References value_.

Referenced by String().

void Pol::Bscript::String::packonto ( std::ostream &  os) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 104 of file str.cpp.

References value_.

Referenced by Pol::Bscript::BStruct::packonto(), and String().

void Pol::Bscript::String::packonto ( std::ostream &  os,
const std::string &  value 
)
static

Definition at line 108 of file str.cpp.

References value().

void Pol::Bscript::String::printOn ( std::ostream &  os) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 63 of file objstrm.cpp.

Referenced by getFormattedStringRep().

void Pol::Bscript::String::remove ( const char *  s)

Definition at line 277 of file str.cpp.

References value_.

Referenced by selfMinusObj().

void Pol::Bscript::String::reverse ( void  )

Definition at line 215 of file str.cpp.

References value_.

Referenced by isTrue().

unsigned int Pol::Bscript::String::SafeCharAmt ( ) const

Definition at line 192 of file str.cpp.

References length(), and value_.

Referenced by isTrue(), and Pol::Module::UOExecutorModule::mf_CreateAccount().

BObjectImp * Pol::Bscript::String::selfMinusObj ( const BObjectImp objimp) const
virtual
BObjectImp * Pol::Bscript::String::selfMinusObj ( const BLong objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 296 of file str.cpp.

References copy(), Pol::Bscript::BLong::getStringRep(), and remove().

BObjectImp * Pol::Bscript::String::selfMinusObj ( const Double objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 302 of file str.cpp.

References copy(), Pol::Bscript::Double::getStringRep(), and remove().

BObjectImp * Pol::Bscript::String::selfMinusObj ( const String objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 308 of file str.cpp.

References copy(), remove(), and value_.

BObjectImp * Pol::Bscript::String::selfMinusObj ( const ObjArray objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 314 of file str.cpp.

References copy(), Pol::Bscript::ObjArray::getStringRep(), and remove().

void Pol::Bscript::String::selfMinusObj ( BObjectImp objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 324 of file str.cpp.

References Pol::Bscript::BObjectImp::getStringRep().

void Pol::Bscript::String::selfMinusObj ( BLong objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 328 of file str.cpp.

References Pol::Bscript::BLong::getStringRep().

void Pol::Bscript::String::selfMinusObj ( Double objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 332 of file str.cpp.

References Pol::Bscript::Double::getStringRep().

void Pol::Bscript::String::selfMinusObj ( String objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 336 of file str.cpp.

References value_.

void Pol::Bscript::String::selfMinusObj ( ObjArray objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 340 of file str.cpp.

References Pol::Bscript::ObjArray::getStringRep().

BObjectImp * Pol::Bscript::String::selfMinusObjImp ( const BObjectImp objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 286 of file str.cpp.

References Pol::Bscript::BObjectImp::selfMinusObj().

Referenced by isTrue().

void Pol::Bscript::String::selfMinusObjImp ( BObjectImp objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 320 of file str.cpp.

References Pol::Bscript::BObjectImp::selfMinusObj().

BObjectImp * Pol::Bscript::String::selfPlusObj ( const BObjectImp objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 231 of file str.cpp.

References Pol::Bscript::BObjectImp::getStringRep(), String(), and value_.

Referenced by isTrue().

BObjectImp * Pol::Bscript::String::selfPlusObj ( const BLong objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 235 of file str.cpp.

References Pol::Bscript::BLong::getStringRep(), String(), and value_.

BObjectImp * Pol::Bscript::String::selfPlusObj ( const Double objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 239 of file str.cpp.

References Pol::Bscript::Double::getStringRep(), String(), and value_.

BObjectImp * Pol::Bscript::String::selfPlusObj ( const String objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 243 of file str.cpp.

References getStringRep(), String(), and value_.

BObjectImp * Pol::Bscript::String::selfPlusObj ( const ObjArray objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 247 of file str.cpp.

References Pol::Bscript::ObjArray::getStringRep(), String(), and value_.

void Pol::Bscript::String::selfPlusObj ( BObjectImp objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 255 of file str.cpp.

References Pol::Bscript::BObjectImp::getStringRep(), and value_.

void Pol::Bscript::String::selfPlusObj ( BLong objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 259 of file str.cpp.

References Pol::Bscript::BLong::getStringRep(), and value_.

void Pol::Bscript::String::selfPlusObj ( Double objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 263 of file str.cpp.

References Pol::Bscript::Double::getStringRep(), and value_.

void Pol::Bscript::String::selfPlusObj ( String objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 267 of file str.cpp.

References getStringRep(), and value_.

void Pol::Bscript::String::selfPlusObj ( ObjArray objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 271 of file str.cpp.

References Pol::Bscript::ObjArray::getStringRep(), and value_.

BObjectImp * Pol::Bscript::String::selfPlusObjImp ( const BObjectImp objimp) const
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 227 of file str.cpp.

References Pol::Bscript::BObjectImp::selfPlusObj().

Referenced by isTrue().

void Pol::Bscript::String::selfPlusObjImp ( BObjectImp objimp,
BObject obj 
)
virtual

Reimplemented from Pol::Bscript::BObjectImp.

Definition at line 251 of file str.cpp.

References Pol::Bscript::BObjectImp::selfPlusObj().

void Pol::Bscript::String::set ( char *  newstr)

Definition at line 220 of file str.cpp.

References value_.

size_t Pol::Bscript::String::sizeEstimate ( ) const
virtual

Implements Pol::Bscript::BObjectImp.

Definition at line 160 of file str.cpp.

References String(), and value_.

Referenced by copy().

String * Pol::Bscript::String::StrStr ( int  begin,
int  len 
)

Definition at line 37 of file str.cpp.

References String(), and value_.

Referenced by copy(), and Pol::Module::BasicExecutorModule::mf_substr().

void Pol::Bscript::String::toLower ( void  )

Definition at line 376 of file str.cpp.

References value_.

Referenced by call_method_id(), length(), and Pol::Module::BasicExecutorModule::lower().

void Pol::Bscript::String::toUpper ( void  )

Definition at line 368 of file str.cpp.

References value_.

Referenced by call_method_id(), length(), and Pol::Module::BasicExecutorModule::upper().

BObjectImp * Pol::Bscript::String::unpack ( const char *  pstr)
static

Definition at line 113 of file str.cpp.

References String().

Referenced by String(), and Pol::Bscript::BObjectImp::unpack().

BObjectImp * Pol::Bscript::String::unpack ( std::istream &  is)
static

Definition at line 118 of file str.cpp.

References String().

BObjectImp * Pol::Bscript::String::unpackWithLen ( std::istream &  is)
static

Definition at line 126 of file str.cpp.

References String().

Referenced by String(), and Pol::Bscript::BObjectImp::unpack().

const std::string& Pol::Bscript::String::value ( ) const
inline

Definition at line 67 of file impstr.h.

References value_.

Referenced by Pol::Bscript::BStruct::array_assign(), Pol::Bscript::BStruct::BStruct(), Pol::Core::DebugContextObjImp::call_method(), Pol::Core::ScriptExObjImp::call_method_id(), Pol::Core::BPacket::call_method_id(), Pol::Core::BXMLfile::call_method_id(), Pol::Bscript::BStruct::call_method_id(), Pol::Core::BBinaryfile::call_method_id(), Pol::Module::DataFileRefObjImp::call_method_id(), Pol::Core::BXmlNode::call_method_id(), Pol::Core::CallPropertyListMethod_id(), Pol::Core::getAttributeParam(), Pol::Module::NPCExecutorModule::getproperty(), Pol::Core::getVitalParam(), Pol::Bscript::Executor::ins_casejmp_findstring(), Pol::Module::NPCExecutorModule::IsLegalMove(), Pol::Module::NPCExecutorModule::makeboundingbox(), Pol::Module::PolSystemExecutorModule::mf_AddRealm(), Pol::Module::ConfigFileExecutorModule::mf_AppendConfigFileElem(), Pol::Module::FileAccessExecutorModule::mf_AppendToFile(), Pol::Module::UOExecutorModule::mf_ApplyConstraint(), Pol::Module::UOExecutorModule::mf_AssignRectToWeatherRegion(), Pol::Module::UnicodeExecutorModule::mf_BroadcastUC(), Pol::Module::UOExecutorModule::mf_CanWalk(), Pol::Module::UOExecutorModule::mf_CheckLosBetween(), Pol::Module::ConfigFileExecutorModule::mf_ConfigFile(), Pol::Module::UOExecutorModule::mf_CreateAccount(), Pol::Module::DataFileExecutorModule::mf_CreateDataFile(), Pol::Module::FileAccessExecutorModule::mf_CreateDirectory(), Pol::Module::UOExecutorModule::mf_CreateItemAtLocation(), Pol::Module::UOExecutorModule::mf_CreateItemCopyAtLocation(), Pol::Module::UOExecutorModule::mf_CreateMultiAtLocation(), Pol::Module::UOExecutorModule::mf_CreateNpcFromTemplate(), Pol::Module::StorageExecutorModule::mf_CreateRootItemInStorageArea(), Pol::Module::StorageExecutorModule::mf_CreateStorageArea(), Pol::Module::PolSystemExecutorModule::mf_DeleteRealm(), Pol::Module::StorageExecutorModule::mf_DestroyRootItemInStorageArea(), Pol::Module::UOExecutorModule::mf_EraseGlobalProperty(), Pol::Module::UOExecutorModule::mf_EraseObjProperty(), Pol::Module::FileAccessExecutorModule::mf_FileExists(), Pol::Module::UOExecutorModule::mf_FindPath(), Pol::Module::StorageExecutorModule::mf_FindRootItemInStorageArea(), Pol::Module::StorageExecutorModule::mf_FindStorageArea(), Pol::Module::PolSystemExecutorModule::mf_FormatItemDescription(), Pol::Module::UOExecutorModule::mf_GetCommandHelp(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigInt(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigReal(), Pol::Module::ConfigFileExecutorModule::mf_GetConfigString(), Pol::Module::UOExecutorModule::mf_GetGlobalProperty(), Pol::Module::UOExecutorModule::mf_GetHarvestDifficulty(), Pol::Module::UOExecutorModule::mf_GetMapInfo(), Pol::Module::UOExecutorModule::mf_GetObjProperty(), Pol::Module::PolSystemExecutorModule::mf_GetPackageByName(), Pol::Module::UOExecutorModule::mf_GetRegionLightLevelAtLocation(), Pol::Module::UOExecutorModule::mf_GetRegionNameAtLocation(), Pol::Module::UOExecutorModule::mf_GetRegionString(), Pol::Module::UOExecutorModule::mf_GetStandingHeight(), Pol::Module::UOExecutorModule::mf_GetStandingLayers(), Pol::Module::UOExecutorModule::mf_GetWorldHeight(), Pol::Module::UOExecutorModule::mf_HarvestResource(), Pol::Module::FileAccessExecutorModule::mf_ListDirectory(), Pol::Module::UOExecutorModule::mf_ListGhostsNearLocation(), Pol::Module::UOExecutorModule::mf_ListItemsAtLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocation(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListItemsNearLocationWithFlag(), Pol::Module::UOExecutorModule::mf_ListMobilesInBox(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocation(), Pol::Module::UOExecutorModule::mf_ListMobilesNearLocationEx(), Pol::Module::UOExecutorModule::mf_ListMultisInBox(), Pol::Module::UOExecutorModule::mf_ListObjectsInBox(), Pol::Module::UOExecutorModule::mf_ListOfflineMobilesInRealm(), Pol::Module::UOExecutorModule::mf_ListStaticsAtLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsInBox(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocation(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationOfType(), Pol::Module::UOExecutorModule::mf_ListStaticsNearLocationWithFlag(), Pol::Module::ConfigFileExecutorModule::mf_LoadTusScpFile(), Pol::Module::FileAccessExecutorModule::mf_LogToFile(), Pol::Module::PolSystemExecutorModule::mf_MD5Encrypt(), Pol::Module::UOExecutorModule::mf_MoveObjectToLocation(), Pol::Module::FileAccessExecutorModule::mf_OpenBinaryFile(), Pol::Module::OSExecutorModule::mf_OpenConnection(), Pol::Module::DataFileExecutorModule::mf_OpenDataFile(), Pol::Module::FileAccessExecutorModule::mf_OpenXMLFile(), Pol::Module::UOExecutorModule::mf_PlayMovingEffectXyz(), Pol::Module::UOExecutorModule::mf_PlayMovingEffectXyz_Ex(), Pol::Module::UOExecutorModule::mf_PlaySoundEffectXYZ(), Pol::Module::UOExecutorModule::mf_PlayStationaryEffect(), Pol::Module::UOExecutorModule::mf_PlayStationaryEffect_Ex(), Pol::Module::UnicodeExecutorModule::mf_PrintTextAboveUC(), Pol::Module::UnicodeExecutorModule::mf_PrivateTextAboveUC(), Pol::Module::FileAccessExecutorModule::mf_ReadFile(), Pol::Module::PolSystemExecutorModule::mf_Realms(), Pol::Module::VitalExecutorModule::mf_RecalcVitals(), Pol::Module::UnicodeExecutorModule::mf_RequestInputUC(), Pol::Module::UOExecutorModule::mf_SendStringAsTipWindow(), Pol::Module::UnicodeExecutorModule::mf_SendSysMessageUC(), Pol::Module::UOExecutorModule::mf_SetGlobalProperty(), Pol::Module::UOExecutorModule::mf_SetName(), Pol::Module::UOExecutorModule::mf_SetObjProperty(), Pol::Module::UOExecutorModule::mf_SetRegionLightLevel(), Pol::Module::UOExecutorModule::mf_SetRegionWeatherLevel(), Pol::Module::ConfigFileExecutorModule::mf_UnloadConfigFile(), Pol::Module::DataFileExecutorModule::mf_UnloadDataFile(), Pol::Module::FileAccessExecutorModule::mf_WriteFile(), Pol::Module::HttpExecutorModule::mf_WriteHtml(), Pol::Module::HttpExecutorModule::mf_WriteHtmlRaw(), Pol::Bscript::BStruct::OperSubscript(), Pol::Core::BXMLfile::OperSubscript(), Pol::Core::BXmlNode::OperSubscript(), Pol::Core::BXmlAttribute::OperSubscript(), Pol::Core::StorageAreasImp::OperSubscript(), packonto(), Pol::Module::OSExecutorModule::run_script(), Pol::Module::NPCExecutorModule::SayUC(), Pol::Core::UObject::script_method_id(), Pol::Multi::UBoat::script_method_id(), Pol::Items::Item::script_method_id(), Pol::Module::ECharacterRefObjImp::set_member_id(), Pol::Module::EItemRefObjImp::set_member_id(), Pol::Module::EUBoatRefObjImp::set_member_id(), Pol::Module::EMultiRefObjImp::set_member_id(), Pol::Module::NPCExecutorModule::setproperty(), Pol::Module::OSExecutorModule::start_script(), Pol::Module::OSExecutorModule::start_skill_script(), and String().

Friends And Related Function Documentation

friend class SubString
friend

Definition at line 144 of file impstr.h.

Member Data Documentation


The documentation for this class was generated from the following files: