API documentation  2.0rc1
Public Member Functions | Static Public Member Functions | List of all members
client::String Class Reference

#include <types.h>

Inherits client::Object.

Public Member Functions

 String () throw ()
 
 String (const String *) throw ()
 
 String (long a) throw ()
 
 String (unsigned long a) throw ()
 
 String (int a) throw ()
 
 String (unsigned int a) throw ()
 
 String (float a) throw ()
 
 String (double a) throw ()
 
 String (const char *s) __attribute__((noinline))
 
 String (const wchar_t *s) __attribute__((noinline))
 
template<typename... Args>
 __attribute__ ((always_inline)) String *concat(Args &&... args)
 
Stringsubstr (int start) const
 
Stringsubstr (int start, int length) const
 
Stringsubstring (int start) const
 
Stringsubstring (int start, int end) const
 
Stringreplace (const String &, const String &) const
 
Stringreplace (const String &, EventListener *) const
 
Stringreplace (RegExp *, const String &) const
 
Stringreplace (RegExp *, EventListener *) const
 
int charCodeAt (int index) const
 
StringcharAt (int index) const
 
int get_length () const
 
int indexOf (const String &) const
 
int indexOf (const String &, int) const
 
int lastIndexOf (const String &) const
 
int lastIndexOf (const String &, int) const
 
TArray< String > * split (const String &) const
 
TArray< String > * split (const String &, int limit) const
 
TArray< String > * split (RegExp *) const
 
TArray< String > * split (RegExp *, int limit) const
 
bool endsWith (const String &) const
 
int localeCompare (const String &) const
 
TArray< String > * match (const String &) const
 
TArray< String > * match (RegExp *) const
 
int search (const String &) const
 
int search (RegExp *) const
 
Stringslice (int start) const
 
Stringslice (int start, int end) const
 
StringtoLowerCase () const
 
StringtoLocaleLowerCase () const
 
StringtoUpperCase () const
 
StringtoLocaleUpperCase () const
 
Stringtrim () const
 
StringpadEnd (int) const
 
StringpadEnd (int, const String &) const
 
StringpadStart (int) const
 
StringpadStart (int, const String &) const
 
 operator std::string () const
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
bool hasOwnProperty (const client::String &name)
 

Static Public Member Functions

static client::StringfromUtf8 (const char *in, size_t len=std::numeric_limits< size_t >::max())
 

Constructor & Destructor Documentation

◆ String() [1/10]

client::String::String ( )
throw (
)

◆ String() [2/10]

client::String::String ( const String )
throw (
)

◆ String() [3/10]

client::String::String ( long  a)
throw (
)

◆ String() [4/10]

client::String::String ( unsigned long  a)
throw (
)

◆ String() [5/10]

client::String::String ( int  a)
throw (
)

◆ String() [6/10]

client::String::String ( unsigned int  a)
throw (
)

◆ String() [7/10]

client::String::String ( float  a)
throw (
)

◆ String() [8/10]

client::String::String ( double  a)
throw (
)

◆ String() [9/10]

client::String::String ( const char *  s)
inline

◆ String() [10/10]

client::String::String ( const wchar_t *  s)
inline

Member Function Documentation

◆ __attribute__()

template<typename... Args>
client::String::__attribute__ ( (always_inline)  ) &&
inline

◆ charAt()

String* client::String::charAt ( int  index) const

◆ charCodeAt()

int client::String::charCodeAt ( int  index) const

◆ endsWith()

bool client::String::endsWith ( const String ) const

◆ fromUtf8()

static client::String* client::String::fromUtf8 ( const char *  in,
size_t  len = std::numeric_limits<size_t>::max() 
)
inlinestatic

◆ get_length()

int client::String::get_length ( ) const

◆ indexOf() [1/2]

int client::String::indexOf ( const String ) const

◆ indexOf() [2/2]

int client::String::indexOf ( const String ,
int   
) const

◆ lastIndexOf() [1/2]

int client::String::lastIndexOf ( const String ) const

◆ lastIndexOf() [2/2]

int client::String::lastIndexOf ( const String ,
int   
) const

◆ localeCompare()

int client::String::localeCompare ( const String ) const

◆ match() [1/2]

TArray<String>* client::String::match ( const String ) const

◆ match() [2/2]

TArray<String>* client::String::match ( RegExp ) const

◆ operator std::string()

client::String::operator std::string ( ) const
inlineexplicit

◆ padEnd() [1/2]

String* client::String::padEnd ( int  ) const

◆ padEnd() [2/2]

String* client::String::padEnd ( int  ,
const String  
) const

◆ padStart() [1/2]

String* client::String::padStart ( int  ) const

◆ padStart() [2/2]

String* client::String::padStart ( int  ,
const String  
) const

◆ replace() [1/4]

String* client::String::replace ( const String ,
const String  
) const

◆ replace() [2/4]

String* client::String::replace ( const String ,
EventListener  
) const

◆ replace() [3/4]

String* client::String::replace ( RegExp ,
const String  
) const

◆ replace() [4/4]

String* client::String::replace ( RegExp ,
EventListener  
) const

◆ search() [1/2]

int client::String::search ( const String ) const

◆ search() [2/2]

int client::String::search ( RegExp ) const

◆ slice() [1/2]

String* client::String::slice ( int  start) const

◆ slice() [2/2]

String* client::String::slice ( int  start,
int  end 
) const

◆ split() [1/4]

TArray<String>* client::String::split ( const String ) const

◆ split() [2/4]

TArray<String>* client::String::split ( const String ,
int  limit 
) const

◆ split() [3/4]

TArray<String>* client::String::split ( RegExp ) const

◆ split() [4/4]

TArray<String>* client::String::split ( RegExp ,
int  limit 
) const

◆ substr() [1/2]

String* client::String::substr ( int  start) const

◆ substr() [2/2]

String* client::String::substr ( int  start,
int  length 
) const

◆ substring() [1/2]

String* client::String::substring ( int  start) const

◆ substring() [2/2]

String* client::String::substring ( int  start,
int  end 
) const

◆ toLocaleLowerCase()

String* client::String::toLocaleLowerCase ( ) const

◆ toLocaleUpperCase()

String* client::String::toLocaleUpperCase ( ) const

◆ toLowerCase()

String* client::String::toLowerCase ( ) const

◆ toUpperCase()

String* client::String::toUpperCase ( ) const

◆ trim()

String* client::String::trim ( ) const