1 Replies - 17592 Views - Last Post: 30 March 2005 - 10:59 AM Rate Topic: -----

#1 tommybeeasy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 31-January 05

string manipulation

Posted 30 March 2005 - 10:38 AM

does anyone know how to pick apart a string to manipulate it, like change the lowercase letters to uppercase and vice versa. Any feedback would be appreciated. thanx
Is This A Good Question/Topic? 0
  • +

Replies To: string manipulation

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: string manipulation

Posted 30 March 2005 - 10:59 AM

string.toUpperCase();
string.toLowerCase();


Here's some common manipulations.

You can also traverse the string in a for loop, converting one by one, or just the ones you need. You could also use the string.replace() method.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1