| String Class |
|
|
|
| Portfolio - Code Samples |
| Written by Randall |
| Wednesday, 16 December 2009 00:00 |
|
This is a simple C++ String class that has some cool problems to solve. There are the integer to string and the float to string problems, which are both interesting. It also has the tokenization problem, which is mildly interesting. Mostly this is a nice way to not rely on the very bulky std::string and also add string concatenation. I could expand this in a few ways. Firstly, I could templatize it to take any type of character, wide-byte or unicode or whatever. I could also extend this to use an allocator and not the default new/delete. Tasks for another day. You can download the files here: Source: Zip File: |
| Last Updated on Wednesday, 16 December 2009 00:07 |


