ClanSoft logo
ClanSoft logo
Entire Class Index Main Class Index Cross Index Global Index

Class CL_String

Clan String Class
Contained in: global
Derived from: none
Derived by: none
Group: Core (System)

#include <ClanLib/core.h>


public function member index:

Construction:

CL_String(const std::string& res_id, CL_ResourceManager* resources);
CL_String(const std::string& res_id, CL_ResourceManager* resources, const std::string& def_value);
CL_String();
CL_String(const std::string& _str);
CL_String(const int value);
CL_String(const float float_value);
CL_String(const char* text);
CL_String(const CL_String& clone);
CL_String(const CL_String& text1, const CL_String& text2);
CL_String(const char* text1, const char* text2);
CL_String(const char* text, int length);

Operators:

CL_String operator + (const CL_String& other_string);
CL_String operator + (const char* other_text);
CL_String operator + (const int number);
CL_String operator + (const float number);
CL_String& operator += (const CL_String& other_string);
CL_String& operator += (const char* other_text);
CL_String& operator += (const int number);
CL_String& operator += (const float number);
CL_String& operator += (double float_number);
CL_String& operator = (const CL_String& other_string);
CL_String& operator = (const char* other_text);
CL_String& operator = (const int number);
CL_String& operator = (const float float_number);
CL_String& operator = (double float_number);
bool operator == (const CL_String& other_string);
bool operator == (const char* other_string);
bool operator != (const CL_String& other_string);
bool operator != (const char* other_text);
operator const char* ();
operator std::string ();
CL_String& operator << (const CL_String& other_string);
CL_String& operator << (const char* other_string);
CL_String& operator << (const unsigned char* other_string);
CL_String& operator << (const unsigned short number);
CL_String& operator << (const short number);
CL_String& operator << (const unsigned int number);
CL_String& operator << (const int number);
CL_String& operator << (const float float_number);
CL_String& operator << (double float_number);

Attributes:

char* get_string();
int get_length();
int get_as_int();
float get_as_float();
CL_String get_word(int word_no);
CL_String mid(int start, int len=-1);
CL_String left(int len);
CL_String right(int len);
int find(int character, int start_pos=0);
int find_last(char character) const;
bool case_compare(const char* other);

Operations:

void to_lower();
void to_upper();
 

private function member index:

std::string int_to_string(const char* prefix, const int number);
std::string float_to_string(const char* prefix, const float _float_number);
std::string append_string(const char* prefix, const char* postfix);
 

Description:


Function Member Descriptions:

CL_String::CL_String - String Constructor
CL_String(const std::string& res_id, CL_ResourceManager* resources);


CL_String::CL_String - String Constructor
CL_String(const std::string& res_id, CL_ResourceManager* resources, const std::string& def_value);


CL_String::CL_String - String Constructor
CL_String();


CL_String::CL_String - String Constructor
CL_String(const std::string& _str);


CL_String::CL_String - String Constructor
CL_String(const int value);


CL_String::CL_String - String Constructor
CL_String(const float float_value);


CL_String::CL_String - String Constructor
CL_String(const char* text);


CL_String::CL_String - String Constructor
CL_String(const CL_String& clone);


CL_String::CL_String - String Constructor
CL_String(const CL_String& text1, const CL_String& text2);


CL_String::CL_String - String Constructor
CL_String(const char* text1, const char* text2);


CL_String::CL_String - String Constructor
CL_String(const char* text, int length);


CL_String::case_compare - Case Compare
bool case_compare(const char* other);


CL_String::find - Find
int find(int character, int start_pos=0);


CL_String::find_last - Find Last
int find_last(char character) const;


CL_String::get_as_float - Get As Float
float get_as_float();


CL_String::get_as_int - Get As int
int get_as_int();


CL_String::get_length - Get Length
int get_length();


CL_String::get_string - Get String
char* get_string();


CL_String::get_word - Get Word
CL_String get_word(int word_no);


CL_String::left - Left
CL_String left(int len);


CL_String::mid - Mid
CL_String mid(int start, int len=-1);


CL_String::operator != - String Operator
bool operator != (const CL_String& other_string);


CL_String::operator != - String Operator
bool operator != (const char* other_text);


CL_String::operator + - String Operator
CL_String operator + (const CL_String& other_string);


CL_String::operator + - String Operator
CL_String operator + (const char* other_text);


CL_String::operator + - String Operator
CL_String operator + (const int number);


CL_String::operator + - String Operator
CL_String operator + (const float number);


CL_String::operator += - String Operator
CL_String& operator += (const CL_String& other_string);


CL_String::operator += - String Operator
CL_String& operator += (const char* other_text);


CL_String::operator += - String Operator
CL_String& operator += (const int number);


CL_String::operator += - String Operator
CL_String& operator += (const float number);


CL_String::operator += - String Operator
CL_String& operator += (double float_number);


CL_String::operator << - String Operator
CL_String& operator << (const CL_String& other_string);


CL_String::operator << - String Operator
CL_String& operator << (const char* other_string);


CL_String::operator << - String Operator
CL_String& operator << (const unsigned char* other_string);


CL_String::operator << - String Operator
CL_String& operator << (const unsigned short number);


CL_String::operator << - String Operator
CL_String& operator << (const short number);


CL_String::operator << - String Operator
CL_String& operator << (const unsigned int number);


CL_String::operator << - String Operator
CL_String& operator << (const int number);


CL_String::operator << - String Operator
CL_String& operator << (const float float_number);


CL_String::operator << - String Operator
CL_String& operator << (double float_number);


CL_String::operator = - String Operator
CL_String& operator = (const CL_String& other_string);


CL_String::operator = - String Operator
CL_String& operator = (const char* other_text);


CL_String::operator = - String Operator
CL_String& operator = (const int number);


CL_String::operator = - String Operator
CL_String& operator = (const float float_number);


CL_String::operator = - String Operator
CL_String& operator = (double float_number);


CL_String::operator == - String Operator
bool operator == (const CL_String& other_string);


CL_String::operator == - String Operator
bool operator == (const char* other_string);


CL_String::operator const char* - String Operator
operator const char* ();


CL_String::operator std::string - String Operator
operator std::string ();


CL_String::right - Right
CL_String right(int len);


CL_String::to_lower - To Lower
void to_lower();


CL_String::to_upper - To Upper
void to_upper();



Variable Member Descriptions: