Regarding replace()
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Regarding replace()

  1. #1
    Join Date
    Dec 2010

    Regarding replace()

    Hi ,

    I have a string defined, say

    String message = "hi there";

    I want to replace all the e's with i's,

    I can either use message.replace('e','i') or traverse using a for loop and replace all e's with i's.

    Can someone tell me the internal working of replace () so that i can understand which is more efficient ??

    Thanks a lot

  2. #2
    Join Date
    May 2006

    Re: Regarding replace()

    Download the source and look for yourself.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center