Re: Fastcode AnsiStringReplace
- From: "Dennis" <marianndkc@xxxxxxxxxxxxxxx>
- Date: Sat, 9 Dec 2006 11:58:58 +0100
Hi
I would like somebody to write a comment about the differences between
StringReplace and our AnsiStringReplace.
The interface to our function is
function AnsiStringReplace(const S, OldPattern, NewPattern: AnsiString;
Flags: TReplaceFlags): AnsiString;
while the RTL function is defined as
function StringReplace(const S, OldPattern, NewPattern: string; Flags:
TReplaceFlags): string;
Our function only supports AnsiStrings - not multi byte chars.
From John's unit
{Equivalent of StringReplace for Non Multi Byte Character Sets}
It would also be nice with a description of how to add our function to the
RTL. Perhaps as an overloaded function?
function StringReplace(const S, OldPattern, NewPattern: string; Flags:
TReplaceFlags): string; overload;
function StringReplace(const S, OldPattern, NewPattern: AnsiString; Flags:
TReplaceFlags): AnsiString; overload;
Best regards
Dennis Kjaer Christensen
----------------------------------------------------------------------------
----
Jeg beskyttes af den gratis SPAMfighter til privatbrugere.
Den har indtil videre sparet mig for at få 6187 spam-mails
Betalende brugere får ikke denne besked i deres e-mails.
Hent en gratis SPAMfighter her.
.
- Follow-Ups:
- Re: Fastcode AnsiStringReplace
- From: John O'Harrow
- Re: Fastcode AnsiStringReplace
- From: Pierre le Riche
- Re: Fastcode AnsiStringReplace
- References:
- Fastcode AnsiStringReplace
- From: Dennis
- Fastcode AnsiStringReplace
- Prev by Date: Fastcode AnsiStringReplace
- Next by Date: Re: Interface for Compiler Godegeneration Optimization Modules
- Previous by thread: Fastcode AnsiStringReplace
- Next by thread: Re: Fastcode AnsiStringReplace
- Index(es):
Relevant Pages
|