Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Strings related functions
Strings related functions [message #37915] Fri, 23 November 2012 04:46 Go to next message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
Hi All,

Just wondering are there other library of Sting related functions in U++ other then in String Class and String Utility Function? I am in need of some basic string processing functions like string compare case insensitive, convert case to upper, lower, Title etc.

Thanks
Navi
Re: Strings related functions [message #37916 is a reply to message #37915] Fri, 23 November 2012 07:12 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

navi wrote on Fri, 23 November 2012 04:46

Hi All,

Just wondering are there other library of Sting related functions in U++ other then in String Class and String Utility Function? I am in need of some basic string processing functions like string compare case insensitive, convert case to upper, lower, Title etc.

Thanks
Navi

Hi Navi

Most of the functions you ask for are there Wink

ToUpper(str);                                  // convert to upper case
ToLower(str);                                  // convert to lower case
ToLower(str1) < ToLower(str2);                 // case insensitive compare

str = ToLower(str); str[0] = ToUpper(str[0]);  // is this what you mean by 'title'?


Best regards,
Honza
Re: Strings related functions [message #37917 is a reply to message #37916] Fri, 23 November 2012 07:40 Go to previous messageGo to next message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
dolik.rce wrote on Fri, 23 November 2012 07:12



str = ToLower(str); str[0] = ToUpper(str[0]); // is this what you mean by 'title'?[/code]

Best regards,
Honza


Thank you very much Honza. Great! Silly me, I was expecting them in String headers. By Title case I was actually meaning Upper Case the first letter of every word. But I can always make my own from the above functions.

Regards,
Navi
Re: Strings related functions [message #37918 is a reply to message #37917] Fri, 23 November 2012 08:24 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello Navi

In that case you can use InitCaps() Cool .

Go here and see what you have to choose.


Best regards
IƱaki

[Updated on: Fri, 23 November 2012 08:25]

Report message to a moderator

Re: Strings related functions [message #37919 is a reply to message #37918] Fri, 23 November 2012 11:13 Go to previous message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
Thank you very much koldo. Great, now I have all the functions that I needed to process my String.
Previous Topic: How to run a Skylark app in webserver?
Next Topic: complex applications GUI best practices?
Goto Forum:
  


Current Time: Sat Apr 27 20:28:21 CEST 2024

Total time taken to generate the page: 0.03158 seconds