🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #641

StringReplace function

#641
From: RaynorPao
Date: Mon, 24 Mar 2003 06:02
14 lines
1345 bytes
Hi all:

In BCB/Delphi, there is a function "StringReplace" can be used.
For example, I write a code as below(BCB):

AnsiString sz="a_b_c_d_e_f";
sz=StringReplace(sz, "_", "", TReplaceFlags()<<rfReplaceAll);

It can change the AnsiString sz from "a_b_c_d_e_f" to "abcdef".
So...My question is....Is there an API like "StringReplace" in Java?
Or there is another simple way can solve this problem?

Thanks.
RaynorPao.
Technical Details
Message-ID: <3e7e9b90$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,84da031bf63d5910,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-03-23 22:08:55 PST
From: "RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw>
Newsgroups: borland.public.jbuilder.java.api
Subject: StringReplace function
Date: Mon, 24 Mar 2003 14:02:24 +0800
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 203.73.124.171
Message-ID: <3e7e9b90$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048484752 203.73.124.171 (23 Mar 2003 21:45:52 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail