Home » U++ Library support » U++ Core » More String Functions [FEATURE REQUEST]
More String Functions [FEATURE REQUEST] [message #3816] |
Wed, 28 June 2006 12:59  |
Rikus
Messages: 10 Registered: June 2006 Location: South Africa
|
Promising Member |
|
|
May not have found it, but I wonder if it would be possible to add a few more string functions to the String Class and WString Class
1. void Replace(String oldString,String newString); //replaces within string
2. void Replace(char *oldString,char *newString);//replaces within string
3. String Replace(String oldString,String newString);//replaces within new string and returns the new string
4. char[] ToCharArray(); //returns a copy buffer String. The problem is with GetBuffer is if you want to use it to copy the buffer to another buffer (for example temp buffer) you have to
1. char *buffer = new char[String.GetLength()];
2. char *strbuffer = String.GetBuffer();
3. strcpy(buffer,strbuffer);
4. String.ReleaseBuffer();
where this would be nice
1. char *buffer = String.ToCharArray();
P.S. Topic name edited by fudadmin
[Updated on: Wed, 28 June 2006 13:07] by Moderator Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 01:22:00 CEST 2025
Total time taken to generate the page: 0.01188 seconds
|