#include <string.hpp>
◆ ~String()
◆ String() [1/6]
◆ String() [2/6]
String::String |
( |
const char * | str | ) |
|
◆ String() [3/6]
String::String |
( |
char * | str | ) |
|
◆ String() [4/6]
String::String |
( |
const String & | str | ) |
|
◆ String() [5/6]
String::String |
( |
long int | nullstr | ) |
|
◆ String() [6/6]
String::String |
( |
int | nullstr | ) |
|
◆ addChar()
int String::addChar |
( |
char | c | ) |
|
Adds char c to the end of the string
similar to std::string::push_back
◆ addCharAtIndex()
int String::addCharAtIndex |
( |
char | c, |
|
|
size_t | index ) |
adds a character at index
◆ clear()
◆ compareString()
int String::compareString |
( |
const String & | s | ) |
const |
Struns strcmp() on this and s
◆ copy()
int String::copy |
( |
String & | s | ) |
const |
Creates a deep copy of object and outputs to s
s will have its own string to worry about
◆ createWithFormat()
String * String::createWithFormat |
( |
const char * | format, |
|
|
| ... ) |
|
static |
◆ cString()
const char * String::cString |
( |
| ) |
const |
◆ cStringCopy()
char * String::cStringCopy |
( |
| ) |
const |
◆ length()
size_t String::length |
( |
| ) |
const |
◆ operator const char *()
String::operator const char * |
( |
| ) |
const |
◆ operator!=()
bool String::operator!= |
( |
const String & | s | ) |
|
◆ operator<()
bool String::operator< |
( |
const String & | s | ) |
|
◆ operator=()
◆ operator==()
bool String::operator== |
( |
const String & | s | ) |
|
◆ operator>()
bool String::operator> |
( |
const String & | s | ) |
|
◆ operator[]()
const char String::operator[] |
( |
size_t | index | ) |
|
◆ readFromFile()
int String::readFromFile |
( |
const char * | file | ) |
|
loads file content into string
◆ remChar()
removes char at the end of the string
similar to std::string::pop_back
◆ remCharAtIndex()
int String::remCharAtIndex |
( |
size_t | index | ) |
|
removes a character at index
◆ toi()
int String::toi |
( |
const String & | s | ) |
|
|
static |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const String & | s ) |
|
friend |
The documentation for this class was generated from the following files: