🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12721

How to replace ' ( ' in a string with a ' \( ' ?

#12721
From: Richard Yu
Date: Tue, 18 Nov 2003 21:11
23 lines
1367 bytes
I need to insert a '\'  before ' ( '  in a string,  but both aString="\" and
aChar='\' assignment are not allowed,  example I want a string like "cdsdgc
( fdsfs"  to be "cdsdgc \( fdsfs",
I need the \ to be used in postscript text.


my code like :

String aStr="\";

aString.Insert(aStr,p);



or the other way:

char aChar='\';

String aStr;

aStr[p]='\';

both way don't work.
Technical Details
Message-ID: <3fba8b48$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.freenet.de!news2.euro.net!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1e8f25b1f3fa6bc7
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-18 13:34:24 PST
From: "Richard Yu" <richard@colorselector.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to replace ' ( ' in a string with a ' \( ' ?
Date: Tue, 18 Nov 2003 13:11:29 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.207.7.224
Message-ID: <3fba8b48$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069189960 24.207.7.224 (18 Nov 2003 13:12:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.freenet.de!news2.euro.net!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail