You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jacob Still 23ec503c6e
update with makefiles
1 month ago
..
Driver Add numerical conversions to String 1 year ago
Makefile update with makefiles 1 month ago
README.md Update READMEs 1 year ago
String.h Add License Headder 1 year ago
driver.cpp Add License Headder 1 year ago

README.md

String

String implemented using List.h .

Tested with no known memory leaks or errors.

This class should be a drop-in replacement for std::string

Public Member Functions:

  • Note that most functions should perform just as their std::string counterparts

Constructor

String();

Destructor

~String();

Overloaded operators

operator=

operator+=

operator[]

operator>>

operator<<

operator+

operator==

operator!=

operator<

operator<=

operator>

operator>=

swap

getline

Capacity and sizing functions

sizeOf

length

resize

capacityOf

reserve

clear

isEmpty

shrink_to_fit

Element access

at

back

front

Modifiers

append

push_back

assign

insert

erase

replace

swap

pop_back

String Operations

c_str

data

copy

find

rfind

find_first_of

find_last_of

find_first_not_of

find_last_not_of

substr

compare

Conversion Functions

to_String

Stoi

Stou

Stol

Stoul

Stoull

Stof

Stod

Stold

Other

print - Useful for debugging