public

Inheritance Graph

graph BT
	StringData
	click StringData "classEScript_1_1StringData"

Description

[ StringData ]

Classes

   
struct EScript::StringData::Data
internals

Public Functions

   
   
  StringData()
   
  StringData(const std::string & s)
   
  StringData(const char * c, size_t size)
   
  StringData(const StringData & other)
   
  ~StringData()
   
size_t codePointToBytePos(const size_t codePointNr) const
   
bool empty() const
   
uint32_t getCodePoint(const size_t codePointIdx) const
   
size_t getDataSize() const
   
size_t getNumCodepoints() const
   
std::string getSubStr(const size_t codePointStart, const size_t numCodePoints) const
   
bool beginsWith(const std::string & subj, const size_t codePointStart) const
   
size_t find(const std::string & subj, const size_t codePointStart) const
   
size_t rFind(const std::string & subj, const size_t codePointStart) const
   
bool operator==(const StringData & other) const
   
StringData & operator=(const StringData & other)
   
StringData & operator=(const std::string & s)
   
void set(const StringData & other)
   
void set(const std::string & s)
   
const std::string & str() const

Documentation

function
EScript::StringData::StringData

public inline
   
   
StringData( )

Defined in EScript/EScript/Utils/StringData.h:58


function
EScript::StringData::StringData

public inline explicit
     
     
StringData( const std::string & s )

Defined in EScript/EScript/Utils/StringData.h:59


function
EScript::StringData::StringData

public inline explicit
     
     
StringData( const char * c,
  size_t size
)    

Defined in EScript/EScript/Utils/StringData.h:60


function
EScript::StringData::StringData

public inline
     
     
StringData( const StringData & other )

Defined in EScript/EScript/Utils/StringData.h:61


function
EScript::StringData::~StringData

public inline
   
   
~StringData( )

Defined in EScript/EScript/Utils/StringData.h:63


function
EScript::StringData::codePointToBytePos

public const
     
     
size_t codePointToBytePos( const size_t codePointNr ) const

Returns the byte index of the given codePointIdx in the utf8 encoded string. If the codePoint is invalid, std::string::npos is returned.

Defined in EScript/EScript/Utils/StringData.h:69


function
EScript::StringData::empty

public const inline
   
   
bool empty( ) const

Defined in EScript/EScript/Utils/StringData.h:70


function
EScript::StringData::getCodePoint

public const
     
     
uint32_t getCodePoint( const size_t codePointIdx ) const

Defined in EScript/EScript/Utils/StringData.h:72


function
EScript::StringData::getDataSize

public const inline
   
   
size_t getDataSize( ) const

Defined in EScript/EScript/Utils/StringData.h:73


function
EScript::StringData::getNumCodepoints

public const
   
   
size_t getNumCodepoints( ) const

Defined in EScript/EScript/Utils/StringData.h:74


function
EScript::StringData::getSubStr

public const
     
     
std::string getSubStr( const size_t codePointStart,
  const size_t numCodePoints
) const    

Defined in EScript/EScript/Utils/StringData.h:75


function
EScript::StringData::beginsWith

public const
     
     
bool beginsWith( const std::string & subj,
  const size_t codePointStart
) const    

Defined in EScript/EScript/Utils/StringData.h:77


function
EScript::StringData::find

public const
     
     
size_t find( const std::string & subj,
  const size_t codePointStart
) const    

Defined in EScript/EScript/Utils/StringData.h:78


function
EScript::StringData::rFind

public const
     
     
size_t rFind( const std::string & subj,
  const size_t codePointStart
) const    

Defined in EScript/EScript/Utils/StringData.h:79


function
EScript::StringData::operator==

public const inline
     
     
bool operator==( const StringData & other ) const

Defined in EScript/EScript/Utils/StringData.h:81


function
EScript::StringData::operator=

public inline
     
     
StringData & operator=( const StringData & other )

Defined in EScript/EScript/Utils/StringData.h:82


function
EScript::StringData::operator=

public inline
     
     
StringData & operator=( const std::string & s )

Defined in EScript/EScript/Utils/StringData.h:86


function
EScript::StringData::set

public inline
     
     
void set( const StringData & other )

Defined in EScript/EScript/Utils/StringData.h:90


function
EScript::StringData::set

public inline
     
     
void set( const std::string & s )

Defined in EScript/EScript/Utils/StringData.h:91


function
EScript::StringData::str

public const inline
   
   
const std::string & str( ) const

Defined in EScript/EScript/Utils/StringData.h:92