Home » U++ Library support » U++ Core » Some 'missing' string functions
Re: Some 'missing' string functions [message #13753 is a reply to message #13740] |
Fri, 25 January 2008 23:05   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
mdelfede wrote on Fri, 25 January 2008 06:37 | Porting a small app that uses std::string to Upp::String I noticed that many build-in string functions are not implemented in Upp::String.
In particular, some character-locating functions (find_first_not_of(), find_first_of(), find_last_not_of().....) functions are quite useful sometimes.
|
Quote: |
Also Compare() function is missing some way to compare parts of the string. It's easy to implement with Mid() + Compare, but it involves a string copy, so it's slow. Some sort of
String::Compare(aString, start, len)
|
Should have start1 and start2 IMO.
Anyway, I use memcmp in such cases usually...
Quote: |
Last but not least, the ReverseFind() function can find only a char, not a string inside a given string, as rfind() function in std.
|
OK.
Mirek
|
|
|
 |
|
Some 'missing' string functions
By: mdelfede on Fri, 25 January 2008 12:37
|
 |
|
Re: Some 'missing' string functions
By: mirek on Fri, 25 January 2008 23:05
|
 |
|
Re: Some 'missing' string functions
By: mirek on Fri, 25 January 2008 23:09
|
 |
|
Re: Some 'missing' string functions
By: mdelfede on Sat, 26 January 2008 14:06
|
 |
|
Re: Some 'missing' string functions
By: mirek on Sat, 26 January 2008 14:24
|
 |
|
Re: Some 'missing' string functions
By: mdelfede on Sat, 26 January 2008 14:49
|
 |
|
Re: Some 'missing' string functions
By: phirox on Fri, 06 June 2008 23:21
|
 |
|
Re: Some 'missing' string functions
By: mirek on Sat, 07 June 2008 16:12
|
 |
|
Re: Some 'missing' string functions
By: mr_ped on Mon, 09 June 2008 08:32
|
 |
|
Re: Some 'missing' string functions
By: hans on Mon, 09 June 2008 10:51
|
 |
|
Re: Some 'missing' string functions
By: mirek on Mon, 09 June 2008 14:27
|
 |
|
Re: Some 'missing' string functions
By: mirek on Mon, 09 June 2008 14:28
|
 |
|
Re: Some 'missing' string functions
By: captainc on Thu, 28 August 2008 10:13
|
 |
|
Re: Some 'missing' string functions
By: mirek on Thu, 28 August 2008 15:19
|
Goto Forum:
Current Time: Mon Aug 25 11:37:15 CEST 2025
Total time taken to generate the page: 0.05535 seconds
|