I have been asked to write a string wrapper class to guarentee to portablity/security of the code manipulating strings. The request is to really avoid STL string class as much as possible and avoid use of the cstring class for security reasons.
I am not sure what is and what is not "portable enough" in the STL library to even begin work. I know that manipulation of strings is common and I am sure that this question may have arised before but have not seen it documented. I have contemplated two type implementations. The first is to inherit the string.h class and override the problem areas but I dont know where those areas are. The second is to start from the ground up but I fear this will be less secure than tested code and security is also a big issue. Any thoughts would be appreciated. If I started from the ground up how would you do it? I dont wouldnt know how to start to reinvent the wheel..
Thanks
haunter@battlestrata.com
I am not sure what is and what is not "portable enough" in the STL library to even begin work. I know that manipulation of strings is common and I am sure that this question may have arised before but have not seen it documented. I have contemplated two type implementations. The first is to inherit the string.h class and override the problem areas but I dont know where those areas are. The second is to start from the ground up but I fear this will be less secure than tested code and security is also a big issue. Any thoughts would be appreciated. If I started from the ground up how would you do it? I dont wouldnt know how to start to reinvent the wheel..
Thanks
haunter@battlestrata.com